From 9923be5e3ebc11ec71a7389eade80ac9bb6cf661 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 13 Feb 2023 19:42:15 -0800 Subject: [PATCH 1/9] Update quickbooks__general_ledger surrogate key to use account_id rather than account_id --- CHANGELOG.md | 4 ++++ README.md | 2 +- dbt_project.yml | 2 +- integration_tests/dbt_project.yml | 2 +- integration_tests/seeds/invoice_data.csv | 3 ++- integration_tests/seeds/invoice_line_data.csv | 5 ++++- models/quickbooks.yml | 2 +- models/quickbooks__general_ledger.sql | 2 +- 8 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff478b8d..7b38fb23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# dbt_quickbooks v0.8.0 +## 🚨 Breaking Changes 🚨: +- Changing `account_name` input to `account_id` for the `generate_surrogate_key` function to fix `unique_id` uniqueness issues in the `quickbooks__general_ledger` model. A full refresh is recommended for accurate and consistent surrogate keys. + # dbt_quickbooks v0.7.0 ## 🚨 Breaking Changes 🚨: - Added `transaction_source` to `generate_surrogate_key` function to fix `unique_id` uniqueness issues in the `quickbooks__general_ledger` model. A full refresh is recommended for accurate and consistent surrogate keys, for more information please refer to dbt-utils [release notes](https://github.com/dbt-labs/dbt-utils/releases/tag/1.0.0) regarding `generate_surrogate_key`. ([#62](https://github.com/fivetran/dbt_quickbooks/pull/62)) diff --git a/README.md b/README.md index 9e764ea9..91cbe76a 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Include the following QuickBooks package version in your `packages.yml` file. ```yaml packages: - package: fivetran/quickbooks - version: [">=0.7.0", "<0.8.0"] + version: [">=0.8.0", "<0.9.0"] ``` ## Step 3: Define database and schema variables diff --git a/dbt_project.yml b/dbt_project.yml index 01d34b03..6eb1183d 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'quickbooks' -version: '0.7.0' +version: '0.8.0' require-dbt-version: [">=1.3.0", "<2.0.0"] models: diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 5fbd4f67..480585cc 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,6 +1,6 @@ name: 'quickbooks_integration_tests' -version: '0.7.0' +version: '0.8.0' profile: 'integration_tests' config-version: 2 diff --git a/integration_tests/seeds/invoice_data.csv b/integration_tests/seeds/invoice_data.csv index 5384f4a0..bf2c2523 100644 --- a/integration_tests/seeds/invoice_data.csv +++ b/integration_tests/seeds/invoice_data.csv @@ -10,4 +10,5 @@ id,_fivetran_deleted,_fivetran_synced,allow_ipnpayment,allow_online_achpayment,a 26982,TRUE,2020-04-07 18:32:28,,,,,,,,,,88e8d1bd6d6ed3790c72d29bc8e1c6f7,,2020-04-07 15:47:18,USD,,,,e1434e59faf86d6098275bb09bf2ab89,2020-04-07 0:00:00,Email,,,,,,,,,,,,,,,,,,,0,,,,2020-04-07 16:46:07 39826,TRUE,2021-01-13 17:16:18,,,,,,,,,,c29e8c3627595c63550702485759ca61,,2021-01-13 0:23:28,USD,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,2021-01-13 0:23:28 22486,TRUE,2020-01-30 17:00:35,,,,,,,,,,2d15ecdbbc48d3eccee760148e729988,,2020-01-28 21:35:32,USD,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,2020-01-28 21:35:54 -35872,TRUE,2020-11-10 17:15:43,,,,,,,,,,d41d8cd98f00b204e9800998ecf8427e,,2020-11-09 16:06:12,USD,,,,,2020-11-09 0:00:00,Email,,,,,,,,,,,,,,,,,,,0,,,,2020-11-09 22:38:36 \ No newline at end of file +35872,TRUE,2020-11-10 17:15:43,,,,,,,,,,d41d8cd98f00b204e9800998ecf8427e,,2020-11-09 16:06:12,USD,,,,,2020-11-09 0:00:00,Email,,,,,,,,,,,,,,,,,,,0,,,,2020-11-09 22:38:36 +46133,FALSE,2022-10-25 20:02:47,,,,,,,,,,2d15ecdbbc48d3eccee760148e729989,,2021-10-25 12:53:41,USD,,,10665,,,Email,,,,2160229,7/27/22,,,,,,,,30,,,,,698.88,30.21,,,,2021-10-25 12:53:41 \ No newline at end of file diff --git a/integration_tests/seeds/invoice_line_data.csv b/integration_tests/seeds/invoice_line_data.csv index 6144b658..119246b4 100644 --- a/integration_tests/seeds/invoice_line_data.csv +++ b/integration_tests/seeds/invoice_line_data.csv @@ -8,4 +8,7 @@ index,invoice_id,_fivetran_synced,amount,bundle_id,bundle_quantity,description,d 0,40092,2021-01-19 2:18:38,21437.5,212,0.5,,,,,,,,,,,,,,,,,,,,,, 10,40092,2021-01-19 2:18:38,17181.75,,,,,,,,,,,,,,,,,,,,,,,, 4,40092,2021-01-19 2:18:38,0,,,7f3c88bf068c8edd47367bd68c01cd8f,,,,,,,,,,,,18,,,NON,,,,,, -7,40092,2021-01-19 2:18:38,0,,,703d01ddc458e55f5b43da8c88aaa581,,,,,,,,,,,,18,,,NON,,,,,, \ No newline at end of file +7,40092,2021-01-19 2:18:38,0,,,703d01ddc458e55f5b43da8c88aaa581,,,,,,,,,,,,18,,,NON,,,,,, +0,46133,2021-10-25 20:02:17,203.5,,,,,,SalesItemLineDetail,,,,,,1,1,857,,,,258,1,7/1/22,TAX,, +1,46133,2021-10-25 20:02:17,465.17,,,,,,SalesItemLineDetail,,,,,,2,2,869,,,,262,1,7/1/22,NON,, +2,46133,2021-10-25 20:02:17,668.67,,,,,SubTotalLineDetail,,,,,,,,,,,,,,,,, \ No newline at end of file diff --git a/models/quickbooks.yml b/models/quickbooks.yml index e2dc9a88..947f340c 100644 --- a/models/quickbooks.yml +++ b/models/quickbooks.yml @@ -290,7 +290,7 @@ models: - source_relation columns: - name: unique_id - description: Unique identifier of the general ledger line, dependent on `transaction_id`, `transaction_index`, `account_name, `transaction_type`, `transaction_source`. + description: Unique identifier of the general ledger line, dependent on `transaction_id`, `transaction_index`, `account_id`, `transaction_type`, `transaction_source`. - name: transaction_id description: "{{ doc('transaction_id') }}. Each transaction will have an offsetting debit and credit record." - name: transaction_index diff --git a/models/quickbooks__general_ledger.sql b/models/quickbooks__general_ledger.sql index 8ca65f68..677cb7ff 100644 --- a/models/quickbooks__general_ledger.sql +++ b/models/quickbooks__general_ledger.sql @@ -29,7 +29,7 @@ accounts as ( adjusted_gl as ( select - {{ dbt_utils.generate_surrogate_key(['gl_union.transaction_id', 'gl_union.index', 'accounts.name', ' gl_union.transaction_type', 'gl_union.transaction_source']) }} as unique_id, + {{ dbt_utils.generate_surrogate_key(['gl_union.transaction_id', 'gl_union.index', 'gl_union.account_id', ' gl_union.transaction_type', 'gl_union.transaction_source']) }} as unique_id, gl_union.transaction_id, gl_union.source_relation, gl_union.index as transaction_index, From 3a96e7c7786a0422bf2ef546d053a2f6ba54852b Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 13 Feb 2023 19:54:29 -0800 Subject: [PATCH 2/9] Update quickbooks__general_ledger surrogate key to use account_id rather than account_id --- CHANGELOG.md | 2 +- integration_tests/seeds/invoice_data.csv | 4 +--- integration_tests/seeds/invoice_line_data.csv | 6 +----- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b38fb23..490db993 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # dbt_quickbooks v0.8.0 ## 🚨 Breaking Changes 🚨: -- Changing `account_name` input to `account_id` for the `generate_surrogate_key` function to fix `unique_id` uniqueness issues in the `quickbooks__general_ledger` model. A full refresh is recommended for accurate and consistent surrogate keys. +- Changing `account_name` input to `account_id` for the `generate_surrogate_key` function to fix `unique_id` uniqueness issues in the `quickbooks__general_ledger` model. A full refresh is recommended for accurate and consistent surrogate keys. [#73](https://github.com/fivetran/dbt_quickbooks/pull/73) # dbt_quickbooks v0.7.0 ## 🚨 Breaking Changes 🚨: diff --git a/integration_tests/seeds/invoice_data.csv b/integration_tests/seeds/invoice_data.csv index bf2c2523..6c3da393 100644 --- a/integration_tests/seeds/invoice_data.csv +++ b/integration_tests/seeds/invoice_data.csv @@ -9,6 +9,4 @@ id,_fivetran_deleted,_fivetran_synced,allow_ipnpayment,allow_online_achpayment,a 39827,TRUE,2021-01-13 17:16:18,,,,,,,,,,d41d8cd98f00b204e9800998ecf8427e,,2021-01-13 0:23:29,USD,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,2021-01-13 0:23:29 26982,TRUE,2020-04-07 18:32:28,,,,,,,,,,88e8d1bd6d6ed3790c72d29bc8e1c6f7,,2020-04-07 15:47:18,USD,,,,e1434e59faf86d6098275bb09bf2ab89,2020-04-07 0:00:00,Email,,,,,,,,,,,,,,,,,,,0,,,,2020-04-07 16:46:07 39826,TRUE,2021-01-13 17:16:18,,,,,,,,,,c29e8c3627595c63550702485759ca61,,2021-01-13 0:23:28,USD,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,2021-01-13 0:23:28 -22486,TRUE,2020-01-30 17:00:35,,,,,,,,,,2d15ecdbbc48d3eccee760148e729988,,2020-01-28 21:35:32,USD,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,2020-01-28 21:35:54 -35872,TRUE,2020-11-10 17:15:43,,,,,,,,,,d41d8cd98f00b204e9800998ecf8427e,,2020-11-09 16:06:12,USD,,,,,2020-11-09 0:00:00,Email,,,,,,,,,,,,,,,,,,,0,,,,2020-11-09 22:38:36 -46133,FALSE,2022-10-25 20:02:47,,,,,,,,,,2d15ecdbbc48d3eccee760148e729989,,2021-10-25 12:53:41,USD,,,10665,,,Email,,,,2160229,7/27/22,,,,,,,,30,,,,,698.88,30.21,,,,2021-10-25 12:53:41 \ No newline at end of file +22486,TRUE,2020-01-30 17:00:35,,,,,,,,,,2d15ecdbbc48d3eccee760148e729988,,2020-01-28 21:35:32,USD,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,2020-01-28 21:35:54 \ No newline at end of file diff --git a/integration_tests/seeds/invoice_line_data.csv b/integration_tests/seeds/invoice_line_data.csv index 119246b4..180561d9 100644 --- a/integration_tests/seeds/invoice_line_data.csv +++ b/integration_tests/seeds/invoice_line_data.csv @@ -7,8 +7,4 @@ index,invoice_id,_fivetran_synced,amount,bundle_id,bundle_quantity,description,d 1,35647,2021-01-18 6:16:26,1748.37,,,,,,,,,,,211,,,,227,0.7,,NON,2500,,,,, 0,40092,2021-01-19 2:18:38,21437.5,212,0.5,,,,,,,,,,,,,,,,,,,,,, 10,40092,2021-01-19 2:18:38,17181.75,,,,,,,,,,,,,,,,,,,,,,,, -4,40092,2021-01-19 2:18:38,0,,,7f3c88bf068c8edd47367bd68c01cd8f,,,,,,,,,,,,18,,,NON,,,,,, -7,40092,2021-01-19 2:18:38,0,,,703d01ddc458e55f5b43da8c88aaa581,,,,,,,,,,,,18,,,NON,,,,,, -0,46133,2021-10-25 20:02:17,203.5,,,,,,SalesItemLineDetail,,,,,,1,1,857,,,,258,1,7/1/22,TAX,, -1,46133,2021-10-25 20:02:17,465.17,,,,,,SalesItemLineDetail,,,,,,2,2,869,,,,262,1,7/1/22,NON,, -2,46133,2021-10-25 20:02:17,668.67,,,,,SubTotalLineDetail,,,,,,,,,,,,,,,,, \ No newline at end of file +4,40092,2021-01-19 2:18:38,0,,,7f3c88bf068c8edd47367bd68c01cd8f,,,,,,,,,,,,18,,,NON,,,,,, \ No newline at end of file From 4112a41219e49a8fa6d0a2b5196d01ff6751dbb0 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 13 Feb 2023 19:55:32 -0800 Subject: [PATCH 3/9] Update quickbooks__general_ledger surrogate key to use account_id rather than account_id --- integration_tests/seeds/invoice_data.csv | 3 +-- integration_tests/seeds/invoice_line_data.csv | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/integration_tests/seeds/invoice_data.csv b/integration_tests/seeds/invoice_data.csv index 6c3da393..d531e930 100644 --- a/integration_tests/seeds/invoice_data.csv +++ b/integration_tests/seeds/invoice_data.csv @@ -8,5 +8,4 @@ id,_fivetran_deleted,_fivetran_synced,allow_ipnpayment,allow_online_achpayment,a 31709,TRUE,2020-08-31 22:30:46,,,,,,,,,,b9c5e50ca61c38e84166419f9dce62c9,,2020-08-21 21:16:42,USD,,,,,2020-08-21 0:00:00,Email,,,,,,,,,,,,,,,,,,,0,,,,2020-08-25 13:32:23 39827,TRUE,2021-01-13 17:16:18,,,,,,,,,,d41d8cd98f00b204e9800998ecf8427e,,2021-01-13 0:23:29,USD,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,2021-01-13 0:23:29 26982,TRUE,2020-04-07 18:32:28,,,,,,,,,,88e8d1bd6d6ed3790c72d29bc8e1c6f7,,2020-04-07 15:47:18,USD,,,,e1434e59faf86d6098275bb09bf2ab89,2020-04-07 0:00:00,Email,,,,,,,,,,,,,,,,,,,0,,,,2020-04-07 16:46:07 -39826,TRUE,2021-01-13 17:16:18,,,,,,,,,,c29e8c3627595c63550702485759ca61,,2021-01-13 0:23:28,USD,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,2021-01-13 0:23:28 -22486,TRUE,2020-01-30 17:00:35,,,,,,,,,,2d15ecdbbc48d3eccee760148e729988,,2020-01-28 21:35:32,USD,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,2020-01-28 21:35:54 \ No newline at end of file +39826,TRUE,2021-01-13 17:16:18,,,,,,,,,,c29e8c3627595c63550702485759ca61,,2021-01-13 0:23:28,USD,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,2021-01-13 0:23:28 \ No newline at end of file diff --git a/integration_tests/seeds/invoice_line_data.csv b/integration_tests/seeds/invoice_line_data.csv index 180561d9..7f09e214 100644 --- a/integration_tests/seeds/invoice_line_data.csv +++ b/integration_tests/seeds/invoice_line_data.csv @@ -6,5 +6,4 @@ index,invoice_id,_fivetran_synced,amount,bundle_id,bundle_quantity,description,d 3,35647,2021-01-18 6:16:26,-4280.01,,,2ae778d8d42424d33b656517b2c892bf,,,,,,,,224,,,,34,0.7,,NON,-6120,,,,, 1,35647,2021-01-18 6:16:26,1748.37,,,,,,,,,,,211,,,,227,0.7,,NON,2500,,,,, 0,40092,2021-01-19 2:18:38,21437.5,212,0.5,,,,,,,,,,,,,,,,,,,,,, -10,40092,2021-01-19 2:18:38,17181.75,,,,,,,,,,,,,,,,,,,,,,,, -4,40092,2021-01-19 2:18:38,0,,,7f3c88bf068c8edd47367bd68c01cd8f,,,,,,,,,,,,18,,,NON,,,,,, \ No newline at end of file +10,40092,2021-01-19 2:18:38,17181.75,,,,,,,,,,,,,,,,,,,,,,,, \ No newline at end of file From c9f813831c67c6a46bca0f3337177d2a97d3bd5a Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 13 Feb 2023 20:05:20 -0800 Subject: [PATCH 4/9] regen docs --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index f08e72a3..2d3a8a89 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2023-01-25T03:37:25.024539Z", "invocation_id": "70a28cef-1a0d-4e26-942f-51b94a33e120", "env": {}}, "nodes": {"seed.quickbooks_integration_tests.account_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.account_data"}, "seed.quickbooks_integration_tests.address_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.address_data"}, "seed.quickbooks_integration_tests.bill_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, "seed.quickbooks_integration_tests.bill_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, "seed.quickbooks_integration_tests.bill_payment_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, "seed.quickbooks_integration_tests.bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, "seed.quickbooks_integration_tests.bundle_item_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, "seed.quickbooks_integration_tests.credit_memo_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, "seed.quickbooks_integration_tests.customer_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, "seed.quickbooks_integration_tests.department_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.department_data"}, "seed.quickbooks_integration_tests.deposit_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, "seed.quickbooks_integration_tests.deposit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, "seed.quickbooks_integration_tests.estimate_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, "seed.quickbooks_integration_tests.estimate_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, "seed.quickbooks_integration_tests.invoice_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, "seed.quickbooks_integration_tests.invoice_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, "seed.quickbooks_integration_tests.item_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.item_data"}, "seed.quickbooks_integration_tests.journal_entry_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, "seed.quickbooks_integration_tests.payment_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, "seed.quickbooks_integration_tests.payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, "seed.quickbooks_integration_tests.purchase_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, "seed.quickbooks_integration_tests.purchase_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, "seed.quickbooks_integration_tests.purchase_order_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, "seed.quickbooks_integration_tests.refund_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, "seed.quickbooks_integration_tests.sales_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, "seed.quickbooks_integration_tests.transfer_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, "seed.quickbooks_integration_tests.vendor_credit_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, "seed.quickbooks_integration_tests.vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, "model.quickbooks.int_quickbooks__account_classifications": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__account_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 5, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 7, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 8, "name": "account_sub_type", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "classification": {"type": "text", "index": 17, "name": "classification", "comment": null}, "multiplier": {"type": "integer", "index": 18, "name": "multiplier", "comment": null}, "financial_statement_helper": {"type": "text", "index": 19, "name": "financial_statement_helper", "comment": null}, "transaction_type": {"type": "text", "index": 20, "name": "transaction_type", "comment": null}, "adjusted_balance": {"type": "integer", "index": 21, "name": "adjusted_balance", "comment": null}, "parent_account_number": {"type": "text", "index": 22, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 23, "name": "parent_account_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, "model.quickbooks.int_quickbooks__bill_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__bill_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "payable_account_id": {"type": "text", "index": 7, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 9, "name": "current_balance", "comment": null}, "due_date": {"type": "date", "index": 10, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "date", "index": 11, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "date", "index": 12, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "bigint", "index": 13, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, "model.quickbooks.int_quickbooks__bill_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__bill_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__cash_flow_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__credit_memo_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, "model.quickbooks.int_quickbooks__deposit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__deposit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, "model.quickbooks.int_quickbooks__expenses_union": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__expenses_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "numeric(28,6)", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "numeric(28,6)", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_balances", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "bigint", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_date_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 11, "name": "financial_statement_helper", "comment": null}, "class_id": {"type": "text", "index": 12, "name": "class_id", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_index": {"type": "bigint", "index": 16, "name": "period_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, "model.quickbooks.int_quickbooks__invoice_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__invoice_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 8, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 9, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 10, "name": "delivery_type", "comment": null}, "total_amount": {"type": "integer", "index": 11, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 12, "name": "current_balance", "comment": null}, "estimate_total_amount": {"type": "double precision", "index": 13, "name": "estimate_total_amount", "comment": null}, "estimate_status": {"type": "text", "index": 14, "name": "estimate_status", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 15, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 16, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 17, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "double precision", "index": 18, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, "model.quickbooks.int_quickbooks__invoice_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__invoice_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__journal_entry_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, "model.quickbooks.int_quickbooks__purchase_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__purchase_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__refund_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, "model.quickbooks.int_quickbooks__retained_earnings": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__retained_earnings", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__sales_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, "model.quickbooks.int_quickbooks__sales_union": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__sales_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__vendor_credit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__ap_ar_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_name": {"type": "text", "index": 6, "name": "department_name", "comment": null}, "transaction_with": {"type": "text", "index": 7, "name": "transaction_with", "comment": null}, "customer_vendor_name": {"type": "text", "index": 8, "name": "customer_vendor_name", "comment": null}, "customer_vendor_balance": {"type": "integer", "index": 9, "name": "customer_vendor_balance", "comment": null}, "customer_vendor_address_city": {"type": "text", "index": 10, "name": "customer_vendor_address_city", "comment": null}, "customer_vendor_address_country": {"type": "text", "index": 11, "name": "customer_vendor_address_country", "comment": null}, "customer_vendor_address_line": {"type": "text", "index": 12, "name": "customer_vendor_address_line", "comment": null}, "customer_vendor_website": {"type": "integer", "index": 13, "name": "customer_vendor_website", "comment": null}, "delivery_type": {"type": "text", "index": 14, "name": "delivery_type", "comment": null}, "estimate_status": {"type": "text", "index": 15, "name": "estimate_status", "comment": null}, "total_amount": {"type": "integer", "index": 16, "name": "total_amount", "comment": null}, "estimate_amount": {"type": "double precision", "index": 17, "name": "estimate_amount", "comment": null}, "current_balance": {"type": "integer", "index": 18, "name": "current_balance", "comment": null}, "total_current_payment": {"type": "double precision", "index": 19, "name": "total_current_payment", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 20, "name": "due_date", "comment": null}, "is_overdue": {"type": "boolean", "index": 21, "name": "is_overdue", "comment": null}, "days_overdue": {"type": "integer", "index": 22, "name": "days_overdue", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 23, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 24, "name": "recent_payment_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, "analysis.quickbooks.quickbooks__balance_sheet": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__balance_sheet", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, "model.quickbooks.quickbooks__cash_flow_statement": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__cash_flow_statement", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}, "cash_beginning_period": {"type": "numeric", "index": 17, "name": "cash_beginning_period", "comment": null}, "cash_net_period": {"type": "numeric", "index": 18, "name": "cash_net_period", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__expenses_sales_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, "model.quickbooks.quickbooks__general_ledger": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__general_ledger", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"unique_id": {"type": "text", "index": 1, "name": "unique_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_index": {"type": "integer", "index": 4, "name": "transaction_index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 6, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 7, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 8, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 10, "name": "class_id", "comment": null}, "account_number": {"type": "text", "index": 11, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 13, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 14, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 15, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 16, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 17, "name": "account_sub_type", "comment": null}, "financial_statement_helper": {"type": "text", "index": 18, "name": "financial_statement_helper", "comment": null}, "account_current_balance": {"type": "integer", "index": 19, "name": "account_current_balance", "comment": null}, "account_class": {"type": "text", "index": 20, "name": "account_class", "comment": null}, "transaction_type": {"type": "text", "index": 21, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 22, "name": "transaction_source", "comment": null}, "account_transaction_type": {"type": "text", "index": 23, "name": "account_transaction_type", "comment": null}, "adjusted_amount": {"type": "integer", "index": 24, "name": "adjusted_amount", "comment": null}, "running_balance": {"type": "bigint", "index": 25, "name": "running_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, "model.quickbooks.quickbooks__general_ledger_by_period": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__general_ledger_by_period", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}, "account_ordinal": {"type": "integer", "index": 19, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, "model.quickbooks.quickbooks__profit_and_loss": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__profit_and_loss", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, "model.quickbooks.int_quickbooks__bill_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__credit_memo_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__deposit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__invoice_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__journal_entry_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, "model.quickbooks.int_quickbooks__payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__purchase_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__refund_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__sales_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__transfer_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__vendor_credit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 4, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 6, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 7, "name": "account_sub_type", "comment": null}, "classification": {"type": "text", "index": 8, "name": "classification", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, "model.quickbooks_source.stg_quickbooks__address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "text", "index": 1, "name": "address_id", "comment": null}, "city": {"type": "text", "index": 2, "name": "city", "comment": null}, "country": {"type": "text", "index": 3, "name": "country", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "postal_code": {"type": "integer", "index": 6, "name": "postal_code", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, "model.quickbooks_source.stg_quickbooks__bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "due_date_at": {"type": "date", "index": 6, "name": "due_date_at", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "payable_account_id": {"type": "text", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, "model.quickbooks_source.stg_quickbooks__bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 9, "name": "item_expense_customer_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 10, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "text", "index": 3, "name": "bill_payment_id", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "text", "index": 2, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 3, "name": "check_print_status", "comment": null}, "credit_card_account_id": {"type": "text", "index": 4, "name": "credit_card_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 5, "name": "exchange_rate", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "pay_type": {"type": "text", "index": 8, "name": "pay_type", "comment": null}, "total_amount": {"type": "integer", "index": 9, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "bill_id": {"type": "text", "index": 4, "name": "bill_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 6, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 7, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 8, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 9, "name": "vendor_credit_id", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "fully_qualified_name": {"type": "text", "index": 4, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 5, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "text", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "name": "item_quantity", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "class_id": {"type": "text", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 8, "name": "customer_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 10, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 5, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "text", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, "model.quickbooks_source.stg_quickbooks__customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "text", "index": 1, "name": "customer_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 3, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 4, "name": "balance_with_jobs", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 5, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "fully_qualified_name": {"type": "text", "index": 7, "name": "fully_qualified_name", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "website": {"type": "integer", "index": 10, "name": "website", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, "model.quickbooks_source.stg_quickbooks__department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "is_sub_department": {"type": "boolean", "index": 7, "name": "is_sub_department", "comment": null}, "parent_department_id": {"type": "integer", "index": 8, "name": "parent_department_id", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "total_amount": {"type": "integer", "index": 6, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "integer", "index": 8, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "deposit_account_id": {"type": "text", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "text", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "text", "index": 7, "name": "deposit_customer_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "text", "index": 2, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "due_date": {"type": "integer", "index": 7, "name": "due_date", "comment": null}, "total_amount": {"type": "double precision", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 10, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "discount_account_id": {"type": "integer", "index": 4, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 5, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 7, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 8, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "item_id": {"type": "integer", "index": 10, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "account_id": {"type": "integer", "index": 12, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 7, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 11, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 12, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 13, "name": "delivery_type", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 14, "name": "due_date", "comment": null}, "class_id": {"type": "text", "index": 15, "name": "class_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 16, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 6, "name": "sales_item_class_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "integer", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 13, "name": "bundle_quantity", "comment": null}, "bundle_id": {"type": "text", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "text", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "text", "index": 16, "name": "item_id", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "text", "index": 3, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "quantity": {"type": "double precision", "index": 8, "name": "quantity", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "invoice_line_index": {"type": "integer", "index": 12, "name": "invoice_line_index", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "text", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "text", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, "model.quickbooks_source.stg_quickbooks__item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "text", "index": 1, "name": "item_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "income_account_id": {"type": "text", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "text", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "text", "index": 6, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "purchase_cost": {"type": "integer", "index": 8, "name": "purchase_cost", "comment": null}, "taxable": {"type": "boolean", "index": 9, "name": "taxable", "comment": null}, "type": {"type": "text", "index": 10, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "inventory_start_date": {"type": "integer", "index": 12, "name": "inventory_start_date", "comment": null}, "parent_item_id": {"type": "text", "index": 13, "name": "parent_item_id", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "is_adjustment": {"type": "boolean", "index": 2, "name": "is_adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 9, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 7, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "billable_status": {"type": "integer", "index": 9, "name": "billable_status", "comment": null}, "posting_type": {"type": "text", "index": 10, "name": "posting_type", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, "model.quickbooks_source.stg_quickbooks__payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "unapplied_amount": {"type": "integer", "index": 2, "name": "unapplied_amount", "comment": null}, "total_amount": {"type": "double precision", "index": 3, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "receivable_account_id": {"type": "text", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 7, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 8, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "journal_entry_id": {"type": "integer", "index": 4, "name": "journal_entry_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "invoice_id": {"type": "text", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "credit": {"type": "boolean", "index": 7, "name": "credit", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "payment_type": {"type": "text", "index": 9, "name": "payment_type", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 13, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 14, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 15, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 6, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 7, "name": "account_expense_tax_code_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 9, "name": "item_expense_billable_status", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 10, "name": "item_expense_customer_id", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "text", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 10, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 11, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 12, "name": "sales_item_tax_code_id", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 5, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 11, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 12, "name": "sales_item_unit_price", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "text", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "text", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "text", "index": 4, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "text", "index": 1, "name": "vendor_id", "comment": null}, "account_number": {"type": "integer", "index": 2, "name": "account_number", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "billing_address_id": {"type": "text", "index": 5, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "web_url": {"type": "integer", "index": 10, "name": "web_url", "comment": null}, "is_vendor_1099": {"type": "boolean", "index": 11, "name": "is_vendor_1099", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "payable_account_id": {"type": "text", "index": 8, "name": "payable_account_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "transaction_date": {"type": "date", "index": 11, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "text", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 9, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 10, "name": "item_expense_quantity", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 11, "name": "item_expense_unit_price", "comment": null}, "item_expense_class_id": {"type": "text", "index": 12, "name": "item_expense_class_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 13, "name": "item_expense_billable_status", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.account"}, "source.quickbooks_source.quickbooks.address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.address"}, "source.quickbooks_source.quickbooks.bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill"}, "source.quickbooks_source.quickbooks.bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_line"}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn"}, "source.quickbooks_source.quickbooks.bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment"}, "source.quickbooks_source.quickbooks.bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line"}, "source.quickbooks_source.quickbooks.bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle"}, "source.quickbooks_source.quickbooks.bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle_item"}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn"}, "source.quickbooks_source.quickbooks.credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo"}, "source.quickbooks_source.quickbooks.credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line"}, "source.quickbooks_source.quickbooks.customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.customer"}, "source.quickbooks_source.quickbooks.department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.department"}, "source.quickbooks_source.quickbooks.deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit"}, "source.quickbooks_source.quickbooks.deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit_line"}, "source.quickbooks_source.quickbooks.estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate"}, "source.quickbooks_source.quickbooks.estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate_line"}, "source.quickbooks_source.quickbooks.invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice"}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle"}, "source.quickbooks_source.quickbooks.invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line"}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn"}, "source.quickbooks_source.quickbooks.item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.item"}, "source.quickbooks_source.quickbooks.journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry"}, "source.quickbooks_source.quickbooks.journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line"}, "source.quickbooks_source.quickbooks.payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment"}, "source.quickbooks_source.quickbooks.payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment_line"}, "source.quickbooks_source.quickbooks.purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase"}, "source.quickbooks_source.quickbooks.purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_line"}, "source.quickbooks_source.quickbooks.purchase_order": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order"}, "source.quickbooks_source.quickbooks.purchase_order_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line"}, "source.quickbooks_source.quickbooks.refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt"}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line"}, "source.quickbooks_source.quickbooks.sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt"}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line"}, "source.quickbooks_source.quickbooks.transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.transfer"}, "source.quickbooks_source.quickbooks.vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit"}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line"}, "source.quickbooks_source.quickbooks.vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T04:04:15.897933Z", "invocation_id": "d39158d3-c135-411d-9a25-e6a76e3424ac", "env": {}}, "nodes": {"seed.quickbooks_integration_tests.account_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.account_data"}, "seed.quickbooks_integration_tests.address_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.address_data"}, "seed.quickbooks_integration_tests.bill_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, "seed.quickbooks_integration_tests.bill_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, "seed.quickbooks_integration_tests.bill_payment_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, "seed.quickbooks_integration_tests.bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, "seed.quickbooks_integration_tests.bundle_item_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, "seed.quickbooks_integration_tests.credit_memo_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, "seed.quickbooks_integration_tests.customer_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, "seed.quickbooks_integration_tests.department_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.department_data"}, "seed.quickbooks_integration_tests.deposit_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, "seed.quickbooks_integration_tests.deposit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, "seed.quickbooks_integration_tests.estimate_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, "seed.quickbooks_integration_tests.estimate_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, "seed.quickbooks_integration_tests.invoice_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, "seed.quickbooks_integration_tests.invoice_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, "seed.quickbooks_integration_tests.item_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.item_data"}, "seed.quickbooks_integration_tests.journal_entry_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, "seed.quickbooks_integration_tests.payment_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, "seed.quickbooks_integration_tests.payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, "seed.quickbooks_integration_tests.purchase_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, "seed.quickbooks_integration_tests.purchase_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, "seed.quickbooks_integration_tests.purchase_order_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, "seed.quickbooks_integration_tests.refund_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, "seed.quickbooks_integration_tests.sales_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, "seed.quickbooks_integration_tests.transfer_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, "seed.quickbooks_integration_tests.vendor_credit_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, "seed.quickbooks_integration_tests.vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, "model.quickbooks.int_quickbooks__account_classifications": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__account_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 5, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 7, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 8, "name": "account_sub_type", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "classification": {"type": "text", "index": 17, "name": "classification", "comment": null}, "multiplier": {"type": "integer", "index": 18, "name": "multiplier", "comment": null}, "financial_statement_helper": {"type": "text", "index": 19, "name": "financial_statement_helper", "comment": null}, "transaction_type": {"type": "text", "index": 20, "name": "transaction_type", "comment": null}, "adjusted_balance": {"type": "integer", "index": 21, "name": "adjusted_balance", "comment": null}, "parent_account_number": {"type": "text", "index": 22, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 23, "name": "parent_account_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, "model.quickbooks.int_quickbooks__bill_join": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__bill_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "payable_account_id": {"type": "text", "index": 7, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 9, "name": "current_balance", "comment": null}, "due_date": {"type": "date", "index": 10, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "date", "index": 11, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "date", "index": 12, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "bigint", "index": 13, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, "model.quickbooks.int_quickbooks__bill_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__bill_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__cash_flow_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__credit_memo_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, "model.quickbooks.int_quickbooks__deposit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__deposit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, "model.quickbooks.int_quickbooks__expenses_union": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__expenses_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "numeric(28,6)", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "numeric(28,6)", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_balances", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "bigint", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_date_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 11, "name": "financial_statement_helper", "comment": null}, "class_id": {"type": "text", "index": 12, "name": "class_id", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_index": {"type": "bigint", "index": 16, "name": "period_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, "model.quickbooks.int_quickbooks__invoice_join": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__invoice_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 8, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 9, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 10, "name": "delivery_type", "comment": null}, "total_amount": {"type": "integer", "index": 11, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 12, "name": "current_balance", "comment": null}, "estimate_total_amount": {"type": "double precision", "index": 13, "name": "estimate_total_amount", "comment": null}, "estimate_status": {"type": "text", "index": 14, "name": "estimate_status", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 15, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 16, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 17, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "double precision", "index": 18, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, "model.quickbooks.int_quickbooks__invoice_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__invoice_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__journal_entry_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, "model.quickbooks.int_quickbooks__purchase_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__purchase_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__refund_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, "model.quickbooks.int_quickbooks__retained_earnings": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__retained_earnings", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__sales_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, "model.quickbooks.int_quickbooks__sales_union": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__sales_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__vendor_credit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__ap_ar_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_name": {"type": "text", "index": 6, "name": "department_name", "comment": null}, "transaction_with": {"type": "text", "index": 7, "name": "transaction_with", "comment": null}, "customer_vendor_name": {"type": "text", "index": 8, "name": "customer_vendor_name", "comment": null}, "customer_vendor_balance": {"type": "integer", "index": 9, "name": "customer_vendor_balance", "comment": null}, "customer_vendor_address_city": {"type": "text", "index": 10, "name": "customer_vendor_address_city", "comment": null}, "customer_vendor_address_country": {"type": "text", "index": 11, "name": "customer_vendor_address_country", "comment": null}, "customer_vendor_address_line": {"type": "text", "index": 12, "name": "customer_vendor_address_line", "comment": null}, "customer_vendor_website": {"type": "integer", "index": 13, "name": "customer_vendor_website", "comment": null}, "delivery_type": {"type": "text", "index": 14, "name": "delivery_type", "comment": null}, "estimate_status": {"type": "text", "index": 15, "name": "estimate_status", "comment": null}, "total_amount": {"type": "integer", "index": 16, "name": "total_amount", "comment": null}, "estimate_amount": {"type": "double precision", "index": 17, "name": "estimate_amount", "comment": null}, "current_balance": {"type": "integer", "index": 18, "name": "current_balance", "comment": null}, "total_current_payment": {"type": "double precision", "index": 19, "name": "total_current_payment", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 20, "name": "due_date", "comment": null}, "is_overdue": {"type": "boolean", "index": 21, "name": "is_overdue", "comment": null}, "days_overdue": {"type": "integer", "index": 22, "name": "days_overdue", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 23, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 24, "name": "recent_payment_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, "analysis.quickbooks.quickbooks__balance_sheet": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__balance_sheet", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, "model.quickbooks.quickbooks__cash_flow_statement": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__cash_flow_statement", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}, "cash_beginning_period": {"type": "numeric", "index": 17, "name": "cash_beginning_period", "comment": null}, "cash_net_period": {"type": "numeric", "index": 18, "name": "cash_net_period", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__expenses_sales_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, "model.quickbooks.quickbooks__general_ledger": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__general_ledger", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"unique_id": {"type": "text", "index": 1, "name": "unique_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_index": {"type": "integer", "index": 4, "name": "transaction_index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 6, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 7, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 8, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 10, "name": "class_id", "comment": null}, "account_number": {"type": "text", "index": 11, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 13, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 14, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 15, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 16, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 17, "name": "account_sub_type", "comment": null}, "financial_statement_helper": {"type": "text", "index": 18, "name": "financial_statement_helper", "comment": null}, "account_current_balance": {"type": "integer", "index": 19, "name": "account_current_balance", "comment": null}, "account_class": {"type": "text", "index": 20, "name": "account_class", "comment": null}, "transaction_type": {"type": "text", "index": 21, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 22, "name": "transaction_source", "comment": null}, "account_transaction_type": {"type": "text", "index": 23, "name": "account_transaction_type", "comment": null}, "adjusted_amount": {"type": "integer", "index": 24, "name": "adjusted_amount", "comment": null}, "running_balance": {"type": "bigint", "index": 25, "name": "running_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, "model.quickbooks.quickbooks__general_ledger_by_period": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__general_ledger_by_period", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}, "account_ordinal": {"type": "integer", "index": 19, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, "model.quickbooks.quickbooks__profit_and_loss": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__profit_and_loss", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, "model.quickbooks.int_quickbooks__bill_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__credit_memo_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__deposit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__invoice_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__journal_entry_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, "model.quickbooks.int_quickbooks__payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__purchase_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__refund_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__sales_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__transfer_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__vendor_credit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 4, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 6, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 7, "name": "account_sub_type", "comment": null}, "classification": {"type": "text", "index": 8, "name": "classification", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, "model.quickbooks_source.stg_quickbooks__address": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "text", "index": 1, "name": "address_id", "comment": null}, "city": {"type": "text", "index": 2, "name": "city", "comment": null}, "country": {"type": "text", "index": 3, "name": "country", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "postal_code": {"type": "integer", "index": 6, "name": "postal_code", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, "model.quickbooks_source.stg_quickbooks__bill": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "due_date_at": {"type": "date", "index": 6, "name": "due_date_at", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "payable_account_id": {"type": "text", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, "model.quickbooks_source.stg_quickbooks__bill_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 9, "name": "item_expense_customer_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 10, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "text", "index": 3, "name": "bill_payment_id", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "text", "index": 2, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 3, "name": "check_print_status", "comment": null}, "credit_card_account_id": {"type": "text", "index": 4, "name": "credit_card_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 5, "name": "exchange_rate", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "pay_type": {"type": "text", "index": 8, "name": "pay_type", "comment": null}, "total_amount": {"type": "integer", "index": 9, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "bill_id": {"type": "text", "index": 4, "name": "bill_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 6, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 7, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 8, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 9, "name": "vendor_credit_id", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "fully_qualified_name": {"type": "text", "index": 4, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 5, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "text", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "name": "item_quantity", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "class_id": {"type": "text", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 8, "name": "customer_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 10, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 5, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "text", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, "model.quickbooks_source.stg_quickbooks__customer": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "text", "index": 1, "name": "customer_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 3, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 4, "name": "balance_with_jobs", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 5, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "fully_qualified_name": {"type": "text", "index": 7, "name": "fully_qualified_name", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "website": {"type": "integer", "index": 10, "name": "website", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, "model.quickbooks_source.stg_quickbooks__department": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "is_sub_department": {"type": "boolean", "index": 7, "name": "is_sub_department", "comment": null}, "parent_department_id": {"type": "integer", "index": 8, "name": "parent_department_id", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "total_amount": {"type": "integer", "index": 6, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "integer", "index": 8, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "deposit_account_id": {"type": "text", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "text", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "text", "index": 7, "name": "deposit_customer_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "text", "index": 2, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "due_date": {"type": "integer", "index": 7, "name": "due_date", "comment": null}, "total_amount": {"type": "double precision", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 10, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "discount_account_id": {"type": "integer", "index": 4, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 5, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 7, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 8, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "item_id": {"type": "integer", "index": 10, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "account_id": {"type": "integer", "index": 12, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 7, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 11, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 12, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 13, "name": "delivery_type", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 14, "name": "due_date", "comment": null}, "class_id": {"type": "text", "index": 15, "name": "class_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 16, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 6, "name": "sales_item_class_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "integer", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 13, "name": "bundle_quantity", "comment": null}, "bundle_id": {"type": "text", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "text", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "text", "index": 16, "name": "item_id", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "text", "index": 3, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "quantity": {"type": "double precision", "index": 8, "name": "quantity", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "invoice_line_index": {"type": "integer", "index": 12, "name": "invoice_line_index", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "text", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "text", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, "model.quickbooks_source.stg_quickbooks__item": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "text", "index": 1, "name": "item_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "income_account_id": {"type": "text", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "text", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "text", "index": 6, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "purchase_cost": {"type": "integer", "index": 8, "name": "purchase_cost", "comment": null}, "taxable": {"type": "boolean", "index": 9, "name": "taxable", "comment": null}, "type": {"type": "text", "index": 10, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "inventory_start_date": {"type": "integer", "index": 12, "name": "inventory_start_date", "comment": null}, "parent_item_id": {"type": "text", "index": 13, "name": "parent_item_id", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "is_adjustment": {"type": "boolean", "index": 2, "name": "is_adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 9, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 7, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "billable_status": {"type": "integer", "index": 9, "name": "billable_status", "comment": null}, "posting_type": {"type": "text", "index": 10, "name": "posting_type", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, "model.quickbooks_source.stg_quickbooks__payment": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "unapplied_amount": {"type": "integer", "index": 2, "name": "unapplied_amount", "comment": null}, "total_amount": {"type": "double precision", "index": 3, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "receivable_account_id": {"type": "text", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 7, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 8, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "journal_entry_id": {"type": "integer", "index": 4, "name": "journal_entry_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "invoice_id": {"type": "text", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "credit": {"type": "boolean", "index": 7, "name": "credit", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "payment_type": {"type": "text", "index": 9, "name": "payment_type", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 13, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 14, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 15, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 6, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 7, "name": "account_expense_tax_code_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 9, "name": "item_expense_billable_status", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 10, "name": "item_expense_customer_id", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "text", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 10, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 11, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 12, "name": "sales_item_tax_code_id", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 5, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 11, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 12, "name": "sales_item_unit_price", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__transfer": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "text", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "text", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "text", "index": 4, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "text", "index": 1, "name": "vendor_id", "comment": null}, "account_number": {"type": "integer", "index": 2, "name": "account_number", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "billing_address_id": {"type": "text", "index": 5, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "web_url": {"type": "integer", "index": 10, "name": "web_url", "comment": null}, "is_vendor_1099": {"type": "boolean", "index": 11, "name": "is_vendor_1099", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "payable_account_id": {"type": "text", "index": 8, "name": "payable_account_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "transaction_date": {"type": "date", "index": 11, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "text", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 9, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 10, "name": "item_expense_quantity", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 11, "name": "item_expense_unit_price", "comment": null}, "item_expense_class_id": {"type": "text", "index": 12, "name": "item_expense_class_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 13, "name": "item_expense_billable_status", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.account"}, "source.quickbooks_source.quickbooks.address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.address"}, "source.quickbooks_source.quickbooks.bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill"}, "source.quickbooks_source.quickbooks.bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_line"}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn"}, "source.quickbooks_source.quickbooks.bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment"}, "source.quickbooks_source.quickbooks.bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line"}, "source.quickbooks_source.quickbooks.bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle"}, "source.quickbooks_source.quickbooks.bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle_item"}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn"}, "source.quickbooks_source.quickbooks.credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo"}, "source.quickbooks_source.quickbooks.credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line"}, "source.quickbooks_source.quickbooks.customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.customer"}, "source.quickbooks_source.quickbooks.department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.department"}, "source.quickbooks_source.quickbooks.deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit"}, "source.quickbooks_source.quickbooks.deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit_line"}, "source.quickbooks_source.quickbooks.estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate"}, "source.quickbooks_source.quickbooks.estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate_line"}, "source.quickbooks_source.quickbooks.invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice"}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle"}, "source.quickbooks_source.quickbooks.invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line"}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn"}, "source.quickbooks_source.quickbooks.item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.item"}, "source.quickbooks_source.quickbooks.journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry"}, "source.quickbooks_source.quickbooks.journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line"}, "source.quickbooks_source.quickbooks.payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment"}, "source.quickbooks_source.quickbooks.payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment_line"}, "source.quickbooks_source.quickbooks.purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase"}, "source.quickbooks_source.quickbooks.purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_line"}, "source.quickbooks_source.quickbooks.purchase_order": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order"}, "source.quickbooks_source.quickbooks.purchase_order_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line"}, "source.quickbooks_source.quickbooks.refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt"}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line"}, "source.quickbooks_source.quickbooks.sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt"}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line"}, "source.quickbooks_source.quickbooks.transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.transfer"}, "source.quickbooks_source.quickbooks.vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit"}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line"}, "source.quickbooks_source.quickbooks.vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 1f487b3d..1ea3ddf1 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2023-01-25T03:37:06.778129Z", "invocation_id": "70a28cef-1a0d-4e26-942f-51b94a33e120", "env": {}, "project_id": "fb1a7b9ce88ce39cb54ba2ec5c0aaab3", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_integration_tests.bill_payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_data.csv", "original_file_path": "seeds/bill_payment_data.csv", "name": "bill_payment_data", "alias": "bill_payment_data", "checksum": {"name": "sha256", "checksum": "654e27fe99f7891483ba67ae67202f00a166df46c6463965f831bd47d3bc53cf"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.7400188, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_data\""}, "seed.quickbooks_integration_tests.bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_data.csv", "original_file_path": "seeds/bundle_data.csv", "name": "bundle_data", "alias": "bundle_data", "checksum": {"name": "sha256", "checksum": "090d802f05c558f45f05a760b5fb1fa879dfeb26c737e6356dcf6bfcb9fbbefb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.7483132, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_data\""}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_line_data.csv", "original_file_path": "seeds/bill_payment_line_data.csv", "name": "bill_payment_line_data", "alias": "bill_payment_line_data", "checksum": {"name": "sha256", "checksum": "ae8e7b58ddb78ecbcb7facd257a29f27db08cb69e4014ee40e3a07d02e7ea51a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.749852, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_integration_tests.payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_line_data.csv", "original_file_path": "seeds/payment_line_data.csv", "name": "payment_line_data", "alias": "payment_line_data", "checksum": {"name": "sha256", "checksum": "6e54b93beaddd05e86b071eb43833845bfc76a841b2780e3e1059f6d661cd238"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.751331, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_line_data\""}, "seed.quickbooks_integration_tests.vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_data.csv", "original_file_path": "seeds/vendor_data.csv", "name": "vendor_data", "alias": "vendor_data", "checksum": {"name": "sha256", "checksum": "98ce313c6a3acf1262de91d25905b85fe760227a534703d9c6bc0e4149b055b5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1674156390.753021, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_data\""}, "seed.quickbooks_integration_tests.address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "address_data"], "unique_id": "seed.quickbooks_integration_tests.address_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "address_data.csv", "original_file_path": "seeds/address_data.csv", "name": "address_data", "alias": "address_data", "checksum": {"name": "sha256", "checksum": "2b7bfb3f76e41e3fee0443c10a939053b0edb31b9f4be1bcd0af8d4b686da7b0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.754494, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"address_data\""}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_bundle_data.csv", "original_file_path": "seeds/invoice_line_bundle_data.csv", "name": "invoice_line_bundle_data", "alias": "invoice_line_bundle_data", "checksum": {"name": "sha256", "checksum": "f1cdc81c2fb1ec4f76c5226e2f5e4ed6f17f7b446cb53cfa539d8caafb252a5c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.7562518, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_integration_tests.invoice_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_data.csv", "original_file_path": "seeds/invoice_data.csv", "name": "invoice_data", "alias": "invoice_data", "checksum": {"name": "sha256", "checksum": "05a4273632f65bdeaff5845d43bb3fc5a68efa8985f86e054af045d810ecb652"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.757941, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_data\""}, "seed.quickbooks_integration_tests.payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_integration_tests.payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_data.csv", "original_file_path": "seeds/payment_data.csv", "name": "payment_data", "alias": "payment_data", "checksum": {"name": "sha256", "checksum": "8c2df9d7db2b4668ddbd1e1e3635cbaf40c798e19be2a83f65e09988771ebb38"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.75986, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_data\""}, "seed.quickbooks_integration_tests.invoice_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_data.csv", "original_file_path": "seeds/invoice_line_data.csv", "name": "invoice_line_data", "alias": "invoice_line_data", "checksum": {"name": "sha256", "checksum": "267f7835012af57f5d0b6dd927fb6e0ea7094d780ab551d7147e2bff48bcf063"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.761326, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_data\""}, "seed.quickbooks_integration_tests.deposit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"deposit_account_id": "bigint", "deposit_class_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_line_data.csv", "original_file_path": "seeds/deposit_line_data.csv", "name": "deposit_line_data", "alias": "deposit_line_data", "checksum": {"name": "sha256", "checksum": "43cf2e49d2ccc28c38ba7db60582b36e46c0ec96827b475e145975fdf8bf9d4e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deposit_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "deposit_class_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1674156390.762816, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_line_data\""}, "seed.quickbooks_integration_tests.estimate_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_line_data.csv", "original_file_path": "seeds/estimate_line_data.csv", "name": "estimate_line_data", "alias": "estimate_line_data", "checksum": {"name": "sha256", "checksum": "cff0f0d902a16e9ab0b877d174dd67536537fc669c16505c2efadb0721ce6c26"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.764459, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_line_data\""}, "seed.quickbooks_integration_tests.purchase_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"credit": "bool"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_data.csv", "original_file_path": "seeds/purchase_data.csv", "name": "purchase_data", "alias": "purchase_data", "checksum": {"name": "sha256", "checksum": "b66de1a5aaf428b1f208ecb9edccd6394086db485d6fc7dde7b152862f03eac9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"credit": "{{ 'boolean' if target.name == 'snowflake' else 'bool' }}"}}, "created_at": 1674156390.766279, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_data\""}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_line_data.csv", "original_file_path": "seeds/refund_receipt_line_data.csv", "name": "refund_receipt_line_data", "alias": "refund_receipt_line_data", "checksum": {"name": "sha256", "checksum": "8a67266f87e49dda0de57a6d66b4c1a053af545a6c8d394f8df6470b98cd31c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.7681432, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_line_data.csv", "original_file_path": "seeds/credit_memo_line_data.csv", "name": "credit_memo_line_data", "alias": "credit_memo_line_data", "checksum": {"name": "sha256", "checksum": "01898bc6786c3c48ebf5aa4170ea54257dd66e6fc38931067c9012bc639f6994"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.769581, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_integration_tests.bill_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_integration_tests.bill_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_data.csv", "original_file_path": "seeds/bill_data.csv", "name": "bill_data", "alias": "bill_data", "checksum": {"name": "sha256", "checksum": "af6dcdb238e4819003cc182dc5f39a82a61ab19d1299752afc90d49578cfc79b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.771174, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_data\""}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_linked_txn_data.csv", "original_file_path": "seeds/bill_linked_txn_data.csv", "name": "bill_linked_txn_data", "alias": "bill_linked_txn_data", "checksum": {"name": "sha256", "checksum": "14f88fc0716d3c253043a68af9b026ab54a93a33784c682b6ec700671f1e03c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.7726011, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_integration_tests.vendor_credit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_data.csv", "original_file_path": "seeds/vendor_credit_data.csv", "name": "vendor_credit_data", "alias": "vendor_credit_data", "checksum": {"name": "sha256", "checksum": "ccc4a1ca3967e3eb7f61d2831242f07b1e5a77006dd4312a17fd36e7ea008bea"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.7740228, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_data\""}, "seed.quickbooks_integration_tests.customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_integration_tests.customer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "customer_data.csv", "original_file_path": "seeds/customer_data.csv", "name": "customer_data", "alias": "customer_data", "checksum": {"name": "sha256", "checksum": "2b72eabf58923823033e461d1960295c156b31bf5ace046fc388c336fd96a29d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.775578, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"customer_data\""}, "seed.quickbooks_integration_tests.estimate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_data.csv", "original_file_path": "seeds/estimate_data.csv", "name": "estimate_data", "alias": "estimate_data", "checksum": {"name": "sha256", "checksum": "06ca472200a91b5758a0e9530e6c810a09e466cbf1aa7fbac215fee8a9f4d737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.778168, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_data\""}, "seed.quickbooks_integration_tests.purchase_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_line_data.csv", "original_file_path": "seeds/purchase_line_data.csv", "name": "purchase_line_data", "alias": "purchase_line_data", "checksum": {"name": "sha256", "checksum": "33355dd453e68ac5a5afa2f71e3c515dc414cdd55a489c65d2c2c4fa06fd18e7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1674156390.779787, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_line_data.csv", "original_file_path": "seeds/journal_entry_line_data.csv", "name": "journal_entry_line_data", "alias": "journal_entry_line_data", "checksum": {"name": "sha256", "checksum": "76d98c0fe816cb2d3790e1c63b61c0b6128de39e3175a231b98dbd640ba13cd4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.7813802, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_data.csv", "original_file_path": "seeds/journal_entry_data.csv", "name": "journal_entry_data", "alias": "journal_entry_data", "checksum": {"name": "sha256", "checksum": "6f717632a6fe0901786fbdfed63db69af1c928331ed9cb83f9fd389fe2b9ab83"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.78292, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_data\""}, "seed.quickbooks_integration_tests.bill_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_line_data.csv", "original_file_path": "seeds/bill_line_data.csv", "name": "bill_line_data", "alias": "bill_line_data", "checksum": {"name": "sha256", "checksum": "df882ab43a0bd79aed13e13dee1934269989ae1bea9d3672ed7cc9840c14d073"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1674156390.7846668, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_line_data\""}, "seed.quickbooks_integration_tests.bundle_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_item_data.csv", "original_file_path": "seeds/bundle_item_data.csv", "name": "bundle_item_data", "alias": "bundle_item_data", "checksum": {"name": "sha256", "checksum": "69218d4dc89cf8da55d1a5aab12bbe45129b48377fa7615f0030616d8c34fe9d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.7862442, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_item_data\""}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_linked_txn_data.csv", "original_file_path": "seeds/invoice_linked_txn_data.csv", "name": "invoice_linked_txn_data", "alias": "invoice_linked_txn_data", "checksum": {"name": "sha256", "checksum": "88dda316adf9a5921231dbe5bd5d0c425391ccf9b72a7d6c937155d67b3b45ba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.787719, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_integration_tests.account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "account_data"], "unique_id": "seed.quickbooks_integration_tests.account_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "account_data.csv", "original_file_path": "seeds/account_data.csv", "name": "account_data", "alias": "account_data", "checksum": {"name": "sha256", "checksum": "82ea90640018b00ad075d5bc1f78bdf38e05b0359fda1b40f4dd249efe1d85d9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.7893739, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"account_data\""}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_line_data.csv", "original_file_path": "seeds/purchase_order_line_data.csv", "name": "purchase_order_line_data", "alias": "purchase_order_line_data", "checksum": {"name": "sha256", "checksum": "39d5f88917f7d5d8ec70465d8569a38bd19d72bfb26bc495f3231b3e6599c945"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.790856, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_integration_tests.transfer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_integration_tests.transfer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "transfer_data.csv", "original_file_path": "seeds/transfer_data.csv", "name": "transfer_data", "alias": "transfer_data", "checksum": {"name": "sha256", "checksum": "8301e8b1cbaa430f338d9b589570efb442969ab67a24a92e615b08e3440431ce"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.792362, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"transfer_data\""}, "seed.quickbooks_integration_tests.purchase_order_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_data.csv", "original_file_path": "seeds/purchase_order_data.csv", "name": "purchase_order_data", "alias": "purchase_order_data", "checksum": {"name": "sha256", "checksum": "41146f57f7697001a690027ea7182ef76dd5d591bb5dce7438edefb3e5fd0101"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.79387, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_data\""}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_line_data.csv", "original_file_path": "seeds/sales_receipt_line_data.csv", "name": "sales_receipt_line_data", "alias": "sales_receipt_line_data", "checksum": {"name": "sha256", "checksum": "19895ca1cfb2ebe0a4e8ef0e5c5ef9c0dbb505053cc4b98bb06de8bd3ead523f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.79551, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_line_data.csv", "original_file_path": "seeds/vendor_credit_line_data.csv", "name": "vendor_credit_line_data", "alias": "vendor_credit_line_data", "checksum": {"name": "sha256", "checksum": "8c60276eb72f29fcd60b6aff2615648b71ce47e0b738331b54f86c988a979737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1674156390.797175, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_card_payment_txn_data"], "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_card_payment_txn_data.csv", "original_file_path": "seeds/credit_card_payment_txn_data.csv", "name": "credit_card_payment_txn_data", "alias": "credit_card_payment_txn_data", "checksum": {"name": "sha256", "checksum": "df04fb5f0ab05dd015e6476d647f9564edf6f015cd1d429ceded40e9bfd915b9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.79878, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_card_payment_txn_data\""}, "seed.quickbooks_integration_tests.credit_memo_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_data.csv", "original_file_path": "seeds/credit_memo_data.csv", "name": "credit_memo_data", "alias": "credit_memo_data", "checksum": {"name": "sha256", "checksum": "3cef678ada5ab1119a096e5f6bea67c6680466ff2a21807512f1a4dba83b6139"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.800329, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_data\""}, "seed.quickbooks_integration_tests.department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "department_data"], "unique_id": "seed.quickbooks_integration_tests.department_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "department_data.csv", "original_file_path": "seeds/department_data.csv", "name": "department_data", "alias": "department_data", "checksum": {"name": "sha256", "checksum": "079a79543e6cfcdac83eeeeb9672451756cc6c48e7d4c572d9f761b9314b18d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.802033, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"department_data\""}, "seed.quickbooks_integration_tests.item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "item_data"], "unique_id": "seed.quickbooks_integration_tests.item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "item_data.csv", "original_file_path": "seeds/item_data.csv", "name": "item_data", "alias": "item_data", "checksum": {"name": "sha256", "checksum": "8057771cc5c837c6193ad423e6a52f7058f6001550eaa0c15098857415aee7d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.8035252, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"item_data\""}, "seed.quickbooks_integration_tests.sales_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_data.csv", "original_file_path": "seeds/sales_receipt_data.csv", "name": "sales_receipt_data", "alias": "sales_receipt_data", "checksum": {"name": "sha256", "checksum": "2ac15faf0cdff7d71155fc20bb86e69d0a67d25f2172f220dbe850d45738230b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1674156390.805071, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_data\""}, "seed.quickbooks_integration_tests.deposit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_data.csv", "original_file_path": "seeds/deposit_data.csv", "name": "deposit_data", "alias": "deposit_data", "checksum": {"name": "sha256", "checksum": "e0e4299672423dbdf3d63d050ecd34c29580b5a368b64307053a635e7dd9286e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674156390.806633, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_data\""}, "seed.quickbooks_integration_tests.refund_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_data.csv", "original_file_path": "seeds/refund_receipt_data.csv", "name": "refund_receipt_data", "alias": "refund_receipt_data", "checksum": {"name": "sha256", "checksum": "0bfb44ee366239221dfee9e985b0c66d5a7cbc6d0bb8c18cf02acba7616c135d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1674156390.808316, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_data\""}, "model.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__balance_sheet"], "unique_id": "model.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__balance_sheet.sql", "original_file_path": "models/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2dfcdf44d9e54e45aad4ba6e1857e20aff338846ce16fc2e059774d1496ca222"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all asset, liability, and equity account classes by calendar year and month enriched with account type, class, and parent information.\n", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total ending period balance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.343148, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\""}, "model.quickbooks.quickbooks__general_ledger_by_period": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger_by_period"], "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nretained_earnings as (\n\n select *\n from {{ ref('int_quickbooks__retained_earnings') }}\n),\n\n{% if var('financial_statement_ordinal') %}\nordinals as ( \n\n select \n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n ordinal\n from {{ var('financial_statement_ordinal') }}\n),\n{% endif %}\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n {% if var('financial_statement_ordinal') %}\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as account_ordinal\n {% else %}\n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n {% endif %}\n from balances_earnings_unioned\n {% if var('financial_statement_ordinal') %}\n left join ordinals as account_number_ordinal\n on balances_earnings_unioned.account_number = account_number_ordinal.account_number\n left join ordinals as account_sub_type_ordinal\n on balances_earnings_unioned.account_sub_type = account_sub_type_ordinal.account_sub_type\n left join ordinals as account_type_ordinal\n on balances_earnings_unioned.account_type = account_type_ordinal.account_type\n left join ordinals as account_class_ordinal\n on balances_earnings_unioned.account_class = account_class_ordinal.account_class\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger_by_period.sql", "original_file_path": "models/quickbooks__general_ledger_by_period.sql", "name": "quickbooks__general_ledger_by_period", "alias": "quickbooks__general_ledger_by_period", "checksum": {"name": "sha256", "checksum": "81b71ad880e03e46825645b549c5459da037d29b07524c66547764201690f1d9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"], ["int_quickbooks__retained_earnings"]], "sources": [], "metrics": [], "description": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year.", "columns": {"account_id": {"name": "account_id", "description": "The identifier of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account. with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Helper field identifying whether the account impacts the balances sheet or income statement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_year": {"name": "date_year", "description": "Timestamp of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_first_day": {"name": "period_first_day", "description": "Timestamp of the first date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_last_day": {"name": "period_last_day", "description": "Timestamp of the last date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_net_change": {"name": "period_net_change", "description": "Account balance difference from the beginning and ending of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_beginning_balance": {"name": "period_beginning_balance", "description": "Balance of the account as of the first date of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_ending_balance": {"name": "period_ending_balance", "description": "Sum of all transaction line adjusted_balances of the account for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger_by_period.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.337638, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nretained_earnings as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\"\n),\n\n\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n \n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n \n from balances_earnings_unioned\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\""}, "model.quickbooks.quickbooks__general_ledger": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks.get_enabled_unioned_models", "macro.dbt_utils.union_relations", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger"], "unique_id": "model.quickbooks.quickbooks__general_ledger", "raw_code": "with unioned_models as (\n\n {{ dbt_utils.union_relations(get_enabled_unioned_models()) }}\n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n),\n\n\nadjusted_gl as (\n \n select\n {{ dbt_utils.generate_surrogate_key(['gl_union.transaction_id', 'gl_union.index', 'accounts.name', ' gl_union.transaction_type', 'gl_union.transaction_source']) }} as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger.sql", "original_file_path": "models/quickbooks__general_ledger.sql", "name": "quickbooks__general_ledger", "alias": "quickbooks__general_ledger", "checksum": {"name": "sha256", "checksum": "8683f6730061e89cebb134e02f1beace469786ccb2735dc2cd711fea920330c3"}, "tags": [], "refs": [["int_quickbooks__purchase_double_entry"], ["int_quickbooks__bill_double_entry"], ["int_quickbooks__credit_memo_double_entry"], ["int_quickbooks__deposit_double_entry"], ["int_quickbooks__invoice_double_entry"], ["int_quickbooks__journal_entry_double_entry"], ["int_quickbooks__payment_double_entry"], ["int_quickbooks__refund_receipt_double_entry"], ["int_quickbooks__sales_receipt_double_entry"], ["int_quickbooks__transfer_double_entry"], ["int_quickbooks__vendor_credit_double_entry"], ["int_quickbooks__bill_payment_double_entry"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction.", "columns": {"unique_id": {"name": "unique_id", "description": "Unique identifier of the general ledger line, dependent on `transaction_id`, `transaction_index`, `account_name, `transaction_type`, `transaction_source`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction. Each transaction will have an offsetting debit and credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_index": {"name": "transaction_index", "description": "Unique identifier of the individual debit and credit records of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Either 'balance sheet' or 'income statement' and is used to determine that financial statement the account impacts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_current_balance": {"name": "account_current_balance", "description": "Total current balance of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the transaction line. Will be one of 'Expense', 'Revenue', 'Asset', 'Liability', and 'Equity'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Identifier of whether the transaction is a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_source": {"name": "transaction_source", "description": "Field signifying the source of transaction (eg. Bill, Invoice, Deposit, Journal Entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_transaction_type": {"name": "account_transaction_type", "description": "Identifier of whether the account is increased by either a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjusted_amount": {"name": "adjusted_amount", "description": "The amount that impacts the account. If the transaction_type = account_transaction_type then the impact will increase, otherwise it will decrease the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "running_balance": {"name": "running_balance", "description": "The running balance of the account by each individual day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.333481, "compiled_code": "with unioned_models as (\n\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"\n\n \n )\n\n \n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n),\n\n\nadjusted_gl as (\n \n select\n \n \nmd5(cast(coalesce(cast(gl_union.transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(accounts.name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast( gl_union.transaction_type as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.transaction_source as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\""}, "model.quickbooks.quickbooks__profit_and_loss": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__profit_and_loss"], "unique_id": "model.quickbooks.quickbooks__profit_and_loss", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__profit_and_loss.sql", "original_file_path": "models/quickbooks__profit_and_loss.sql", "name": "quickbooks__profit_and_loss", "alias": "quickbooks__profit_and_loss", "checksum": {"name": "sha256", "checksum": "20c36e05d01bfc1acee632ee45fe2861296d19a4dbf6826b0a3dcee5a7933bdd"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information.", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total period net change for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__profit_and_loss.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.340132, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\""}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true"], "nodes": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__expenses_sales_enhanced"], "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced", "raw_code": "with expenses as (\n\n select *\n from {{ ref('int_quickbooks__expenses_union') }}\n),\n\n{% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\nsales as (\n\n select *\n from {{ ref('int_quickbooks__sales_union') }}\n),\n{% endif %}\n\nfinal as (\n \n select *\n from expenses\n\n {% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from sales\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__expenses_sales_enhanced.sql", "original_file_path": "models/quickbooks__expenses_sales_enhanced.sql", "name": "quickbooks__expenses_sales_enhanced", "alias": "quickbooks__expenses_sales_enhanced", "checksum": {"name": "sha256", "checksum": "14dc301b814cc78cbd136971e534e3611271de7a4b36bf8f1d5f8af5ed1947c1"}, "tags": [], "refs": [["int_quickbooks__expenses_union"], ["int_quickbooks__sales_union"]], "sources": [], "metrics": [], "description": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records.", "columns": {"transaction_source": {"name": "transaction_source", "description": "Set to 'expense' if the transaction type is an expense and 'sale' if the transaction type is a sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Specifies the expense or sale transaction type (ie. invoice, sales_receipt, deposit, journal entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Unique identifier of the item included in a sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Quantity of items included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_unit_price": {"name": "item_unit_price", "description": "Unit price of the item included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_name": {"name": "customer_name", "description": "Name of the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_website": {"name": "customer_website", "description": "The website url of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_name": {"name": "vendor_name", "description": "Name of the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status indicating whether the expense or sale is billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description given to either the expense or sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__expenses_sales_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.328351, "compiled_code": "with expenses as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\"\n),\n\n\nsales as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_union\"\n),\n\n\nfinal as (\n \n select *\n from expenses\n\n \n union all\n\n select *\n from sales\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\""}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.datediff"], "nodes": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__ap_ar_enhanced"], "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_join as (\n\n select *\n from {{ref('int_quickbooks__bill_join')}}\n),\n\n{% if var('using_invoice', True) %}\ninvoice_join as (\n\n select *\n from {{ref('int_quickbooks__invoice_join')}}\n),\n{% endif %}\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\n{% if var('using_address', True) %}\naddresses as (\n\n select *\n from {{ref('stg_quickbooks__address')}}\n),\n{% endif %}\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as {{ dbt.type_string() }}) as estimate_id, \n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n \n vendors.web_url as customer_vendor_website,\n cast(null as {{ dbt.type_string() }}) as delivery_type,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n bill_join.total_amount,\n cast(null as {{ dbt.type_numeric() }}) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n {% if var('using_department', True) %}\n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n {% endif %}\n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n {% if var('using_address', True) %}\n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n {% endif %}\n \n {% if var('using_invoice', True) %}\n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n {% if var('using_department', True) %}\n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n {% endif %}\n\n {% if var('using_address', True) %}\n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n {% endif %}\n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n {% endif %}\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__ap_ar_enhanced.sql", "original_file_path": "models/quickbooks__ap_ar_enhanced.sql", "name": "quickbooks__ap_ar_enhanced", "alias": "quickbooks__ap_ar_enhanced", "checksum": {"name": "sha256", "checksum": "a46a57fcf6a2966d9bba092f18cc5f3c39404ad382dab921ba31caef80b49417"}, "tags": [], "refs": [["int_quickbooks__bill_join"], ["int_quickbooks__invoice_join"], ["stg_quickbooks__department"], ["stg_quickbooks__address"], ["stg_quickbooks__customer"], ["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time.", "columns": {"transaction_type": {"name": "transaction_type", "description": "Set to 'bill' of the transaction is a bill and 'invoice' if the transaction is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_with": {"name": "transaction_with", "description": "Set to 'vendor' if the transaction type is a bill and 'customer' if the transaction type is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_name": {"name": "customer_vendor_name", "description": "Full name of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_balance": {"name": "customer_vendor_balance", "description": "Total current account balance of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_city": {"name": "customer_vendor_address_city", "description": "City of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_country": {"name": "customer_vendor_address_country", "description": "Country of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_line": {"name": "customer_vendor_address_line", "description": "Address line of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_website": {"name": "customer_vendor_website", "description": "The website url of the customer or vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice was delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_status": {"name": "estimate_status", "description": "The status of the invoice estimate (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The total monetary amount of the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_amount": {"name": "estimate_amount", "description": "The total amount estimated of the bill or invoice (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_balance": {"name": "current_balance", "description": "The bill or invoice defined remaining balance of the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_current_payment": {"name": "total_current_payment", "description": "Sum of all total payments made towards the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the due date for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_overdue": {"name": "is_overdue", "description": "Boolean indicating whether the bill or invoice full payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "days_overdue": {"name": "days_overdue", "description": "The recent payment minus the due date to show the total days the total payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "initial_payment_date": {"name": "initial_payment_date", "description": "The first date a payment was provided for the bill or invoice", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recent_payment_date": {"name": "recent_payment_date", "description": "The last date a payment was provided for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__ap_ar_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.317995, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith bill_join as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_join\"\n),\n\n\ninvoice_join as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\"\n),\n\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\n\naddresses as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n),\n\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as TEXT) as estimate_id, \n\n \n departments.fully_qualified_name as department_name,\n \n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n \n vendors.web_url as customer_vendor_website,\n cast(null as TEXT) as delivery_type,\n cast(null as TEXT) as estimate_status,\n bill_join.total_amount,\n cast(null as numeric(28,6)) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n \n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n \n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n \n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n \n \n \n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n \n departments.fully_qualified_name as department_name,\n \n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n \n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n \n\n \n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n \n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\""}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__transfer_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry", "raw_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith transfers as (\n\n select *\n from {{ ref('stg_quickbooks__transfer') }}\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "name": "int_quickbooks__transfer_double_entry", "alias": "int_quickbooks__transfer_double_entry", "checksum": {"name": "sha256", "checksum": "08b6fc8e3b028b3ff6f5f7b2ca25776e1531ef90e62bc71c95a7c3bad16710ed"}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the receiving account and a credit record to the sending account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.307803, "compiled_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith transfers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\""}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_memo_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry", "raw_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "name": "int_quickbooks__credit_memo_double_entry", "alias": "int_quickbooks__credit_memo_double_entry", "checksum": {"name": "sha256", "checksum": "e0d97e4dccb230ea8aa258b5cb258e43881fe5de6ded72058163645cc705d3ea"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.305226, "compiled_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\""}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__refund_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "name": "int_quickbooks__refund_receipt_double_entry", "alias": "int_quickbooks__refund_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "8324e59e150115fdea6272a77fc9868ff3343f9d6768236f654d670ee7b02e5e"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified asset account and a credit record the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.307255, "compiled_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__journal_entry_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry", "raw_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "name": "int_quickbooks__journal_entry_double_entry", "alias": "int_quickbooks__journal_entry_double_entry", "checksum": {"name": "sha256", "checksum": "5a1a31080d550c5cea879594f8ac10b70b52dd0d3403ec150a50c3375bd8560e"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that provides the debit and credit records of a journal entry transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.306409, "compiled_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\""}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "name": "int_quickbooks__bill_payment_double_entry", "alias": "int_quickbooks__bill_payment_double_entry", "checksum": {"name": "sha256", "checksum": "7681540e1b8b756efaf589a11195020a1300b6ed9f70d52546a5871054c29b95"}, "tags": [], "refs": [["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts payable and a credit record to the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.304922, "compiled_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith bill_payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\""}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__deposit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n\n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "name": "int_quickbooks__deposit_double_entry", "alias": "int_quickbooks__deposit_double_entry", "checksum": {"name": "sha256", "checksum": "9f702e78f5e48d8771a24b5e372b77bfb41fa9e78fed48c4123fdc3770b40296"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to either undeposited funds or a specific other account indicated in the deposit line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.305822, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\""}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__purchase_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry", "raw_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\npurchase_lines as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "name": "int_quickbooks__purchase_double_entry", "alias": "int_quickbooks__purchase_double_entry", "checksum": {"name": "sha256", "checksum": "6928b3fc773e3881f03746c0e7c86e9edb1169d5bf456c219694efc2eaefcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__purchase_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to a specified expense account and a credit record to the payment account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate"}, "created_at": 1674156392.3069801, "compiled_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\npurchase_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\""}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__sales_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "name": "int_quickbooks__sales_receipt_double_entry", "alias": "int_quickbooks__sales_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "b2e5219c2adae8a87d3d6e813730f3344cbae070efdec77f2fc16e63abdcc857"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to the specified asset account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.307534, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__vendor_credit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "raw_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "name": "int_quickbooks__vendor_credit_double_entry", "alias": "int_quickbooks__vendor_credit_double_entry", "checksum": {"name": "sha256", "checksum": "d5b5913d12d2880d19f2b17f6a3fd395a84ea8b7d2a5e965a25cf04ba9534236"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to payable account and a credit record to the expense account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.308169, "compiled_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\""}, "model.quickbooks.int_quickbooks__bill_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "name": "int_quickbooks__bill_double_entry", "alias": "int_quickbooks__bill_double_entry", "checksum": {"name": "sha256", "checksum": "95a197d82bcd77753581efdd590be8ad9652f318837a2380dd9e7b50d9b812a9"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.304586, "compiled_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\""}, "model.quickbooks.int_quickbooks__payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry", "raw_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith payments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "name": "int_quickbooks__payment_double_entry", "alias": "int_quickbooks__payment_double_entry", "checksum": {"name": "sha256", "checksum": "c8e70c76ebc6641a9817adca7d113a3997d9c3376df1b29ca25201c32cdb33ec"}, "tags": [], "refs": [["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.3067021, "compiled_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__invoice_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\n\n{% if var('using_invoice_bundle', True) %}\n\ninvoice_bundles as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line_bundle') }}\n),\n\nbundles as (\n\n select *\n from {{ ref('stg_quickbooks__bundle') }}\n),\n\nbundle_items as (\n\n select *\n from {{ ref('stg_quickbooks__bundle_item') }}\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n{% endif %}\n\nar_accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n {% if var('using_invoice_bundle', True) %}\n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n {% else %}\n coalesce(invoice_lines.account_id, items.income_account_id) as account_id,\n {% endif %}\n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n {% if var('using_invoice_bundle', True) %}\n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n {% else %}\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id) is not null \n\n {% endif %}\n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "name": "int_quickbooks__invoice_double_entry", "alias": "int_quickbooks__invoice_double_entry", "checksum": {"name": "sha256", "checksum": "ff00ba3d0bd575bb253363bfd2fbcd791cedc27c83d757af54d0e5adbccda142"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"], ["stg_quickbooks__account"], ["stg_quickbooks__invoice_line_bundle"], ["stg_quickbooks__bundle"], ["stg_quickbooks__bundle_item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1674156392.30612, "compiled_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\n\n\n\ninvoice_bundles as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n),\n\nbundles as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n),\n\nbundle_items as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n\n\nar_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n \n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n \n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n \n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n \n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__invoice_transactions"], "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__invoice_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__invoice_transactions.sql", "name": "int_quickbooks__invoice_transactions", "alias": "int_quickbooks__invoice_transactions", "checksum": {"name": "sha256", "checksum": "e02921a0f4ebbd0d0bfeee8cc7ed8136497c3d7e2cb5826922c2fc2f164e01b9"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__invoice_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156391.004927, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\""}, "model.quickbooks.int_quickbooks__bill_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__bill_transactions"], "unique_id": "model.quickbooks.int_quickbooks__bill_transactions", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }} \n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__bill_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__bill_transactions.sql", "name": "int_quickbooks__bill_transactions", "alias": "int_quickbooks__bill_transactions", "checksum": {"name": "sha256", "checksum": "42a5c76a8c69ea3b6f162addd1c69d225b8ff912543b8d5502712ae76b506ae2"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the bill and corresponding bill lines into a single bill transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__bill_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.308437, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\" \n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\""}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__journal_entry_transactions"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as {{ dbt.type_string() }}) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__journal_entry_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "name": "int_quickbooks__journal_entry_transactions", "alias": "int_quickbooks__journal_entry_transactions", "checksum": {"name": "sha256", "checksum": "5df763182668b5667cc91f518169b228c9726c03a97626e4bb7ae5a710602bf7"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that joins the journal entry and corresponding journal entry lines into a single journal entry transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.309254, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as TEXT) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\""}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__refund_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "name": "int_quickbooks__refund_receipt_transactions", "alias": "int_quickbooks__refund_receipt_transactions", "checksum": {"name": "sha256", "checksum": "097df40c7a3b5554bec4b1f96af80c7065d5ed99f9a3877f5b8c639263c3a35d"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the refund receipt and corresponding refund receipt lines into a single refund receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.309791, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\""}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__vendor_credit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n \n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "name": "int_quickbooks__vendor_credit_transactions", "alias": "int_quickbooks__vendor_credit_transactions", "checksum": {"name": "sha256", "checksum": "15380e78bc581c3192a7370b6c62f9805accc3b5bda2f200f68aa066db4785b0"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the vendor credit and corresponding vendor credit lines into a single vendor credit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.310323, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\""}, "model.quickbooks.int_quickbooks__purchase_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__purchase_transactions"], "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions", "raw_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_purchase', True)) }}\n\nwith purchases as (\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\npurchase_lines as (\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__purchase_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__purchase_transactions.sql", "name": "int_quickbooks__purchase_transactions", "alias": "int_quickbooks__purchase_transactions", "checksum": {"name": "sha256", "checksum": "bead953d0576140a7d67c3764c62993abf6809d601ccd20000aa5ea7a73c7172"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__item"], ["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "Table that joins the purchase and corresponding purchase lines into a single purchase transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__purchase_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.309524, "compiled_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n\n\nwith purchases as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\npurchase_lines as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\""}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__sales_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions", "raw_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "name": "int_quickbooks__sales_receipt_transactions", "alias": "int_quickbooks__sales_receipt_transactions", "checksum": {"name": "sha256", "checksum": "2e01630bf25cd736b93b07ec7b98887fbe62d8f9f34fd4fed820862a44d1c68d"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the sales receipt and corresponding sales receipt lines into a single sales receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.3100538, "compiled_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\""}, "model.quickbooks.int_quickbooks__deposit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__deposit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n \n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as {{ dbt.type_string() }}) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__deposit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__deposit_transactions.sql", "name": "int_quickbooks__deposit_transactions", "alias": "int_quickbooks__deposit_transactions", "checksum": {"name": "sha256", "checksum": "750c679ea708e917039ddcc2502e672fb77f769a9370028c77f7beef15868fc6"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "Table that joins the deposit and corresponding deposit lines into a single deposit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__deposit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.3089778, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as TEXT) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\""}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__credit_memo_transactions"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__credit_memo_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "name": "int_quickbooks__credit_memo_transactions", "alias": "int_quickbooks__credit_memo_transactions", "checksum": {"name": "sha256", "checksum": "e671668964b67084e2953c82076642f09a1cf6055a3366b15fc9eec8a77222ae"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the credit memo and credit memo lines into a single credit memo transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.308702, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\""}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__cash_flow_classifications"], "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications", "raw_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n {{ dbt_utils.generate_surrogate_key(['account_id', 'source_relation', 'calendar_date', 'class_id']) }} as account_unique_id\n from {{ ref('quickbooks__balance_sheet') }}\n),\n \n{% if var('cash_flow_statement_type_ordinal') %}\nordinals as (\n \n select\n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n cast(cash_flow_type as {{ dbt.type_string() }}) as cash_flow_type,\n ordinal\n from {{ var('cash_flow_statement_type_ordinal') }}\n),\n{% endif %}\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n {% if var('cash_flow_statement_type_ordinal') %}\n coalesce(account_number_ordinal.cash_flow_type, account_sub_type_ordinal.cash_flow_type, account_type_ordinal.cash_flow_type, account_class_ordinal.cash_flow_type) as cash_flow_type,\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as cash_flow_ordinal \n {% else %}\n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n {% endif %}\n\n from cash_flow_key\n \n {% if var('cash_flow_statement_type_ordinal') %}\n\n {% set cash_flow_type_fields = ['account_number', 'account_sub_type', 'account_type', 'account_class'] %}\n \n {% for cash_flow_type_field in cash_flow_type_fields %} \n left join ordinals as {{ cash_flow_type_field }}_ordinal\n on cash_flow_key.{{ cash_flow_type_field }} = {{ cash_flow_type_field }}_ordinal.{{ cash_flow_type_field }}\n {% endfor %}\n \n {% endif %}\n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__cash_flow_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__cash_flow_classifications.sql", "name": "int_quickbooks__cash_flow_classifications", "alias": "int_quickbooks__cash_flow_classifications", "checksum": {"name": "sha256", "checksum": "c76ef90529e969f875f192f8a236430430ab2c9d2dbf52885875ee854a1a3886"}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "Table that provides additional classifications necessary for the cash flow statement, like the cash flow type and ordinals.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__cash_flow_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.3128839, "compiled_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n \n \nmd5(cast(coalesce(cast(account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(calendar_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(class_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as account_unique_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n),\n \n\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n \n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n \n\n from cash_flow_key\n \n \n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\""}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.int_quickbooks__general_ledger_date_spine"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_balances"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances", "raw_code": "with general_ledger as (\n\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ngl_accounting_periods as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_date_spine') }}\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast({{ dbt.date_trunc(\"year\", \"transaction_date\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"transaction_date\") }} as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n {{ dbt_utils.group_by(14) }}\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_balances.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_balances.sql", "name": "int_quickbooks__general_ledger_balances", "alias": "int_quickbooks__general_ledger_balances", "checksum": {"name": "sha256", "checksum": "23b725ae7388455419b95572539a4ceb3b7fdaf0d7ee77154d11acedae1f118c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["int_quickbooks__general_ledger_date_spine"]], "sources": [], "metrics": [], "description": "Table that aggregates quickbooks__general_ledger account level transactions per period into a period_beginning_balance, period_ending_balance, and period_net_change for each period through the use of the int_quickbooks__general_ledger_date_spine model. Further, period balances are only applied to balance sheet accounts while income statement accounts do not have a persisting balance rather a period net change. Please note, a period equates to one month. \n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_balances.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.311527, "compiled_code": "with general_ledger as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ngl_accounting_periods as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\"\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast(date_trunc('year', transaction_date) as date) as date_year,\n cast(date_trunc('month', transaction_date) as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\""}, "model.quickbooks.int_quickbooks__account_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__account_classifications"], "unique_id": "model.quickbooks.int_quickbooks__account_classifications", "raw_code": "with accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__account_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__account_classifications.sql", "name": "int_quickbooks__account_classifications", "alias": "int_quickbooks__account_classifications", "checksum": {"name": "sha256", "checksum": "757b4fa3587f332bcccc9e1b7a494c99166bbd77f93a3be09bd1d027e73315f4"}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that adds missing detail to the account table. This table adds the following:\nA financial statement helper field that specifies the account as either a balance sheet or income statement account.\nAdds a transaction type to the specified account. The transaction type (debit or credit) is the type of transaction that increases the account.\nAdds a multiplier of -1 to Liability and Equity accounts to offset the account balance so liability and equity accounts do not show up as negative balances.\nCreates a new classification field that fills in the gaps if classifications were incorrectly set on certain s. For more information on how these classifications were determined you can refer to the [QuickBooks API Docs](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account) that was used as reference.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__account_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.310594, "compiled_code": "with accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\""}, "model.quickbooks.int_quickbooks__expenses_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric"], "nodes": ["model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__expenses_union"], "unique_id": "model.quickbooks.int_quickbooks__expenses_union", "raw_code": "with expense_union as (\n\n select *\n from {{ ref('int_quickbooks__purchase_transactions') }}\n\n {% if var('using_bill', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__bill_transactions') }}\n {% endif %} \n\n {% if var('using_journal_entry', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__journal_entry_transactions')}}\n {% endif %} \n\n {% if var('using_deposit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__deposit_transactions')}}\n {% endif %} \n\n {% if var('using_vendor_credit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__vendor_credit_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nexpense_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as {{ dbt.type_string() }}) as item_id,\n cast(null as {{ dbt.type_numeric() }}) as item_quantity,\n cast(null as {{ dbt.type_numeric() }}) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__expenses_union.sql", "original_file_path": "models/intermediate/int_quickbooks__expenses_union.sql", "name": "int_quickbooks__expenses_union", "alias": "int_quickbooks__expenses_union", "checksum": {"name": "sha256", "checksum": "1281caef70631920ac2b25aef0d702c469f4641eb0b173e49c244aa064bf1d34"}, "tags": [], "refs": [["int_quickbooks__purchase_transactions"], ["int_quickbooks__bill_transactions"], ["int_quickbooks__journal_entry_transactions"], ["int_quickbooks__deposit_transactions"], ["int_quickbooks__vendor_credit_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of an expense. The expense transactional tables included are: int_quickbooks__purchase_transactions, int_quickbooks__bill_transactions, int_quickbooks_journal_entry_transactions, int_quickbooks__deposit_transactions, int_quickbooks__vendor_credit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-expense transactions an inner join on accounts with the sub_type equal to Expense is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__expenses_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.311148, "compiled_code": "with expense_union as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\"\n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nexpense_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as TEXT) as item_id,\n cast(null as numeric(28,6)) as item_quantity,\n cast(null as numeric(28,6)) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n \n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\""}, "model.quickbooks.int_quickbooks__invoice_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__invoice_join"], "unique_id": "model.quickbooks.int_quickbooks__invoice_join", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice')) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_linked as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_linked_txn') }}\n),\n\n{% if var('using_estimate', True) %}\nestimates as (\n\n select *\n from {{ ref('stg_quickbooks__estimate') }}\n),\n{% endif %}\n\npayments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines_payment as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as {{ dbt.type_string() }}) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n {% if var('using_estimate', True) %}\n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n {% else %}\n cast(null as {{ dbt.type_numeric() }}) as estimate_total_amount,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n\n {% endif %}\n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n {% if var('using_estimate', True) %}\n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n {% endif %}\n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n {{ dbt_utils.group_by(15) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__invoice_join.sql", "original_file_path": "models/intermediate/int_quickbooks__invoice_join.sql", "name": "int_quickbooks__invoice_join", "alias": "int_quickbooks__invoice_join", "checksum": {"name": "sha256", "checksum": "541d06a75aca5faa32943aaf2e74935402d051e7fdfd0887badea48b38ae62c1"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_linked_txn"], ["stg_quickbooks__estimate"], ["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single invoice transactions with the corresponding payment (if paid) and corresponding estimate (if provided).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__invoice_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.312072, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_linked as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\n),\n\n\nestimates as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n),\n\n\npayments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines_payment as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as TEXT) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n \n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n \n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n \n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n \n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\""}, "model.quickbooks.int_quickbooks__retained_earnings": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.group_by", "macro.dbt.type_string", "macro.dbt.date_trunc", "macro.dbt.last_day"], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__retained_earnings"], "unique_id": "model.quickbooks.int_quickbooks__retained_earnings", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as {{ dbt.type_string() }}) as account_id,\n source_relation,\n cast('9999-00' as {{ dbt.type_string() }}) as account_number,\n cast('Net Income Adjustment' as {{ dbt.type_string() }}) as account_name,\n false as is_sub_account,\n cast(null as {{ dbt.type_string() }}) as parent_account_number,\n cast(null as {{ dbt.type_string() }}) as parent_account_name,\n cast('Equity' as {{ dbt.type_string() }}) as account_type,\n cast('RetainedEarnings' as {{ dbt.type_string() }}) as account_sub_type,\n cast('Equity' as {{ dbt.type_string() }}) as account_class,\n cast(null as {{ dbt.type_string() }}) as class_id,\n cast('balance_sheet' as {{ dbt.type_string() }}) as financial_statement_helper,\n cast({{ dbt.date_trunc(\"year\", \"period_first_day\") }} as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n {{ dbt.last_day(\"period_first_day\", \"month\") }} as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__retained_earnings.sql", "original_file_path": "models/intermediate/int_quickbooks__retained_earnings.sql", "name": "int_quickbooks__retained_earnings", "alias": "int_quickbooks__retained_earnings", "checksum": {"name": "sha256", "checksum": "bc108322a5b746dbee6f3ac5d80bee9f601f55568e9f5547780bf107d3d549a9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"]], "sources": [], "metrics": [], "description": "Table that creates an adjusting entry for retained earnings each month. The retained earnings account is created as account_id 9999 and is listed as an Equity class. This table generates the retained earnings period beginning balance, ending balance, and net change by adding the period revenues and subtracting by the period expenses. This total is set as the period ending balance. From the period ending balance the net change and beginning balances are calculated. This is table is then unioned with in_quickbooks__general_ledger_balances.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__retained_earnings.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.312614, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n group by 1,2 \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n group by 1,2 \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as TEXT) as account_id,\n source_relation,\n cast('9999-00' as TEXT) as account_number,\n cast('Net Income Adjustment' as TEXT) as account_name,\n false as is_sub_account,\n cast(null as TEXT) as parent_account_number,\n cast(null as TEXT) as parent_account_name,\n cast('Equity' as TEXT) as account_type,\n cast('RetainedEarnings' as TEXT) as account_sub_type,\n cast('Equity' as TEXT) as account_class,\n cast(null as TEXT) as class_id,\n cast('balance_sheet' as TEXT) as financial_statement_helper,\n cast(date_trunc('year', period_first_day) as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', period_first_day) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\""}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt.date_trunc", "macro.dbt.last_day", "macro.dbt.run_query"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_date_spine"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine", "raw_code": "-- depends_on: {{ ref('quickbooks__general_ledger') }}\n\nwith spine as (\n\n {% if execute %}\n {% set first_date_query %}\n select min( transaction_date ) as min_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n {% set first_date = run_query(first_date_query).columns[0][0]|string %}\n \n {% if target.type == 'postgres' %}\n {% set first_date_adjust = \"cast('\" ~ first_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set first_date_adjust = \"'\" ~ first_date[0:10] ~ \"'\" %}\n\n {% endif %}\n\n {% else %} {% set first_date_adjust = \"'2000-01-01'\" %}\n {% endif %}\n\n {% if execute %}\n {% set last_date_query %}\n select max( transaction_date ) as max_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n\n {% set current_date_query %}\n select current_date\n {% endset %}\n\n {% if run_query(current_date_query).columns[0][0]|string < run_query(last_date_query).columns[0][0]|string %}\n\n {% set last_date = run_query(last_date_query).columns[0][0]|string %}\n\n {% else %} {% set last_date = run_query(current_date_query).columns[0][0]|string %}\n {% endif %}\n \n {% if target.type == 'postgres' %}\n {% set last_date_adjust = \"cast('\" ~ last_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set last_date_adjust = \"'\" ~ last_date[0:10] ~ \"'\" %}\n\n {% endif %}\n {% endif %}\n\n {{ dbt_utils.date_spine(\n datepart=\"month\",\n start_date=first_date_adjust,\n end_date=dbt.dateadd(\"month\", 1, last_date_adjust)\n )\n }}\n),\n\ngeneral_ledger as (\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ndate_spine as (\n select\n cast({{ dbt.date_trunc(\"year\", \"date_month\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date) as period_first_day,\n {{ dbt.last_day(\"date_month\", \"month\") }} as period_last_day,\n row_number() over (order by cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_date_spine.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "name": "int_quickbooks__general_ledger_date_spine", "alias": "int_quickbooks__general_ledger_date_spine", "checksum": {"name": "sha256", "checksum": "aaf951b7837338c61415eb69d5d4518f45fbf6f5a78c0781833a64a1f08a596c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "Table that creates a date spine by month with the first date being the minimum transaction date from the quickbooks__general_ledger model and the last date being one month after the last transaction date from the quickbooks__general_ledger model.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156392.311799, "compiled_code": "-- depends_on: \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n\nwith spine as (\n\n \n \n \n \n \n \n\n \n\n \n\n \n \n\n \n\n \n \n \n \n \n\n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 49.0\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-02' as date) + ((interval '1 month') * (row_number() over (order by 1) - 1))\n\n\n ) as date_month\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_month <= \n\n cast('2023-01-25' as date) + ((interval '1 month') * (1))\n\n\n\n)\n\nselect * from filtered\n\n\n),\n\ngeneral_ledger as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ndate_spine as (\n select\n cast(date_trunc('year', date_month) as date) as date_year,\n cast(date_trunc('month', date_month) as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', date_month) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n row_number() over (order by cast(date_trunc('month', date_month) as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\""}, "model.quickbooks.int_quickbooks__bill_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__bill_join"], "unique_id": "model.quickbooks.int_quickbooks__bill_join", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nbills_linked as (\n\n select *\n from {{ ref('stg_quickbooks__bill_linked_txn') }}\n),\n\nbill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as {{ dbt.type_string() }}) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n {{ dbt_utils.group_by(10) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__bill_join.sql", "original_file_path": "models/intermediate/int_quickbooks__bill_join.sql", "name": "int_quickbooks__bill_join", "alias": "int_quickbooks__bill_join", "checksum": {"name": "sha256", "checksum": "26e2ff679cccf1e52083b6e91f4587982d85a6d1f2747ba4733e135992d53f26"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__bill_linked_txn"], ["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single bill transaction with the corresponding bill payment (if paid).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__bill_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.3108668, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nbills_linked as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\n),\n\nbill_payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as TEXT) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n group by 1,2,3,4,5,6,7,8,9,10 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_join\""}, "model.quickbooks.int_quickbooks__sales_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true", "macro.fivetran_utils.enabled_vars"], "nodes": ["model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__sales_union"], "unique_id": "model.quickbooks.int_quickbooks__sales_union", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice'])) }}\n\nwith sales_union as (\n\n {% if var('using_sales_receipt', True) %}\n select *\n from {{ ref('int_quickbooks__sales_receipt_transactions') }}\n {% endif %}\n\n {% if fivetran_utils.enabled_vars(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n\n {% else %}\n\n {% if var('using_invoice', True) %}\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n {% endif %} \n \n {% endif %}\n\n {% if var('using_refund_receipt', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__refund_receipt_transactions') }}\n {% endif %}\n\n {% if var('using_credit_memo', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__credit_memo_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nincome_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__sales_union.sql", "original_file_path": "models/intermediate/int_quickbooks__sales_union.sql", "name": "int_quickbooks__sales_union", "alias": "int_quickbooks__sales_union", "checksum": {"name": "sha256", "checksum": "e8efad88f641adc4d0e72e7bbb6334dc2af414b98b31c8b570dce3ca8bc4a917"}, "tags": [], "refs": [["int_quickbooks__sales_receipt_transactions"], ["int_quickbooks__invoice_transactions"], ["int_quickbooks__refund_receipt_transactions"], ["int_quickbooks__credit_memo_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of a sale. The sale transactional tables are: int_quickbooks__sales_receipt_transactions int_quickbooks__invoice_transactions, int_quickbooks__credit_memo_transactions, int_quickbooks__refund_receipt_transactions, int_quickbooks__journal_entry_transactions, int_quickbooks__deposit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-income transactions an inner join on accounts with the sub_type equal to Income is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__sales_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1674156392.3123431, "compiled_code": "\n\nwith sales_union as (\n\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\"\n\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nincome_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n \n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_union\""}, "analysis.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__balance_sheet"], "unique_id": "analysis.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__balance_sheet.sql", "original_file_path": "analysis/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2d430f9f0571cf16e08e31820360dbb610c24d5fdc1ab38bd2943b4b7161bbda"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156391.1698098, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "analysis.quickbooks.quickbooks__income_statement": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__income_statement"], "unique_id": "analysis.quickbooks.quickbooks__income_statement", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__income_statement.sql", "original_file_path": "analysis/quickbooks__income_statement.sql", "name": "quickbooks__income_statement", "alias": "quickbooks__income_statement", "checksum": {"name": "sha256", "checksum": "6a2926427516128d537ff107ec14a2338f89f3f2dec1d861ec7daab31fd2c87e"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__income_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674156391.174749, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__journal_entry_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_line_tmp')),\n staging_columns=get_journal_entry_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry_line.sql", "original_file_path": "models/stg_quickbooks__journal_entry_line.sql", "name": "stg_quickbooks__journal_entry_line", "alias": "stg_quickbooks__journal_entry_line", "checksum": {"name": "sha256", "checksum": "4a44ae6affd5281ee7cc64e05384fdb7ad18b15c18185cc970f9bd639bdf7a34"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Account id of the account which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.445787, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n billable_status\n \n as \n \n billable_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n posting_type\n \n as \n \n posting_type\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_applicable_on\n \n as \n \n tax_applicable_on\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as TEXT) as journal_entry_id,\n index,\n cast(account_id as TEXT) as account_id,\n amount,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as TEXT) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__transfer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__transfer_tmp')),\n staging_columns=get_transfer_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__transfer.sql", "original_file_path": "models/stg_quickbooks__transfer.sql", "name": "stg_quickbooks__transfer", "alias": "stg_quickbooks__transfer", "checksum": {"name": "sha256", "checksum": "2e5aeff4520b116401c48251bf9a3f2db443857c8c8f7c07aaf5b41286878746"}, "tags": [], "refs": [["stg_quickbooks__transfer_tmp"], ["stg_quickbooks__transfer_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"transfer_id": {"name": "transfer_id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "Account id of the account which the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "Account id of the account which the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__transfer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.4787998, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n from_account_id\n \n as \n \n from_account_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n to_account_id\n \n as \n \n to_account_id\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as transfer_id,\n amount,\n cast(from_account_id as TEXT) as from_account_id,\n cast(to_account_id as TEXT) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_line_tmp')),\n staging_columns=get_bill_payment_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment_line.sql", "original_file_path": "models/stg_quickbooks__bill_payment_line.sql", "name": "stg_quickbooks__bill_payment_line", "alias": "stg_quickbooks__bill_payment_line", "checksum": {"name": "sha256", "checksum": "e0de0b712f688b7f8628fa17430dc3d700042e37a53783d3e8fc7ee0272a71db"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.3981109, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_credit_card_id\n \n as \n \n bill_payment_credit_card_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n linked_bill_payment_id\n \n as \n \n linked_bill_payment_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as TEXT) as bill_payment_id,\n index,\n amount,\n cast(bill_id as TEXT) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_line_tmp')),\n staging_columns=get_payment_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment_line.sql", "original_file_path": "models/stg_quickbooks__payment_line.sql", "name": "stg_quickbooks__payment_line", "alias": "stg_quickbooks__payment_line", "checksum": {"name": "sha256", "checksum": "62737fcbdd45af89bc14370b70f36cfbd94391602da7a6afb4dd97e4a1120429"}, "tags": [], "refs": [["stg_quickbooks__payment_line_tmp"], ["stg_quickbooks__payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.449915, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as TEXT) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as TEXT) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_tmp')),\n staging_columns=get_vendor_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor.sql", "original_file_path": "models/stg_quickbooks__vendor.sql", "name": "stg_quickbooks__vendor", "alias": "stg_quickbooks__vendor", "checksum": {"name": "sha256", "checksum": "6b6d5e653208581f032f6850766879795733912c64f11163419584210d386970"}, "tags": [], "refs": [["stg_quickbooks__vendor_tmp"], ["stg_quickbooks__vendor_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"vendor_id": {"name": "vendor_id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_vendor_1099": {"name": "is_vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1674156392.4880378, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone\n \n as \n \n alternate_phone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n other_contacts\n \n as \n \n other_contacts\n \n, \n \n \n primary_phone\n \n as \n \n primary_phone\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_identifier\n \n as \n \n tax_identifier\n \n, \n \n \n term_id\n \n as \n \n term_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_1099\n \n as \n \n vendor_1099\n \n, \n \n \n web_url\n \n as \n \n web_url\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as TEXT) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_tmp')),\n staging_columns=get_invoice_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line.sql", "original_file_path": "models/stg_quickbooks__invoice_line.sql", "name": "stg_quickbooks__invoice_line", "alias": "stg_quickbooks__invoice_line", "checksum": {"name": "sha256", "checksum": "acc22a519a861cd717e417884b61bc191432e1c46a31ea8ebde689e6f4223177"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_tmp"], ["stg_quickbooks__invoice_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.433685, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as TEXT) as bundle_id,\n cast(account_id as TEXT) as account_id,\n cast(item_id as TEXT) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_tmp') }}\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_tmp')),\n staging_columns=get_estimate_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as estimate_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate.sql", "original_file_path": "models/stg_quickbooks__estimate.sql", "name": "stg_quickbooks__estimate", "alias": "stg_quickbooks__estimate", "checksum": {"name": "sha256", "checksum": "501fe174a3a77c1f92407b060600528ce9e3b198e143ab2985f5a0f0e9c95c70"}, "tags": [], "refs": [["stg_quickbooks__estimate_tmp"], ["stg_quickbooks__estimate_tmp"]], "sources": [], "metrics": [], "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the estimate was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.4259799, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\"\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepted_by\n \n as \n \n accepted_by\n \n, \n \n \n accepted_date\n \n as \n \n accepted_date\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n expiration_date\n \n as \n \n expiration_date\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as estimate_id,\n cast(class_id as TEXT) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_line_tmp')),\n staging_columns=get_credit_memo_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo_line.sql", "original_file_path": "models/stg_quickbooks__credit_memo_line.sql", "name": "stg_quickbooks__credit_memo_line", "alias": "stg_quickbooks__credit_memo_line", "checksum": {"name": "sha256", "checksum": "b7cf6d56a640a9f0700a3620a94fc61a422c8db6dfdbcbbb5939e0fd80c5a3b7"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line_tmp"], ["stg_quickbooks__credit_memo_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.412269, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as TEXT) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_tmp')),\n staging_columns=get_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle.sql", "original_file_path": "models/stg_quickbooks__bundle.sql", "name": "stg_quickbooks__bundle", "alias": "stg_quickbooks__bundle", "checksum": {"name": "sha256", "checksum": "8e3f27ad4f72eb020a1c32b3654e9306ef2f878a0c52ac8356b695a0c03c2611"}, "tags": [], "refs": [["stg_quickbooks__bundle_tmp"], ["stg_quickbooks__bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the bundle was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.407169, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n print_grouped_items\n \n as \n \n print_grouped_items\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__department_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__department_tmp')),\n staging_columns=get_department_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__department.sql", "original_file_path": "models/stg_quickbooks__department.sql", "name": "stg_quickbooks__department", "alias": "stg_quickbooks__department", "checksum": {"name": "sha256", "checksum": "61c0a5d8287b3e73bbee2986e1d0914da2cdc67a88534bd2be26264eb6e29a67"}, "tags": [], "refs": [["stg_quickbooks__department_tmp"], ["stg_quickbooks__department_tmp"]], "sources": [], "metrics": [], "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"department_id": {"name": "department_id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the department was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_department": {"name": "is_sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if is_sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__department.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.4194062, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_department_id\n \n as \n \n parent_department_id\n \n, \n \n \n sub_department\n \n as \n \n sub_department\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "raw_code": "with base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_line_tmp')),\n staging_columns=get_purchase_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_line.sql", "original_file_path": "models/stg_quickbooks__purchase_line.sql", "name": "stg_quickbooks__purchase_line", "alias": "stg_quickbooks__purchase_line", "checksum": {"name": "sha256", "checksum": "1ffe50688ea656d1019565cd7238adef008dc1e1e7e97ba2048bb6c4628f873d"}, "tags": [], "refs": [["stg_quickbooks__purchase_line_tmp"], ["stg_quickbooks__purchase_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based expense purchase line", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1674156392.455231, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as TEXT) as purchase_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__purchase_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_tmp')),\n staging_columns=get_purchase_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase.sql", "original_file_path": "models/stg_quickbooks__purchase.sql", "name": "stg_quickbooks__purchase", "alias": "stg_quickbooks__purchase", "checksum": {"name": "sha256", "checksum": "cde15943157fb1be413075f3aa62e1670fb0e6bb5118ca59ea5f75f816487d4a"}, "tags": [], "refs": [["stg_quickbooks__purchase_tmp"], ["stg_quickbooks__purchase_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of purchase expenses.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Specifies the account reference to which this purchase is applied based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1674156392.458404, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remit_to_address_id\n \n as \n \n remit_to_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as purchase_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n cast(vendor_id as TEXT) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_line_tmp')),\n staging_columns=get_refund_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id, \n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt_line.sql", "original_file_path": "models/stg_quickbooks__refund_receipt_line.sql", "name": "stg_quickbooks__refund_receipt_line", "alias": "stg_quickbooks__refund_receipt_line", "checksum": {"name": "sha256", "checksum": "6e468b38cb9d0067dad366c52ec5e366a4455ed5158fc38d6502f1520529cfe9"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line_tmp"], ["stg_quickbooks__refund_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account which the refund is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.46833, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as TEXT) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id, \n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_item_tmp')),\n staging_columns=get_bundle_item_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle_item.sql", "original_file_path": "models/stg_quickbooks__bundle_item.sql", "name": "stg_quickbooks__bundle_item", "alias": "stg_quickbooks__bundle_item", "checksum": {"name": "sha256", "checksum": "c5e85a89debd33e5f789ef58fa05a1bf931b63a0451c0ab7d8f6b0b565895a4d"}, "tags": [], "refs": [["stg_quickbooks__bundle_item_tmp"], ["stg_quickbooks__bundle_item_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing all bundle and item combinations.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bunlde and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle_item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.405786, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n item_quantity\n \n as \n \n item_quantity\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as TEXT) as bundle_id,\n cast(item_id as TEXT) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_tmp')),\n staging_columns=get_credit_memo_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo.sql", "original_file_path": "models/stg_quickbooks__credit_memo.sql", "name": "stg_quickbooks__credit_memo", "alias": "stg_quickbooks__credit_memo", "checksum": {"name": "sha256", "checksum": "3757765d000c8762afea93869ab1ba6c3d5f22574c7b3d90cd91f4ecb894f85d"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_tmp"], ["stg_quickbooks__credit_memo_tmp"]], "sources": [], "metrics": [], "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier for a credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.4148889, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remaining_credit\n \n as \n \n remaining_credit\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as credit_memo_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as TEXT) as class_id,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_line_tmp')),\n staging_columns=get_sales_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt_line.sql", "original_file_path": "models/stg_quickbooks__sales_receipt_line.sql", "name": "stg_quickbooks__sales_receipt_line", "alias": "stg_quickbooks__sales_receipt_line", "checksum": {"name": "sha256", "checksum": "050d2104a9f5c48e73b726f52bc9472987b3581193a9694bc6744324ba43b82b"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line_tmp"], ["stg_quickbooks__sales_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.474103, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as TEXT) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_tmp')),\n staging_columns=get_sales_receipt_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt.sql", "original_file_path": "models/stg_quickbooks__sales_receipt.sql", "name": "stg_quickbooks__sales_receipt", "alias": "stg_quickbooks__sales_receipt", "checksum": {"name": "sha256", "checksum": "42e250594a269ed1d23ffcce0276c23ce7304ebaf20e55336607dcda12c46dae"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_tmp"], ["stg_quickbooks__sales_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account to which payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the sale was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the sold to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.477237, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as sales_receipt_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_linked_txn_tmp')),\n staging_columns=get_invoice_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_linked_txn.sql", "original_file_path": "models/stg_quickbooks__invoice_linked_txn.sql", "name": "stg_quickbooks__invoice_linked_txn", "alias": "stg_quickbooks__invoice_linked_txn", "checksum": {"name": "sha256", "checksum": "f2b779facddf42a3e62603a1254b1503c2b8a8f52dd69a27ed8a14625c1c5953"}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn_tmp"], ["stg_quickbooks__invoice_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.430123, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n charge_credit_id\n \n as \n \n charge_credit_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n reimburse_charge_id\n \n as \n \n reimburse_charge_id\n \n, \n \n \n statement_charge_id\n \n as \n \n statement_charge_id\n \n, \n \n \n time_activity_id\n \n as \n \n time_activity_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n cast(payment_id as TEXT) as payment_id,\n cast(estimate_id as TEXT) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_tmp')),\n staging_columns=get_invoice_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice.sql", "original_file_path": "models/stg_quickbooks__invoice.sql", "name": "stg_quickbooks__invoice", "alias": "stg_quickbooks__invoice", "checksum": {"name": "sha256", "checksum": "6d5a6ee2afa37a3567700cccf5831e3f27446303711dfaab707579d6c3ae4082"}, "tags": [], "refs": [["stg_quickbooks__invoice_tmp"], ["stg_quickbooks__invoice_tmp"]], "sources": [], "metrics": [], "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer reference is associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class to which the invoice is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.440021, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allow_ipnpayment\n \n as \n \n allow_ipnpayment\n \n, \n \n \n allow_online_achpayment\n \n as \n \n allow_online_achpayment\n \n, \n \n \n allow_online_credit_card_payment\n \n as \n \n allow_online_credit_card_payment\n \n, \n \n \n allow_online_payment\n \n as \n \n allow_online_payment\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n billing_bcc_email\n \n as \n \n billing_bcc_email\n \n, \n \n \n billing_cc_email\n \n as \n \n billing_cc_email\n \n, \n \n \n billing_email\n \n as \n \n billing_email\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n custom_sales_rep\n \n as \n \n custom_sales_rep\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit\n \n as \n \n deposit\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as invoice_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n cast(billing_address_id as TEXT) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as TEXT) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_tmp')),\n staging_columns=get_bill_payment_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment.sql", "original_file_path": "models/stg_quickbooks__bill_payment.sql", "name": "stg_quickbooks__bill_payment", "alias": "stg_quickbooks__bill_payment", "checksum": {"name": "sha256", "checksum": "20561d9a7ab619d2b9872cdb42a90fc7ac99f8eb10715a5ab068f9856fbeb3b5"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_tmp"], ["stg_quickbooks__bill_payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to a Department object specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.400966, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n check_bank_account_id\n \n as \n \n check_bank_account_id\n \n, \n \n \n check_print_status\n \n as \n \n check_print_status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_account_id\n \n as \n \n credit_card_account_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n pay_type\n \n as \n \n pay_type\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_bill_payment\n \n as \n \n process_bill_payment\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bill_payment_id,\n cast(check_bank_account_id as TEXT) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as TEXT) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_bundle_tmp')),\n staging_columns=get_invoice_line_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line_bundle.sql", "original_file_path": "models/stg_quickbooks__invoice_line_bundle.sql", "name": "stg_quickbooks__invoice_line_bundle", "alias": "stg_quickbooks__invoice_line_bundle", "checksum": {"name": "sha256", "checksum": "0f971477ce0e36654a8571afaa3c4de0ca048b529a182bd4d63aa79874676719"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle_tmp"], ["stg_quickbooks__invoice_line_bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line_bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.436484, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n discount_amount\n \n as \n \n discount_amount\n \n, \n \n \n discount_rate\n \n as \n \n discount_rate\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n invoice_line_index\n \n as \n \n invoice_line_index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n line_num\n \n as \n \n line_num\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n service_date\n \n as \n \n service_date\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n cast(class_id as TEXT) as class_id,\n description,\n amount,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(item_id as TEXT) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as TEXT) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "raw_code": "with base as (\n select *\n from {{ ref('stg_quickbooks__account_tmp') }}\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as account_id,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt.type_string() }}) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__account.sql", "original_file_path": "models/stg_quickbooks__account.sql", "name": "stg_quickbooks__account", "alias": "stg_quickbooks__account", "checksum": {"name": "sha256", "checksum": "c363c2c2ed0bd1cdb52064560957c75ad004c3e727f72b5b1bc361e9d8ccf37a"}, "tags": [], "refs": [["stg_quickbooks__account_tmp"], ["stg_quickbooks__account_tmp"]], "sources": [], "metrics": [], "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"account_id": {"name": "account_id", "description": "Unique identifier for an account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__account.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1674156392.389704, "compiled_code": "with base as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\"\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n account_sub_type\n \n as \n \n account_sub_type\n \n, \n \n \n account_type\n \n as \n \n account_type\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_sub_accounts\n \n as \n \n balance_with_sub_accounts\n \n, \n \n \n classification\n \n as \n \n classification\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_account_id\n \n as \n \n parent_account_id\n \n, \n \n \n sub_account\n \n as \n \n sub_account\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as account_id,\n cast(account_number as TEXT) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as TEXT) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_tmp')),\n staging_columns=get_payment_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment.sql", "original_file_path": "models/stg_quickbooks__payment.sql", "name": "stg_quickbooks__payment", "alias": "stg_quickbooks__payment", "checksum": {"name": "sha256", "checksum": "f8b0ad9217d505ec03b1868643d078257992cf4dc4a1b524cab1bc454aeb4a27"}, "tags": [], "refs": [["stg_quickbooks__payment_tmp"], ["stg_quickbooks__payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "Identifies the account for obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to a customer or job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.452333, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_payment\n \n as \n \n process_payment\n \n, \n \n \n receivable_account_id\n \n as \n \n receivable_account_id\n \n, \n \n \n reference_number\n \n as \n \n reference_number\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n unapplied_amount\n \n as \n \n unapplied_amount\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as TEXT) as receivable_account_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_line_tmp')),\n staging_columns=get_estimate_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate_line.sql", "original_file_path": "models/stg_quickbooks__estimate_line.sql", "name": "stg_quickbooks__estimate_line", "alias": "stg_quickbooks__estimate_line", "checksum": {"name": "sha256", "checksum": "08e406854edfa3b633a1c7b434b2ee9e010a4e6c1bc49de7a37ef44c8d277451"}, "tags": [], "refs": [["stg_quickbooks__estimate_line_tmp"], ["stg_quickbooks__estimate_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Reference to the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.429004, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as TEXT) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_linked_txn_tmp')),\n staging_columns=get_bill_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_linked_txn.sql", "original_file_path": "models/stg_quickbooks__bill_linked_txn.sql", "name": "stg_quickbooks__bill_linked_txn", "alias": "stg_quickbooks__bill_linked_txn", "checksum": {"name": "sha256", "checksum": "aa0410b4e6baafc2e21269e6857ef88e84961b061e5007b0a7bb117c314f682d"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment id record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.395775, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(bill_payment_id as TEXT) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__address_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__address_tmp')),\n staging_columns=get_address_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__address.sql", "original_file_path": "models/stg_quickbooks__address.sql", "name": "stg_quickbooks__address", "alias": "stg_quickbooks__address", "checksum": {"name": "sha256", "checksum": "df30cdfedd8bc9f3eb2e7e7e62f55f3c1d4e1ac0a53012e4e2b567c8d4f34d63"}, "tags": [], "refs": [["stg_quickbooks__address_tmp"], ["stg_quickbooks__address_tmp"]], "sources": [], "metrics": [], "description": "Table containing address details.", "columns": {"address_id": {"name": "address_id", "description": "Unique identifier for an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_1": {"name": "address_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_2": {"name": "address_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__address.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.391618, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_sub_division_code\n \n as \n \n country_sub_division_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n line_1\n \n as \n \n line_1\n \n, \n \n \n line_2\n \n as \n \n line_2\n \n, \n \n \n line_3\n \n as \n \n line_3\n \n, \n \n \n line_4\n \n as \n \n line_4\n \n, \n \n \n line_5\n \n as \n \n line_5\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n postal_code\n \n as \n \n postal_code\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_tmp')),\n staging_columns=get_bill_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill.sql", "original_file_path": "models/stg_quickbooks__bill.sql", "name": "stg_quickbooks__bill", "alias": "stg_quickbooks__bill", "checksum": {"name": "sha256", "checksum": "fc4dc80f5295a1755ea41bcfd621db97343c27e09c1646d98c1d04c2cc30f418"}, "tags": [], "refs": [["stg_quickbooks__bill_tmp"], ["stg_quickbooks__bill_tmp"]], "sources": [], "metrics": [], "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of all bill line items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id of the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.404733, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as TEXT) as bill_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as TEXT) as payable_account_id,\n total_amount,\n cast(vendor_id as TEXT) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_line_tmp')),\n staging_columns=get_bill_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_line.sql", "original_file_path": "models/stg_quickbooks__bill_line.sql", "name": "stg_quickbooks__bill_line", "alias": "stg_quickbooks__bill_line", "checksum": {"name": "sha256", "checksum": "d541cef41b0a6505a9ac44d9317a77d9b6addf43cb083219fb9c92a2c793f401"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The id of the account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.394766, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_tmp')),\n staging_columns=get_journal_entry_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry.sql", "original_file_path": "models/stg_quickbooks__journal_entry.sql", "name": "stg_quickbooks__journal_entry", "alias": "stg_quickbooks__journal_entry", "checksum": {"name": "sha256", "checksum": "4f62753998ceb5f5764a9fba39a9fbd9fb87a16abf35090e50f2dd18eac58346"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_tmp"], ["stg_quickbooks__journal_entry_tmp"]], "sources": [], "metrics": [], "description": "Table containing journal entry transactions.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the journal entry was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.4480698, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adjustment\n \n as \n \n adjustment\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as TEXT) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_tmp')),\n staging_columns=get_refund_receipt_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt.sql", "original_file_path": "models/stg_quickbooks__refund_receipt.sql", "name": "stg_quickbooks__refund_receipt", "alias": "stg_quickbooks__refund_receipt", "checksum": {"name": "sha256", "checksum": "5cd054048b45bd2245f33de53658e58c23bf8eabb8e4cfdcc096c915a977a834"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_tmp"], ["stg_quickbooks__refund_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account from which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.471305, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n check_payment_account_number\n \n as \n \n check_payment_account_number\n \n, \n \n \n check_payment_bank_name\n \n as \n \n check_payment_bank_name\n \n, \n \n \n check_payment_check_number\n \n as \n \n check_payment_check_number\n \n, \n \n \n check_payment_name_on_account\n \n as \n \n check_payment_name_on_account\n \n, \n \n \n check_payment_status\n \n as \n \n check_payment_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as refund_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(class_id as TEXT) as class_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_line_tmp')),\n staging_columns=get_deposit_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt.type_string() }}) as deposit_account_id,\n cast(deposit_class_id as {{ dbt.type_string() }}) as deposit_class_id,\n cast(deposit_customer_id as {{ dbt.type_string() }}) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit_line.sql", "original_file_path": "models/stg_quickbooks__deposit_line.sql", "name": "stg_quickbooks__deposit_line", "alias": "stg_quickbooks__deposit_line", "checksum": {"name": "sha256", "checksum": "f2f457f0503a22ec51d606aab2156f7534091b31840927c84bb5fc7a2d34c838"}, "tags": [], "refs": [["stg_quickbooks__deposit_line_tmp"], ["stg_quickbooks__deposit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class which the deposit line record is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "Account id of the account which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Customer id of the customer which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.421128, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n deposit_account_id\n \n as \n \n deposit_account_id\n \n, \n \n \n deposit_check_number\n \n as \n \n deposit_check_number\n \n, \n \n \n deposit_class_id\n \n as \n \n deposit_class_id\n \n, \n \n \n deposit_customer_id\n \n as \n \n deposit_customer_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n deposit_payment_method_id\n \n as \n \n deposit_payment_method_id\n \n, \n \n \n deposit_tax_applicable_on\n \n as \n \n deposit_tax_applicable_on\n \n, \n \n \n deposit_tax_code_id\n \n as \n \n deposit_tax_code_id\n \n, \n \n \n deposit_transaction_type\n \n as \n \n deposit_transaction_type\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n detail_type\n \n as \n \n detail_type\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n, \n \n \n refund_receipt_id\n \n as \n \n refund_receipt_id\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n transfer_id\n \n as \n \n transfer_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as TEXT) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as TEXT) as deposit_account_id,\n cast(deposit_class_id as TEXT) as deposit_class_id,\n cast(deposit_customer_id as TEXT) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_tmp')),\n staging_columns=get_vendor_credit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit.sql", "original_file_path": "models/stg_quickbooks__vendor_credit.sql", "name": "stg_quickbooks__vendor_credit", "alias": "stg_quickbooks__vendor_credit", "checksum": {"name": "sha256", "checksum": "bd2e5efc709f19666acabd4fdd2483c1013d05078dca5ff4ffb8a1975a4a9978"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_tmp"], ["stg_quickbooks__vendor_credit_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the vendor credit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Specifies to which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.485303, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_credit_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as TEXT) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_line_tmp')),\n staging_columns=get_vendor_credit_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit_line.sql", "original_file_path": "models/stg_quickbooks__vendor_credit_line.sql", "name": "stg_quickbooks__vendor_credit_line", "alias": "stg_quickbooks__vendor_credit_line", "checksum": {"name": "sha256", "checksum": "44764c7cbfb920e4b4c187299856d960ffdb9408d2e8dabc29c326c4c5e9f3c9"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line_tmp"], ["stg_quickbooks__vendor_credit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": [], "test": ["not_null"]}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account credited for the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Customer reference for the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Customer reference for the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.4823391, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as TEXT) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_tmp')),\n staging_columns=get_deposit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit.sql", "original_file_path": "models/stg_quickbooks__deposit.sql", "name": "stg_quickbooks__deposit", "alias": "stg_quickbooks__deposit", "checksum": {"name": "sha256", "checksum": "3a8f91dd22dbe918fccedae73ae5a3e2db38a6344ac0a39d885ef49b149c89ce"}, "tags": [], "refs": [["stg_quickbooks__deposit_tmp"], ["stg_quickbooks__deposit_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifies the account to be used for this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the deposit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1674156392.423358, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n cash_back_account_id\n \n as \n \n cash_back_account_id\n \n, \n \n \n cash_back_amount\n \n as \n \n cash_back_amount\n \n, \n \n \n cash_back_memo\n \n as \n \n cash_back_memo\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as deposit_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__item_tmp')),\n staging_columns=get_item_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt.type_string() }}) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as {{ dbt.type_string() }}) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__item.sql", "original_file_path": "models/stg_quickbooks__item.sql", "name": "stg_quickbooks__item", "alias": "stg_quickbooks__item", "checksum": {"name": "sha256", "checksum": "049dfdf58d6ee3ac495bb7f41562a880562a55f818a0fdfda3a14574f8dfc7ce"}, "tags": [], "refs": [["stg_quickbooks__item_tmp"], ["stg_quickbooks__item_tmp"]], "sources": [], "metrics": [], "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"item_id": {"name": "item_id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the item was created within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the posting account, that is, the account that records the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the Inventory Asset account that tracks the current value of the inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1674156392.4429948, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n asset_account_id\n \n as \n \n asset_account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n \n \n inventory_start_date\n \n as \n \n inventory_start_date\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_item_id\n \n as \n \n parent_item_id\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n purchase_description\n \n as \n \n purchase_description\n \n, \n \n \n purchase_tax_code_id\n \n as \n \n purchase_tax_code_id\n \n, \n \n \n purchase_tax_included\n \n as \n \n purchase_tax_included\n \n, \n \n \n quantity_on_hand\n \n as \n \n quantity_on_hand\n \n, \n \n \n sales_tax_code_id\n \n as \n \n sales_tax_code_id\n \n, \n \n \n sales_tax_included\n \n as \n \n sales_tax_included\n \n, \n \n \n stock_keeping_unit\n \n as \n \n stock_keeping_unit\n \n, \n \n \n sub_item\n \n as \n \n sub_item\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n track_quantity_on_hand\n \n as \n \n track_quantity_on_hand\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as TEXT) as income_account_id,\n cast(asset_account_id as TEXT) as asset_account_id,\n cast(expense_account_id as TEXT) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as TEXT) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__customer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__customer.sql", "original_file_path": "models/stg_quickbooks__customer.sql", "name": "stg_quickbooks__customer", "alias": "stg_quickbooks__customer", "checksum": {"name": "sha256", "checksum": "b896108565ae7c6d917878e5c8c6dd77f3fa89e61e4bda773ab8f06dc77ad7f3"}, "tags": [], "refs": [["stg_quickbooks__customer_tmp"], ["stg_quickbooks__customer_tmp"]], "sources": [], "metrics": [], "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__customer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1674156392.417428, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone_number\n \n as \n \n alternate_phone_number\n \n, \n \n \n ar_account_id\n \n as \n \n ar_account_id\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_jobs\n \n as \n \n balance_with_jobs\n \n, \n \n \n bill_address_id\n \n as \n \n bill_address_id\n \n, \n \n \n bill_with_parent\n \n as \n \n bill_with_parent\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n default_tax_code_id\n \n as \n \n default_tax_code_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job\n \n as \n \n job\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_number\n \n as \n \n mobile_number\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n open_balance_date\n \n as \n \n open_balance_date\n \n, \n \n \n parent_customer_id\n \n as \n \n parent_customer_id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n phone_number\n \n as \n \n phone_number\n \n, \n \n \n preferred_delivery_method\n \n as \n \n preferred_delivery_method\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n resale_number\n \n as \n \n resale_number\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_exemption_reason_id\n \n as \n \n tax_exemption_reason_id\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n website\n \n as \n \n website\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "name": "stg_quickbooks__vendor_credit_tmp", "alias": "stg_quickbooks__vendor_credit_tmp", "checksum": {"name": "sha256", "checksum": "135d5b0865e271c5d29187680f97b226b40b1c6c1e618f9d0818f0b7122dcfe6"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156391.997749, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "name": "stg_quickbooks__refund_receipt_line_tmp", "alias": "stg_quickbooks__refund_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "b35b79d236200ea1e2d71df28d1d32dbc3d8ce93eb0c97fc2d502997e133055e"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.015739, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_line_tmp.sql", "name": "stg_quickbooks__estimate_line_tmp", "alias": "stg_quickbooks__estimate_line_tmp", "checksum": {"name": "sha256", "checksum": "e6b43f9598030c138d67898959d3bcc06d4b571b16bd790974c5bda4e90dfe18"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.0227132, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "name": "stg_quickbooks__credit_memo_line_tmp", "alias": "stg_quickbooks__credit_memo_line_tmp", "checksum": {"name": "sha256", "checksum": "877429c46bb2ccc5558c8577eda2444270a82e5e7717aec418fba450db743924"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.034763, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_tmp.sql", "name": "stg_quickbooks__journal_entry_tmp", "alias": "stg_quickbooks__journal_entry_tmp", "checksum": {"name": "sha256", "checksum": "4cc1a32910c8e5255f3d3bbe4578fb9f562e3f2fb56eff69e22f7f69b11fa32e"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.040627, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line_bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line_bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "name": "stg_quickbooks__invoice_line_bundle_tmp", "alias": "stg_quickbooks__invoice_line_bundle_tmp", "checksum": {"name": "sha256", "checksum": "a2dc8302a76014fdede73acb185944cb3901457f568da00b9400dbadd61a4781"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line_bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.046457, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_tmp.sql", "name": "stg_quickbooks__payment_tmp", "alias": "stg_quickbooks__payment_tmp", "checksum": {"name": "sha256", "checksum": "afe62d4646d63e7fc44dbe73ad04eb3af6f94e1fd98953cfdd5a5fae5464818f"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.053174, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_tmp.sql", "name": "stg_quickbooks__invoice_line_tmp", "alias": "stg_quickbooks__invoice_line_tmp", "checksum": {"name": "sha256", "checksum": "ec89045532e817aed8e8dc0a09e66f53a2c88aba038c7dcbbb51f6875d044f5d"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.058922, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_line_tmp.sql", "name": "stg_quickbooks__deposit_line_tmp", "alias": "stg_quickbooks__deposit_line_tmp", "checksum": {"name": "sha256", "checksum": "2a560b4173366349cc88aa5c091b2f10c61f60c0bfe73b3b0f673877627002a4"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.064648, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.customer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='customer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='customer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__customer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__customer_tmp.sql", "name": "stg_quickbooks__customer_tmp", "alias": "stg_quickbooks__customer_tmp", "checksum": {"name": "sha256", "checksum": "2125a8e00af7bd53a1c2d0b414a756fa128457d4ecda78c77f813ba133a81325"}, "tags": [], "refs": [], "sources": [["quickbooks", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__customer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1674156392.06987, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_line_tmp.sql", "name": "stg_quickbooks__bill_line_tmp", "alias": "stg_quickbooks__bill_line_tmp", "checksum": {"name": "sha256", "checksum": "8f06919fa5048f09e127332ef0675a7fac11b3d0787e6672612010db4a7f6193"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.076034, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__item_tmp.sql", "name": "stg_quickbooks__item_tmp", "alias": "stg_quickbooks__item_tmp", "checksum": {"name": "sha256", "checksum": "0db4c37e6bea881ee6f85348bc069b1ba7d74ce4fd550ed0ac643d4ef780ab79"}, "tags": [], "refs": [], "sources": [["quickbooks", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1674156392.082083, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='account', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='account',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__account_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__account_tmp.sql", "name": "stg_quickbooks__account_tmp", "alias": "stg_quickbooks__account_tmp", "checksum": {"name": "sha256", "checksum": "1157f7c518bf6f5e15bd9080fe829b06b7e3ddf59ea3e3a06164fe453e0def85"}, "tags": [], "refs": [], "sources": [["quickbooks", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__account_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1674156392.087883, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"account_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "name": "stg_quickbooks__vendor_credit_line_tmp", "alias": "stg_quickbooks__vendor_credit_line_tmp", "checksum": {"name": "sha256", "checksum": "38b9e05b27c7db52aa41fa740caa437895743d5de562b476917f75b55277debc"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.100044, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.department"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='department', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='department',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__department_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__department_tmp.sql", "name": "stg_quickbooks__department_tmp", "alias": "stg_quickbooks__department_tmp", "checksum": {"name": "sha256", "checksum": "ea310c765f23c51e6a2ef7bef84749f2a3fa89ac06b768173788080096354a00"}, "tags": [], "refs": [], "sources": [["quickbooks", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__department_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.106069, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"department_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_tmp.sql", "name": "stg_quickbooks__bundle_tmp", "alias": "stg_quickbooks__bundle_tmp", "checksum": {"name": "sha256", "checksum": "722d0a1b955a8c123522a87f6b97c8770d00365b98d1fc057d1724e9c5c06667"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.1120121, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle_item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle_item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_item_tmp.sql", "name": "stg_quickbooks__bundle_item_tmp", "alias": "stg_quickbooks__bundle_item_tmp", "checksum": {"name": "sha256", "checksum": "29e60e9dfb0da56786a41a51e1f1d441ae47d0e7b43727f8a31af463d6daf588"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle_item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.1177568, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "name": "stg_quickbooks__bill_payment_line_tmp", "alias": "stg_quickbooks__bill_payment_line_tmp", "checksum": {"name": "sha256", "checksum": "914efeefeb70efc2b64e7bae87b298f93f419a08b170e06c3efb825f8eca1968"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.1302211, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_tmp.sql", "name": "stg_quickbooks__estimate_tmp", "alias": "stg_quickbooks__estimate_tmp", "checksum": {"name": "sha256", "checksum": "bd7a335748a13aae584ae7ee6a45b8565299cf7a48a0495be863920c797d83c6"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.136619, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_tmp.sql", "name": "stg_quickbooks__purchase_tmp", "alias": "stg_quickbooks__purchase_tmp", "checksum": {"name": "sha256", "checksum": "1ad34ab2fb967805e5387b4dcf01716431d1008430faee53027f043466c3896d"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1674156392.1425579, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_tmp.sql", "name": "stg_quickbooks__credit_memo_tmp", "alias": "stg_quickbooks__credit_memo_tmp", "checksum": {"name": "sha256", "checksum": "1bbda612f739f980fcf68562c4efbd39bbae1e1a37713c7bd5c4deecc24660f0"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.1481411, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_tmp.sql", "name": "stg_quickbooks__bill_tmp", "alias": "stg_quickbooks__bill_tmp", "checksum": {"name": "sha256", "checksum": "b579ba85c94cfa32fdb6fe9e65c2ee8e804c21417af340278c7370a7b9a31f2c"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.154028, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='transfer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='transfer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__transfer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__transfer_tmp.sql", "name": "stg_quickbooks__transfer_tmp", "alias": "stg_quickbooks__transfer_tmp", "checksum": {"name": "sha256", "checksum": "e46216a5c817a4e27af2ac9a936e7e21dc89127c20a0775d7e21c63cbdb4e173"}, "tags": [], "refs": [], "sources": [["quickbooks", "transfer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__transfer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.160851, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='vendor', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_tmp.sql", "name": "stg_quickbooks__vendor_tmp", "alias": "stg_quickbooks__vendor_tmp", "checksum": {"name": "sha256", "checksum": "e106f714c2f307d3d50e99e8bd61cd4c03e96002006ce67191e182f2e1b19f7a"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1674156392.1666079, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_line_tmp.sql", "name": "stg_quickbooks__purchase_line_tmp", "alias": "stg_quickbooks__purchase_line_tmp", "checksum": {"name": "sha256", "checksum": "39c7787a6481961b9d80bf3173afd5ece106fdb67bad2edbd69d436c6bbc3aca"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1674156392.172236, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.address"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='address', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='address',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__address_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__address_tmp.sql", "name": "stg_quickbooks__address_tmp", "alias": "stg_quickbooks__address_tmp", "checksum": {"name": "sha256", "checksum": "39a9820afa24c94b220f35fa72a0452806f5cdb828e5eb70583cded4ceb71454"}, "tags": [], "refs": [], "sources": [["quickbooks", "address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.177577, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"address_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_line_tmp.sql", "name": "stg_quickbooks__payment_line_tmp", "alias": "stg_quickbooks__payment_line_tmp", "checksum": {"name": "sha256", "checksum": "333d6ce9e2621c99b011bfbb668c38c1fe20d45a9e155278371ad1c5c19fffa3"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.1836622, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "name": "stg_quickbooks__refund_receipt_tmp", "alias": "stg_quickbooks__refund_receipt_tmp", "checksum": {"name": "sha256", "checksum": "274dbd883a2adaf7559f8bc8812a558a95b52329f18218fe5494c63b7abcf7a5"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.190637, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "name": "stg_quickbooks__sales_receipt_tmp", "alias": "stg_quickbooks__sales_receipt_tmp", "checksum": {"name": "sha256", "checksum": "bb64ce4afbe0e70f70d7c9dae8a57423d5ee7dc2326107fa4c5d4371ca911fce"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.196374, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_tmp.sql", "name": "stg_quickbooks__bill_payment_tmp", "alias": "stg_quickbooks__bill_payment_tmp", "checksum": {"name": "sha256", "checksum": "f956078b3ec8d833f517f431c67509fe75f494b11a6fa4a735b85d232453dba4"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.202535, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "name": "stg_quickbooks__journal_entry_line_tmp", "alias": "stg_quickbooks__journal_entry_line_tmp", "checksum": {"name": "sha256", "checksum": "bcba66ad0358646e9993b39ecdd17c69130874858cb027ed198364bb77a3d283"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.208163, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_tmp.sql", "name": "stg_quickbooks__deposit_tmp", "alias": "stg_quickbooks__deposit_tmp", "checksum": {"name": "sha256", "checksum": "e1f40c890b39fe0dd1bcec03c90b403c4e77015c805426b90ca3c3b1c93eb3b2"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.214647, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "name": "stg_quickbooks__bill_linked_txn_tmp", "alias": "stg_quickbooks__bill_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "2583068246d6617f1e99a3b11589211fb7cb90f66035526cee17be299ba826ec"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.220698, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "name": "stg_quickbooks__invoice_linked_txn_tmp", "alias": "stg_quickbooks__invoice_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "813acd5c2445c8886b2aa20afb05c5dc8165b9d38b3081b12a879e67abc67520"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.227138, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "name": "stg_quickbooks__sales_receipt_line_tmp", "alias": "stg_quickbooks__sales_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "87037987bd00e48e0a7fe6300511bcf7c80031e6fe4ba3b77902a7baa5752132"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.265305, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_tmp.sql", "name": "stg_quickbooks__invoice_tmp", "alias": "stg_quickbooks__invoice_tmp", "checksum": {"name": "sha256", "checksum": "c901088fa713bc1e59f7299c7c7d6ac7aea71b7c97e5a2821fd8efd33214bfc1"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1674156392.276875, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "estimate_id"], "model": "{{ get_where_subquery(ref('quickbooks__ap_ar_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__ap_ar_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id", "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__ap_ar_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d"}, "created_at": 1674156392.3491251, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, estimate_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\"\n group by transaction_id, source_relation, estimate_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__ap_ar_enhanced"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "transaction_line_id", "item_id"], "model": "{{ get_where_subquery(ref('quickbooks__expenses_sales_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__expenses_sales_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id", "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__expenses_sales_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938"}, "created_at": 1674156392.362258, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, transaction_line_id, item_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\"\n group by transaction_id, source_relation, transaction_line_id, item_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__expenses_sales_enhanced"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["unique_id", "source_relation"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation", "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0"}, "created_at": 1674156392.3667111, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n unique_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n group by unique_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "period_first_day"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger_by_period')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day", "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782"}, "created_at": 1674156392.370411, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, period_first_day\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n group by account_id, class_id, source_relation, period_first_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger_by_period"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "calendar_date"], "model": "{{ get_where_subquery(ref('quickbooks__profit_and_loss')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__profit_and_loss"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date", "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__profit_and_loss"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381"}, "created_at": 1674156392.374688, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, calendar_date\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\"\n group by account_id, class_id, source_relation, calendar_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__profit_and_loss"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation", "calendar_date", "class_id"], "model": "{{ get_where_subquery(ref('quickbooks__balance_sheet')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id", "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827"}, "created_at": 1674156392.3787892, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation, calendar_date, class_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n group by account_id, source_relation, calendar_date, class_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__balance_sheet"}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__account_account_id", "alias": "not_null_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.4887302, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Asset", "Equity", "Expense", "Liability", "Revenue"], "column_name": "classification", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9"}, "created_at": 1674156392.490247, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n classification as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by classification\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Asset','Equity','Expense','Liability','Revenue'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "classification", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29"}, "created_at": 1674156392.497327, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by account_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "address_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__address_address_id", "alias": "not_null_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__address_address_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.500957, "compiled_code": "\n \n \n\n\n\nselect address_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\nwhere address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id", "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["address_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation", "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772"}, "created_at": 1674156392.502246, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n address_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n group by address_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_line_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_line_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_line_bill_id", "alias": "not_null_stg_quickbooks__bill_line_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_line_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.505832, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1"}, "created_at": 1674156392.5071292, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n group by bill_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.510901, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.512319, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_line_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.513592, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614"}, "created_at": 1674156392.5148711, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n group by bill_payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.5186272, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec"}, "created_at": 1674156392.5199392, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n group by bill_payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_bill_id", "alias": "not_null_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.523485, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation", "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4"}, "created_at": 1674156392.524787, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n group by bill_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle_item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_item_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_item_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_item_bundle_id", "alias": "not_null_stg_quickbooks__bundle_item_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle_item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_item_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.5283442, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle_item"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_bundle_id", "alias": "not_null_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.5296068, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bundle_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation", "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727"}, "created_at": 1674156392.531061, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bundle_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n group by bundle_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_line_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.534425, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858"}, "created_at": 1674156392.535855, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n group by credit_memo_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.539563, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation", "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083"}, "created_at": 1674156392.54087, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n group by credit_memo_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__customer_customer_id", "alias": "not_null_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__customer_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.5446799, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation", "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a"}, "created_at": 1674156392.545959, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n group by customer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_line_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_line_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_line_deposit_id", "alias": "not_null_stg_quickbooks__deposit_line_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_line_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.5495129, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b"}, "created_at": 1674156392.5507898, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n group by deposit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_deposit_id", "alias": "not_null_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.554516, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation", "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb"}, "created_at": 1674156392.5558012, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n group by deposit_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_estimate_id", "alias": "not_null_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.559361, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation", "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68"}, "created_at": 1674156392.560642, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n group by estimate_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_line_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_line_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_line_estimate_id", "alias": "not_null_stg_quickbooks__estimate_line_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_line_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.564182, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a"}, "created_at": 1674156392.5654888, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\n group by estimate_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "alias": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.569247, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.570698, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0"}, "created_at": 1674156392.5720232, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n group by invoice_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.575778, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "invoice_line_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation", "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a"}, "created_at": 1674156392.577066, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, invoice_line_index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n group by invoice_id, index, invoice_line_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_invoice_id", "alias": "not_null_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.581015, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation", "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c"}, "created_at": 1674156392.582307, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n group by invoice_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__item_item_id", "alias": "not_null_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__item_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.5858612, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation", "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5"}, "created_at": 1674156392.587187, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n item_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n group by item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_line_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.59074, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Credit", "Debit"], "column_name": "posting_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55"}, "created_at": 1674156392.592011, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n posting_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by posting_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Credit','Debit'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "posting_type", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["journal_entry_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee"}, "created_at": 1674156392.595596, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n journal_entry_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by journal_entry_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.5997162, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_line_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_line_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_line_payment_id", "alias": "not_null_stg_quickbooks__payment_line_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_line_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.600981, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625"}, "created_at": 1674156392.602413, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n group by payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_payment_id", "alias": "not_null_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.606057, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557"}, "created_at": 1674156392.6074822, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n group by payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_line_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_line_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_line_purchase_id", "alias": "not_null_stg_quickbooks__purchase_line_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_line_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.610979, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153"}, "created_at": 1674156392.612334, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n group by purchase_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_purchase_id", "alias": "not_null_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.616014, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Cash", "Check", "CreditCard"], "column_name": "payment_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216"}, "created_at": 1674156392.617298, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n payment_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by payment_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Cash','Check','CreditCard'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_type", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation", "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563"}, "created_at": 1674156392.62099, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by purchase_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_line_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.639125, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576"}, "created_at": 1674156392.6404061, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n group by refund_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.6441169, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation", "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605"}, "created_at": 1674156392.645555, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n group by refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.648897, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899"}, "created_at": 1674156392.650642, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n group by sales_receipt_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.654369, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation", "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d"}, "created_at": 1674156392.6556559, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n group by sales_receipt_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transfer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__transfer_transfer_id", "alias": "not_null_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__transfer_transfer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.6591449, "compiled_code": "\n \n \n\n\n\nselect transfer_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\nwhere transfer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id", "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transfer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233"}, "created_at": 1674156392.660438, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transfer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n group by transfer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_credit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b"}, "created_at": 1674156392.663965, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_credit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n group by vendor_credit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor_credit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "alias": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.667645, "compiled_code": "\n \n \n\n\n\nselect vendor_credit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\nwhere vendor_credit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id", "file_key_name": "models.stg_quickbooks__vendor_credit"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_vendor_id", "alias": "not_null_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.66892, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_quickbooks__vendor"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation", "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4"}, "created_at": 1674156392.670193, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n group by vendor_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor"}, "model.quickbooks.quickbooks__cash_flow_statement": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__cash_flow_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__cash_flow_statement"], "unique_id": "model.quickbooks.quickbooks__cash_flow_statement", "raw_code": "with cash_flow_classifications as (\n \n select *\n from {{ ref('int_quickbooks__cash_flow_classifications') }}\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__cash_flow_statement.sql", "original_file_path": "models/quickbooks__cash_flow_statement.sql", "name": "quickbooks__cash_flow_statement", "alias": "quickbooks__cash_flow_statement", "checksum": {"name": "sha256", "checksum": "08755f384d8c772516c9ee251fe73ceda61e54f61a0db87d7514347247d54ef7"}, "tags": [], "refs": [["int_quickbooks__cash_flow_classifications"]], "sources": [], "metrics": [], "description": "Table that provides all line items necessary to construct a cash flow statement.", "columns": {"account_unique_id": {"name": "account_unique_id", "description": "Unique identifier of the cash flow statement account line, dependent on account_id, class_id, source_relation and calendar_date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_period": {"name": "cash_flow_period", "description": "Timestamp of the first date for the cash flow period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_type": {"name": "cash_flow_type", "description": "The type of cash flow (Defaults are Cash or Cash Equivalents, Investing, Operating, Financing). The customer can also configure the cash flow type; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_ordinal": {"name": "cash_flow_ordinal", "description": "Integer value to order the account within final cash flow statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_ending_period": {"name": "cash_ending_period", "description": "The total ending period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_beginning_period": {"name": "cash_beginning_period", "description": "The total beginning period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_net_period": {"name": "cash_net_period", "description": "The net cash change from the beginning to the end of the period for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__cash_flow_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1674551263.8112829, "compiled_code": "with cash_flow_classifications as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\"\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\""}, "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "unique_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "unique_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "unique_quickbooks__cash_flow_statement_account_unique_id", "alias": "unique_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/unique_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674551263.8175192, "compiled_code": "\n \n \n\nselect\n account_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is not null\ngroup by account_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "not_null_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "not_null_quickbooks__cash_flow_statement_account_unique_id", "alias": "not_null_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674551263.819157, "compiled_code": "\n \n \n\n\n\nselect account_unique_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "account", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "account_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"id": {"name": "id", "description": "Unique identifier of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_account": {"name": "sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"account_data\"", "created_at": 1674156392.790567}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "address", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing address details.", "columns": {"id": {"name": "id", "description": "Unique identifier of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_1": {"name": "line_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_2": {"name": "line_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"address_data\"", "created_at": 1674156392.790687}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"", "created_at": 1674156392.790784}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The \"Unique identifier of the bill payment id record.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"", "created_at": 1674156392.790866}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"", "created_at": 1674156392.7909539}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"", "created_at": 1674156392.79105}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total \"Monetary amount of all bill line items.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"", "created_at": 1674156392.791143}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle_item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing all bundle and item combinations", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bundle and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"", "created_at": 1674156392.791223}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"", "created_at": 1674156392.7913039}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"fqn": ["quickbooks_source", "quickbooks", "credit_card_payment_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_card_payment_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_card_payment_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all credit card payment transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "The identifier of the account associated with the bank which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credit card which the payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_card_payment_txn_data\"", "created_at": 1674156392.79139}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"", "created_at": 1674156392.79148}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"", "created_at": 1674156392.791569}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "customer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "customer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website url associated with the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"", "created_at": 1674156392.791657}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "department", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "department_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_department": {"name": "sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"department_data\"", "created_at": 1674156392.79174}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class associated the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "The identifier of the account associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Reference to the customer associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"", "created_at": 1674156392.7918222}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"id": {"name": "id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"", "created_at": 1674156392.791906}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"id": {"name": "id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"", "created_at": 1674156392.792056}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"", "created_at": 1674156392.792147}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"", "created_at": 1674156392.792228}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"", "created_at": 1674156392.7923222}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line_bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for sales on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"", "created_at": 1674156392.7924101}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"id": {"name": "id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"", "created_at": 1674156392.792503}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the item within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "The identifier of the account associated with the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "The identifier of the account associated with the inventory asset that tracks its current value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "The identifier of the account associated used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"item_data\"", "created_at": 1674156392.7925918}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"", "created_at": 1674156392.7926788}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing journal entry transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjustment": {"name": "adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"", "created_at": 1674156392.792763}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"", "created_at": 1674156392.7928472}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"id": {"name": "id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "The identifier of the account associated with obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with the deposit to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"", "created_at": 1674156392.792931}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"", "created_at": 1674156392.7930171}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase expenses.", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the applied purchase based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"", "created_at": 1674156392.7931058}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase order.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_line_data\"", "created_at": 1674156392.793223}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for purchase order records to respective bill and purchase objects.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_linked_txn_data\"", "created_at": 1674156392.793302}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase orders (PO).", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_customer_type": {"name": "custom_customer_type", "description": "Custom field for customer type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "A message for the vendor. This text appears on the purchase order object sent to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction. This note does not appear on the purchase order to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_data\"", "created_at": 1674156392.793396}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"", "created_at": 1674156392.7934878}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"id": {"name": "id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the refund receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"", "created_at": 1674156392.793578}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"", "created_at": 1674156392.793664}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"id": {"name": "id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with where payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated sales receipt to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"", "created_at": 1674156392.793751}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "transfer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "transfer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"id": {"name": "id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "The identifier of the account associated with where the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "The identifier of the account associated with where the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"", "created_at": 1674156392.79383}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"", "created_at": 1674156392.79392}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"", "created_at": 1674156392.794007}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_1099": {"name": "vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"", "created_at": 1674156392.794092}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.712289, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.712634, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7128, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.712966, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.713121, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.714802, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.715987, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.724468, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7251918, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.725751, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.726558, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7272909, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.727828, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.728069, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.728558, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.729234, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.730484, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7307782, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.731221, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.731601, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.732203, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.732509, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.733345, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.733642, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7338161, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.734677, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.735876, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.736324, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.737329, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.742302, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.742668, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.743542, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.744253, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.746173, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7466, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.746818, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.747023, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.747217, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7478771, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.748308, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.748755, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.74946, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7498372, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.75482, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.755069, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7553852, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.756597, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.756881, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.757132, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7591271, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.761289, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.766848, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7673101, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7675688, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.767699, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.768002, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.76822, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.768526, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.769831, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.770092, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7704399, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.77104, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.77993, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.782989, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7836878, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.78411, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.784744, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.785266, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.787792, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7886999, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7898738, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.790277, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.7913642, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.798042, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8003469, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.80068, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8017302, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.80214, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.803067, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.804227, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.805454, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.805779, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.806039, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.806616, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8069298, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.807324, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.807602, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.807992, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.808258, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.808479, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8089101, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.816276, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.824048, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.825769, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.82756, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.828757, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.832448, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.833219, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.833475, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.834065, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.834662, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.838763, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.839406, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8397288, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.841929, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8425212, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.842751, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.843006, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.843372, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.848685, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.855516, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.857057, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.85746, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.858176, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.858454, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.858666, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8588889, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8590689, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.859311, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8594902, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8603451, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.860638, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.862547, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8633118, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.863632, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8644118, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.864773, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.86517, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.865779, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.866124, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8668401, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8676429, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.868167, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.86919, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.871371, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.872274, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.87268, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.875113, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.876977, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.878319, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.878809, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.879432, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.879553, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.880172, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.880424, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.880897, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8810802, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.88157, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.881734, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.882328, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.88257, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.882996, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8831098, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.883604, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8838952, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8845298, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.884842, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8858082, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.886366, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.887197, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.887477, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8881788, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8883998, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.888921, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.889171, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.889643, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8898911, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.890353, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.890511, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.891029, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.891226, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8916821, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.891926, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.893365, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8935921, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.893943, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8941581, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8943841, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.894592, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8948212, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.895082, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8953128, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.8955252, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.895756, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.895952, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.89618, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.896378, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.897152, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.897363, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.897963, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.898124, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.898747, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.899162, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.899381, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.900455, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9006999, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.901147, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.901759, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9019442, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9025788, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.902926, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.903421, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.903606, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.904209, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.904477, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.904704, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9049568, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9056919, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.905906, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9061172, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.906261, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9064991, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.906603, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.906983, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.907271, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.908084, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.908407, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.908633, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.909323, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9138849, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.914123, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.91444, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.914864, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.915216, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.915673, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9159412, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.916242, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9164958, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.916726, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.917196, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9176698, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.91805, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.918881, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9193401, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9195468, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.919832, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9207208, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.921335, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.92384, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.924021, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9244401, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.924665, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.925201, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9255, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9256582, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.926008, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9265542, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9270122, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.927318, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.927667, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.928704, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.929416, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.929801, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9301372, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.931796, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.933114, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.933363, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9336698, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9339242, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.934561, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.935563, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.938082, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9384892, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.939001, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.939987, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9415832, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.942252, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.942802, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.943486, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9437928, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.944043, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9468212, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.947218, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.947695, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9479702, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9484959, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.949379, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.950803, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.951231, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.952438, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.957024, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9580858, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.959222, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9606662, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.960963, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9624991, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.963009, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9634829, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.963912, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9647849, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9656699, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.966528, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9677088, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.968329, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.968812, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.970714, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.972307, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9739509, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.976174, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9774551, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.977963, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.97918, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9804852, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.981607, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9822989, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.983309, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.98401, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.984909, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.98569, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.986706, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.987595, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9886851, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.989761, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.990687, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9911768, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9918258, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.992325, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.993309, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.994547, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.996222, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.9976451, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156389.998883, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.000226, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"unique_id": "macro.dbt_utils.test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0010471, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"unique_id": "macro.dbt_utils.default__test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.001487, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.006298, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0085928, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.009096, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.009325, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0100732, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.010544, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.010815, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.011246, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.011488, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0124328, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0136309, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0146172, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.015606, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0160599, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.016599, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.017331, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0178602, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.019051, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0205052, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.021843, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.022421, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0226839, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0233998, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.02442, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.025805, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.026536, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.026931, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.028672, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0306282, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.032437, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.034744, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"unique_id": "macro.dbt_utils.safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.035242, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"unique_id": "macro.dbt_utils.default__safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.035512, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0401988, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.045064, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.045706, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.046062, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0471292, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.047426, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.04771, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.047968, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0482, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0484312, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.049052, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0493739, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0499709, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0507898, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.051363, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.051818, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0541, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0546, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.055892, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.056821, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.058421, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.060541, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.062042, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.063203, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.063911, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.064908, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0671492, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.067916, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.068604, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.068885, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.06977, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0706189, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"unique_id": "macro.dbt_utils.generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0713532, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"unique_id": "macro.dbt_utils.default__generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0722592, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0728698, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0730581, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0732439, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"unique_id": "macro.dbt_utils.get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.074007, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"unique_id": "macro.dbt_utils.default__get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.075115, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.076851, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0773199, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0787551, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0798888, "supported_languages": null}, "macro.quickbooks.get_enabled_unioned_models": {"unique_id": "macro.quickbooks.get_enabled_unioned_models", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "macros/get_enabled_unioned_models.sql", "original_file_path": "macros/get_enabled_unioned_models.sql", "name": "get_enabled_unioned_models", "macro_sql": "{% macro get_enabled_unioned_models(unioned_models = [ \n 'bill',\n 'credit_memo',\n 'deposit',\n 'invoice',\n 'journal_entry',\n 'payment',\n 'refund_receipt',\n 'sales_receipt',\n 'transfer',\n 'vendor_credit']) %} \n\n{% set enabled_unioned_models = [] %}\n\n{{ enabled_unioned_models.append(ref('int_quickbooks__purchase_double_entry')) }}\n\n{% for unioned_model in unioned_models %} \n {% if var('using_' ~ unioned_model, True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__' ~ unioned_model ~ '_double_entry')) }}\n {% endif %}\n {% endfor %} \n \n{% if var('using_bill', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__bill_payment_double_entry')) }}\n{% endif %}\n\n{% if var('using_credit_card_payment_txn', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__credit_card_pymt_double_entry')) }}\n{% endif %}\n\n{{ return(enabled_unioned_models) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "This macro takes models from the `double_entry_transactions` folder and appends them together in an array of relations if these models are enabled. This will then be unioned together using `dbt_utils.union_relations` in the `quickbooks__general_ledger` model. `int_quickbooks__purchase_double_entry` is included by default. `int_quickbooks__bill_payment_double_entry` and `int_quickbooks__credit_card_pymt_double_entry` are appended separately because their `using_` variables do not match up like the other variables, which can't be modified.\n", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://macros/quickbooks_macros.yml", "arguments": [{"name": "unioned_models", "type": "list", "description": "List of strings referring to particular models to then be appended and eventually unioned if enabled."}, {"name": "enabled_unioned_models", "type": "list", "description": "List of relations of models that are enabled to eventually be unioned into a general ledger model."}], "created_at": 1674156392.30211, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.082237, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0835168, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.083741, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0839622, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0841799, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.084378, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.084595, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0857558, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.086717, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.088203, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0887208, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0891259, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.089612, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0899572, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.090349, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0907211, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.091418, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.091574, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.091716, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.091875, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.092573, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.09359, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0948522, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.095559, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.0957382, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.095913, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.09609, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.096277, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1003819, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.100641, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1009002, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.101151, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.103968, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.105263, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.105451, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.105825, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1062138, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.106391, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.10656, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.106727, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1074612, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1082602, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.109288, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1096709, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1101172, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.110868, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1126678, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.121519, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.122135, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1229298, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.125283, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.12607, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.126948, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.127172, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.127392, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1276422, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.127856, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1280708, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.131347, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.132854, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1342878, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1345448, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1347709, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.134999, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.135217, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1354702, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.135948, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.136099, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.136699, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.137933, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.140244, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.14431, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1468532, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1474712, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.147628, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.147764, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1484249, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1490932, "supported_languages": null}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_line_columns.sql", "original_file_path": "macros/get_deposit_line_columns.sql", "name": "get_deposit_line_columns", "macro_sql": "{% macro get_deposit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.154491, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_line_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_line_columns.sql", "original_file_path": "macros/get_vendor_credit_line_columns.sql", "name": "get_vendor_credit_line_columns", "macro_sql": "{% macro get_vendor_credit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.158176, "supported_languages": null}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "name": "get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1616309, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_linked_txn_columns.sql", "original_file_path": "macros/get_purchase_order_linked_txn_columns.sql", "name": "get_purchase_order_linked_txn_columns", "macro_sql": "{% macro get_purchase_order_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.163062, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_line_columns.sql", "original_file_path": "macros/get_sales_receipt_line_columns.sql", "name": "get_sales_receipt_line_columns", "macro_sql": "{% macro get_sales_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.167209, "supported_languages": null}, "macro.quickbooks_source.get_bill_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_bill_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_linked_txn_columns.sql", "original_file_path": "macros/get_bill_linked_txn_columns.sql", "name": "get_bill_linked_txn_columns", "macro_sql": "{% macro get_bill_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.168441, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_line_columns.sql", "original_file_path": "macros/get_bill_payment_line_columns.sql", "name": "get_bill_payment_line_columns", "macro_sql": "{% macro get_bill_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.170893, "supported_languages": null}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_transfer_columns.sql", "original_file_path": "macros/get_transfer_columns.sql", "name": "get_transfer_columns", "macro_sql": "{% macro get_transfer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1728551, "supported_languages": null}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_columns.sql", "original_file_path": "macros/get_purchase_columns.sql", "name": "get_purchase_columns", "macro_sql": "{% macro get_purchase_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.177258, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_line_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_line_columns.sql", "original_file_path": "macros/get_journal_entry_line_columns.sql", "name": "get_journal_entry_line_columns", "macro_sql": "{% macro get_journal_entry_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1806982, "supported_languages": null}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_columns.sql", "original_file_path": "macros/get_deposit_columns.sql", "name": "get_deposit_columns", "macro_sql": "{% macro get_deposit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.1838489, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_columns.sql", "original_file_path": "macros/get_purchase_order_columns.sql", "name": "get_purchase_order_columns", "macro_sql": "{% macro get_purchase_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.188064, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_line_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_line_columns.sql", "original_file_path": "macros/get_credit_memo_line_columns.sql", "name": "get_credit_memo_line_columns", "macro_sql": "{% macro get_credit_memo_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.192574, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_columns.sql", "original_file_path": "macros/get_journal_entry_columns.sql", "name": "get_journal_entry_columns", "macro_sql": "{% macro get_journal_entry_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.195572, "supported_languages": null}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_columns.sql", "original_file_path": "macros/get_vendor_columns.sql", "name": "get_vendor_columns", "macro_sql": "{% macro get_vendor_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.200303, "supported_languages": null}, "macro.quickbooks_source.get_invoice_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_invoice_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_linked_txn_columns.sql", "original_file_path": "macros/get_invoice_linked_txn_columns.sql", "name": "get_invoice_linked_txn_columns", "macro_sql": "{% macro get_invoice_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.2020302, "supported_languages": null}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_item_columns.sql", "original_file_path": "macros/get_item_columns.sql", "name": "get_item_columns", "macro_sql": "{% macro get_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.20646, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_columns.sql", "original_file_path": "macros/get_credit_memo_columns.sql", "name": "get_credit_memo_columns", "macro_sql": "{% macro get_credit_memo_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.211645, "supported_languages": null}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_item_columns.sql", "original_file_path": "macros/get_bundle_item_columns.sql", "name": "get_bundle_item_columns", "macro_sql": "{% macro get_bundle_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.2125719, "supported_languages": null}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_columns.sql", "original_file_path": "macros/get_payment_columns.sql", "name": "get_payment_columns", "macro_sql": "{% macro get_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.2175539, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_columns.sql", "original_file_path": "macros/get_vendor_credit_columns.sql", "name": "get_vendor_credit_columns", "macro_sql": "{% macro get_vendor_credit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.2210822, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_columns.sql", "original_file_path": "macros/get_refund_receipt_columns.sql", "name": "get_refund_receipt_columns", "macro_sql": "{% macro get_refund_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.23002, "supported_languages": null}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_columns.sql", "original_file_path": "macros/get_bill_columns.sql", "name": "get_bill_columns", "macro_sql": "{% macro get_bill_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.233278, "supported_languages": null}, "macro.quickbooks_source.get_credit_card_payment_txn_columns": {"unique_id": "macro.quickbooks_source.get_credit_card_payment_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_card_payment_txn_columns.sql", "original_file_path": "macros/get_credit_card_payment_txn_columns.sql", "name": "get_credit_card_payment_txn_columns", "macro_sql": "{% macro get_credit_card_payment_txn_columns() %}\n\n{% set columns = [ \t\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.235133, "supported_languages": null}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_line_columns.sql", "original_file_path": "macros/get_bill_line_columns.sql", "name": "get_bill_line_columns", "macro_sql": "{% macro get_bill_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.2380958, "supported_languages": null}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "name": "get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.244412, "supported_languages": null}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_columns.sql", "original_file_path": "macros/get_invoice_columns.sql", "name": "get_invoice_columns", "macro_sql": "{% macro get_invoice_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allow_ipnpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_achpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_credit_card_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.251883, "supported_languages": null}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_line_columns.sql", "original_file_path": "macros/get_payment_line_columns.sql", "name": "get_payment_line_columns", "macro_sql": "{% macro get_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.254327, "supported_languages": null}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_department_columns.sql", "original_file_path": "macros/get_department_columns.sql", "name": "get_department_columns", "macro_sql": "{% macro get_department_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.256267, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_columns.sql", "original_file_path": "macros/get_invoice_line_columns.sql", "name": "get_invoice_line_columns", "macro_sql": "{% macro get_invoice_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.260895, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_line_columns.sql", "original_file_path": "macros/get_purchase_order_line_columns.sql", "name": "get_purchase_order_line_columns", "macro_sql": "{% macro get_purchase_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.281813, "supported_languages": null}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_line_columns.sql", "original_file_path": "macros/get_purchase_line_columns.sql", "name": "get_purchase_line_columns", "macro_sql": "{% macro get_purchase_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.284873, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_line_columns.sql", "original_file_path": "macros/get_refund_receipt_line_columns.sql", "name": "get_refund_receipt_line_columns", "macro_sql": "{% macro get_refund_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.288662, "supported_languages": null}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_columns.sql", "original_file_path": "macros/get_estimate_columns.sql", "name": "get_estimate_columns", "macro_sql": "{% macro get_estimate_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.2946298, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_columns.sql", "original_file_path": "macros/get_bill_payment_columns.sql", "name": "get_bill_payment_columns", "macro_sql": "{% macro get_bill_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.29811, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_columns.sql", "original_file_path": "macros/get_sales_receipt_columns.sql", "name": "get_sales_receipt_columns", "macro_sql": "{% macro get_sales_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.306448, "supported_languages": null}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_columns.sql", "original_file_path": "macros/get_bundle_columns.sql", "name": "get_bundle_columns", "macro_sql": "{% macro get_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.3085408, "supported_languages": null}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_line_columns.sql", "original_file_path": "macros/get_estimate_line_columns.sql", "name": "get_estimate_line_columns", "macro_sql": "{% macro get_estimate_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.313556, "supported_languages": null}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_address_columns.sql", "original_file_path": "macros/get_address_columns.sql", "name": "get_address_columns", "macro_sql": "{% macro get_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.315866, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_bundle_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_bundle_columns.sql", "original_file_path": "macros/get_invoice_line_bundle_columns.sql", "name": "get_invoice_line_bundle_columns", "macro_sql": "{% macro get_invoice_line_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674156390.319098, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "quickbooks.ap_ar_enhanced_table": {"unique_id": "quickbooks.ap_ar_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ap_ar_enhanced_table", "block_contents": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time."}, "quickbooks.cash_flow_statement_table": {"unique_id": "quickbooks.cash_flow_statement_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "cash_flow_statement_table", "block_contents": "Table that provides all line items necessary to construct a cash flow statement."}, "quickbooks.expenses_sales_enhanced_table": {"unique_id": "quickbooks.expenses_sales_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "expenses_sales_enhanced_table", "block_contents": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records."}, "quickbooks.general_ledger_table": {"unique_id": "quickbooks.general_ledger_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_table", "block_contents": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction."}, "quickbooks.general_ledger_by_period_table": {"unique_id": "quickbooks.general_ledger_by_period_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_by_period_table", "block_contents": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year."}, "quickbooks.profit_and_loss_table": {"unique_id": "quickbooks.profit_and_loss_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "profit_and_loss_table", "block_contents": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information."}, "quickbooks.account_class": {"unique_id": "quickbooks.account_class", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_class", "block_contents": "Class of the account associated"}, "quickbooks.account_name": {"unique_id": "quickbooks.account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "Name of the account associated"}, "quickbooks.account_number": {"unique_id": "quickbooks.account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_number", "block_contents": "User defined number of the account."}, "quickbooks.account_ordinal": {"unique_id": "quickbooks.account_ordinal", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_ordinal", "block_contents": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)"}, "quickbooks.account_sub_type": {"unique_id": "quickbooks.account_sub_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_sub_type", "block_contents": "Sub type of the account associated"}, "quickbooks.account_type": {"unique_id": "quickbooks.account_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_type", "block_contents": "The type of account associated"}, "quickbooks.calendar_date": {"unique_id": "quickbooks.calendar_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "calendar_date", "block_contents": "Timestamp of the first calendar date of the month."}, "quickbooks.is_sub_account": {"unique_id": "quickbooks.is_sub_account", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_sub_account", "block_contents": "Boolean indicating whether the account is a sub account (true) or a parent account (false)."}, "quickbooks.parent_account_name": {"unique_id": "quickbooks.parent_account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_name", "block_contents": "The parent account name. If the account is the parent account then the account name is recorded."}, "quickbooks.parent_account_number": {"unique_id": "quickbooks.parent_account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_number", "block_contents": "The parent account number. If the account is the parent account then the account number is recorded."}, "quickbooks.transaction_date": {"unique_id": "quickbooks.transaction_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_date", "block_contents": "Timestamp of the date that the transaction occurred."}, "quickbooks.transaction_id": {"unique_id": "quickbooks.transaction_id", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_id", "block_contents": "Unique identifier of the transaction"}, "quickbooks_source.account_table": {"unique_id": "quickbooks_source.account_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_table", "block_contents": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity."}, "quickbooks_source.address_table": {"unique_id": "quickbooks_source.address_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "address_table", "block_contents": "Table containing address details."}, "quickbooks_source.bill_line_table": {"unique_id": "quickbooks_source.bill_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_line_table", "block_contents": "Table containing distinct line items from bills within the `bill` table."}, "quickbooks_source.bill_linked_txn_table": {"unique_id": "quickbooks_source.bill_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_linked_txn_table", "block_contents": "Mapping table containing bill payment transactions linked to a bill."}, "quickbooks_source.bill_payment_line_table": {"unique_id": "quickbooks_source.bill_payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_line_table", "block_contents": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table."}, "quickbooks_source.bill_payment_table": {"unique_id": "quickbooks_source.bill_payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_table", "block_contents": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor."}, "quickbooks_source.bill_table": {"unique_id": "quickbooks_source.bill_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_table", "block_contents": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both."}, "quickbooks_source.bundle_item_table": {"unique_id": "quickbooks_source.bundle_item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_item_table", "block_contents": "Mapping table containing all bundle and item combinations."}, "quickbooks_source.bundle_table": {"unique_id": "quickbooks_source.bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_table", "block_contents": "Table containing all bundles possible to be used within an invoice."}, "quickbooks_source.credit_card_payment_txn_table": {"unique_id": "quickbooks_source.credit_card_payment_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_card_payment_txn_table", "block_contents": "Table containing all credit card payment transactions."}, "quickbooks_source.credit_memo_line_table": {"unique_id": "quickbooks_source.credit_memo_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_line_table", "block_contents": "Table containing individual records of credit memos."}, "quickbooks_source.credit_memo_table": {"unique_id": "quickbooks_source.credit_memo_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_table", "block_contents": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold."}, "quickbooks_source.customer_table": {"unique_id": "quickbooks_source.customer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_table", "block_contents": "Table containing customers of which are consumers of the service or product that your business offers."}, "quickbooks_source.department_table": {"unique_id": "quickbooks_source.department_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_table", "block_contents": "Table containing records representing physical locations such as stores, and sales regions."}, "quickbooks_source.deposit_line_table": {"unique_id": "quickbooks_source.deposit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_line_table", "block_contents": "Table containing individual line items comprising the deposit."}, "quickbooks_source.deposit_table": {"unique_id": "quickbooks_source.deposit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_table", "block_contents": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit."}, "quickbooks_source.estimate_line_table": {"unique_id": "quickbooks_source.estimate_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_line_table", "block_contents": "Table containing line item records of an estimate."}, "quickbooks_source.estimate_table": {"unique_id": "quickbooks_source.estimate_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_table", "block_contents": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing."}, "quickbooks_source.invoice_line_bundle_table": {"unique_id": "quickbooks_source.invoice_line_bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_bundle_table", "block_contents": "Table containing lines of an invoice which were bundled."}, "quickbooks_source.invoice_line_table": {"unique_id": "quickbooks_source.invoice_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_table", "block_contents": "Table containing individual records from invoices."}, "quickbooks_source.invoice_linked_txn_table": {"unique_id": "quickbooks_source.invoice_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_linked_txn_table", "block_contents": "Mapping table for invoices records to respective estimate and payment objects."}, "quickbooks_source.invoice_table": {"unique_id": "quickbooks_source.invoice_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_table", "block_contents": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later."}, "quickbooks_source.item_table": {"unique_id": "quickbooks_source.item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_table", "block_contents": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services."}, "quickbooks_source.journal_entry_line_table": {"unique_id": "quickbooks_source.journal_entry_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_line_table", "block_contents": "Table containing individual line items of a transaction associated with a journal entry."}, "quickbooks_source.journal_entry_table": {"unique_id": "quickbooks_source.journal_entry_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_table", "block_contents": "Table containing journal entry transactions."}, "quickbooks_source.payment_line_table": {"unique_id": "quickbooks_source.payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_line_table", "block_contents": "Table containing individual line items recorded within a payment."}, "quickbooks_source.payment_table": {"unique_id": "quickbooks_source.payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_table", "block_contents": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount."}, "quickbooks_source.purchase_line_table": {"unique_id": "quickbooks_source.purchase_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase."}, "quickbooks_source.purchase_order_line_table": {"unique_id": "quickbooks_source.purchase_order_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase order."}, "quickbooks_source.purchase_order_linked_txn_table": {"unique_id": "quickbooks_source.purchase_order_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_linked_txn_table", "block_contents": "Mapping table for purchase order records to respective bill and purchase objects."}, "quickbooks_source.purchase_order_table": {"unique_id": "quickbooks_source.purchase_order_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_table", "block_contents": "Table containing records of purchase orders (PO)."}, "quickbooks_source.purchase_table": {"unique_id": "quickbooks_source.purchase_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_table", "block_contents": "Table containing records of purchase expenses."}, "quickbooks_source.refund_receipt_line_table": {"unique_id": "quickbooks_source.refund_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_line_table", "block_contents": "Table containing individual line items of a refund transaction."}, "quickbooks_source.refund_receipt_table": {"unique_id": "quickbooks_source.refund_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_table", "block_contents": "Table containing refunds to the customer for a product or service that was provided."}, "quickbooks_source.sales_receipt_line_table": {"unique_id": "quickbooks_source.sales_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_line_table", "block_contents": "Table containing individual line items of a sales transaction."}, "quickbooks_source.sales_receipt_table": {"unique_id": "quickbooks_source.sales_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_table", "block_contents": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited."}, "quickbooks_source.transfer_table": {"unique_id": "quickbooks_source.transfer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transfer_table", "block_contents": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts."}, "quickbooks_source.vendor_credit_line_table": {"unique_id": "quickbooks_source.vendor_credit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_line_table", "block_contents": "Table containing individual vendor credit line items."}, "quickbooks_source.vendor_credit_table": {"unique_id": "quickbooks_source.vendor_credit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_table", "block_contents": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services."}, "quickbooks_source.vendor_table": {"unique_id": "quickbooks_source.vendor_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product."}, "quickbooks_source.account_id": {"unique_id": "quickbooks_source.account_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The identifier of the account associated"}, "quickbooks_source.amount": {"unique_id": "quickbooks_source.amount", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "amount", "block_contents": "Monetary amount of"}, "quickbooks_source.class_id": {"unique_id": "quickbooks_source.class_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "Reference to the class associated"}, "quickbooks_source.created_at": {"unique_id": "quickbooks_source.created_at", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of the creation date"}, "quickbooks_source.currency_id": {"unique_id": "quickbooks_source.currency_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "Reference to the currency"}, "quickbooks_source.customer_id": {"unique_id": "quickbooks_source.customer_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Reference to the customer associated"}, "quickbooks_source.department_id": {"unique_id": "quickbooks_source.department_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "Reference to the department"}, "quickbooks_source.id": {"unique_id": "quickbooks_source.id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "id", "block_contents": "Unique identifier of the"}, "quickbooks_source.item_id": {"unique_id": "quickbooks_source.item_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "Reference to the item"}, "quickbooks_source._fivetran_deleted": {"unique_id": "quickbooks_source._fivetran_deleted", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {"model.quickbooks.int_quickbooks__credit_card_pymt_double_entry": [{"resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_card_pymt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_card_pymt_double_entry", "raw_code": "/*\nTable that creates a debit record to the associated bank account and a credit record to the specified credit card account.\n*/\n\n--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith credit_card_payments as (\n \n select *\n from {{ ref('stg_quickbooks__credit_card_payment_txn') }}\n where is_most_recent_record\n),\n\ncredit_card_payment_prep as (\n\n select\n credit_card_payments.credit_card_payment_id as transaction_id,\n credit_card_payments.source_relation,\n row_number() over (partition by credit_card_payments.credit_card_payment_id order by credit_card_payments.transaction_date) - 1 as index,\n credit_card_payments.transaction_date,\n credit_card_payments.amount,\n credit_card_payments.bank_account_id,\n credit_card_payments.credit_card_account_id,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as class_id\n from credit_card_payments\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount, \n cast(bank_account_id as {{ dbt.type_string() }}) as account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as account_id,\n class_id, \n 'debit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "name": "int_quickbooks__credit_card_pymt_double_entry", "alias": "int_quickbooks__credit_card_pymt_double_entry", "checksum": {"name": "sha256", "checksum": "b0b069fdb6c61a9cccf3f4ab656a9afb040568c0a0d9262943d2fce376b70e57"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to credit card payment transactions.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": false}, "created_at": 1674156392.30553, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_card_payment_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_card_payment_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn", "raw_code": "--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_card_payment_txn_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_card_payment_txn_tmp')),\n staging_columns=get_credit_card_payment_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_card_payment_id,\n amount,\n bank_account_id,\n credit_card_account_id,\n created_at,\n updated_at,\n currency_id,\n transaction_date,\n _fivetran_deleted,\n row_number() over (partition by id, updated_at order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_card_payment_txn.sql", "original_file_path": "models/stg_quickbooks__credit_card_payment_txn.sql", "name": "stg_quickbooks__credit_card_payment_txn", "alias": "stg_quickbooks__credit_card_payment_txn", "checksum": {"name": "sha256", "checksum": "a8274053455a19f46f54111bac914dd48d1365ce550d73b051c8b22f9fafef0b"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn_tmp"], ["stg_quickbooks__credit_card_payment_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('credit_card_payment_txn_table') }}", "columns": {"credit_card_payment_id": {"name": "credit_card_payment_id", "description": "{{ doc('id') }} credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "Reference to the bank account which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Reference to the credit card account which the credit card payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating if the record is the most recent updated version of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1674156392.409586, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_tmp')),\n staging_columns=get_purchase_order_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order.sql", "original_file_path": "models/stg_quickbooks__purchase_order.sql", "name": "stg_quickbooks__purchase_order", "alias": "stg_quickbooks__purchase_order", "checksum": {"name": "sha256", "checksum": "697ef46b9a8ee1073daf25c393eca18697b1c95b1b57914e5a9cef8bd8adcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1674156392.465527, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_line_tmp')),\n staging_columns=get_purchase_order_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_line.sql", "original_file_path": "models/stg_quickbooks__purchase_order_line.sql", "name": "stg_quickbooks__purchase_order_line", "alias": "stg_quickbooks__purchase_order_line", "checksum": {"name": "sha256", "checksum": "a2b4b3ba47604cb6f1391043643e49168328c1ab7df52754f699748f11fa8888"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_line_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase order is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1674156392.461222, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_linked_txn_tmp')),\n staging_columns=get_purchase_order_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_linked_txn.sql", "original_file_path": "models/stg_quickbooks__purchase_order_linked_txn.sql", "name": "stg_quickbooks__purchase_order_linked_txn", "alias": "stg_quickbooks__purchase_order_linked_txn", "checksum": {"name": "sha256", "checksum": "3e9cbee58cb2dab37c5798fd7a97954b3eae45670cc0288ce232394180fd1605"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_linked_txn_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1674156392.462629, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "name": "stg_quickbooks__purchase_order_line_tmp", "alias": "stg_quickbooks__purchase_order_line_tmp", "checksum": {"name": "sha256", "checksum": "be4cdef26ee4b271e7c425130b4c3b80be45214b5be926af060d32331badcc0f"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1674156392.028826, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_card_payment_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp", "raw_code": "--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_card_payment_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_card_payment_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "name": "stg_quickbooks__credit_card_payment_txn_tmp", "alias": "stg_quickbooks__credit_card_payment_txn_tmp", "checksum": {"name": "sha256", "checksum": "b1910ce2b3a9463b6c4b232fa24e807de5c899a1d03dde1feef6bc43dbe8b3d6"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_card_payment_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1674156392.0935931, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_tmp.sql", "name": "stg_quickbooks__purchase_order_tmp", "alias": "stg_quickbooks__purchase_order_tmp", "checksum": {"name": "sha256", "checksum": "a14f234fcfdc6777fe2bb8898ce79b14b45590d19bd6eab25d33ee95cc899bbd"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1674156392.124382, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "alias": "stg_quickbooks__purchase_order_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "926409c011fa67fdcd598c4c0c21b87fb5dabe8654d46f0ee7caac0a028d5d99"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1674156392.271161, "config_call_dict": {"enabled": false}}], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_line_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.624477, "config_call_dict": {}, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_line"}], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [{"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943"}, "created_at": 1674156392.625761, "config_call_dict": {"alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943"}, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order_line"}], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_linked_txn')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1"}, "created_at": 1674156392.6295528, "config_call_dict": {"alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1"}, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_linked_txn"}], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1674156392.6308281, "config_call_dict": {}, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order"}], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [{"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Open", "Closed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614"}, "created_at": 1674156392.6322691, "config_call_dict": {"alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614"}, "column_name": "status", "file_key_name": "models.stg_quickbooks__purchase_order"}], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [{"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation", "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d"}, "created_at": 1674156392.635628, "config_call_dict": {"alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d"}, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order"}]}, "parent_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__general_ledger_by_period": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry"], "model.quickbooks.quickbooks__profit_and_loss": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__balance_sheet"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "analysis.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "analysis.quickbooks.quickbooks__income_statement": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["source.quickbooks_source.quickbooks.vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["source.quickbooks_source.quickbooks.refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["source.quickbooks_source.quickbooks.estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["source.quickbooks_source.quickbooks.credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["source.quickbooks_source.quickbooks.journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["source.quickbooks_source.quickbooks.invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["source.quickbooks_source.quickbooks.payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["source.quickbooks_source.quickbooks.invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["source.quickbooks_source.quickbooks.deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["source.quickbooks_source.quickbooks.customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["source.quickbooks_source.quickbooks.bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["source.quickbooks_source.quickbooks.item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["source.quickbooks_source.quickbooks.account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["source.quickbooks_source.quickbooks.vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["source.quickbooks_source.quickbooks.department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["source.quickbooks_source.quickbooks.bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["source.quickbooks_source.quickbooks.bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["source.quickbooks_source.quickbooks.bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["source.quickbooks_source.quickbooks.estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["source.quickbooks_source.quickbooks.purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["source.quickbooks_source.quickbooks.credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["source.quickbooks_source.quickbooks.bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["source.quickbooks_source.quickbooks.transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["source.quickbooks_source.quickbooks.vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["source.quickbooks_source.quickbooks.purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["source.quickbooks_source.quickbooks.address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["source.quickbooks_source.quickbooks.payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["source.quickbooks_source.quickbooks.refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["source.quickbooks_source.quickbooks.sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["source.quickbooks_source.quickbooks.bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["source.quickbooks_source.quickbooks.journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["source.quickbooks_source.quickbooks.deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["source.quickbooks_source.quickbooks.bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["source.quickbooks_source.quickbooks.invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["source.quickbooks_source.quickbooks.sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["source.quickbooks_source.quickbooks.invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": ["model.quickbooks.quickbooks__general_ledger"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": ["model.quickbooks.quickbooks__general_ledger_by_period"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": ["model.quickbooks.quickbooks__profit_and_loss"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": ["model.quickbooks.quickbooks__balance_sheet"], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": ["model.quickbooks_source.stg_quickbooks__bundle_item"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": ["model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.quickbooks__cash_flow_statement": ["model.quickbooks.int_quickbooks__cash_flow_classifications"], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": ["model.quickbooks.quickbooks__cash_flow_statement"], "source.quickbooks_source.quickbooks.account": [], "source.quickbooks_source.quickbooks.address": [], "source.quickbooks_source.quickbooks.bill_line": [], "source.quickbooks_source.quickbooks.bill_linked_txn": [], "source.quickbooks_source.quickbooks.bill_payment_line": [], "source.quickbooks_source.quickbooks.bill_payment": [], "source.quickbooks_source.quickbooks.bill": [], "source.quickbooks_source.quickbooks.bundle_item": [], "source.quickbooks_source.quickbooks.bundle": [], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": [], "source.quickbooks_source.quickbooks.credit_memo": [], "source.quickbooks_source.quickbooks.customer": [], "source.quickbooks_source.quickbooks.department": [], "source.quickbooks_source.quickbooks.deposit_line": [], "source.quickbooks_source.quickbooks.deposit": [], "source.quickbooks_source.quickbooks.estimate": [], "source.quickbooks_source.quickbooks.estimate_line": [], "source.quickbooks_source.quickbooks.invoice_linked_txn": [], "source.quickbooks_source.quickbooks.invoice_line": [], "source.quickbooks_source.quickbooks.invoice_line_bundle": [], "source.quickbooks_source.quickbooks.invoice": [], "source.quickbooks_source.quickbooks.item": [], "source.quickbooks_source.quickbooks.journal_entry_line": [], "source.quickbooks_source.quickbooks.journal_entry": [], "source.quickbooks_source.quickbooks.payment_line": [], "source.quickbooks_source.quickbooks.payment": [], "source.quickbooks_source.quickbooks.purchase_line": [], "source.quickbooks_source.quickbooks.purchase": [], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": [], "source.quickbooks_source.quickbooks.refund_receipt": [], "source.quickbooks_source.quickbooks.sales_receipt_line": [], "source.quickbooks_source.quickbooks.sales_receipt": [], "source.quickbooks_source.quickbooks.transfer": [], "source.quickbooks_source.quickbooks.vendor_credit_line": [], "source.quickbooks_source.quickbooks.vendor_credit": [], "source.quickbooks_source.quickbooks.vendor": []}, "child_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.int_quickbooks__cash_flow_classifications", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"], "model.quickbooks.quickbooks__general_ledger_by_period": ["analysis.quickbooks.quickbooks__balance_sheet", "analysis.quickbooks.quickbooks__income_statement", "model.quickbooks.quickbooks__balance_sheet", "model.quickbooks.quickbooks__profit_and_loss", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"], "model.quickbooks.quickbooks__profit_and_loss": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__cash_flow_statement"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__retained_earnings", "model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "analysis.quickbooks.quickbooks__balance_sheet": [], "analysis.quickbooks.quickbooks__income_statement": [], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks.int_quickbooks__transfer_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks.int_quickbooks__bill_join", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["model.quickbooks_source.stg_quickbooks__estimate_line", "model.quickbooks_source.stg_quickbooks__estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["model.quickbooks_source.stg_quickbooks__transfer", "model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry_line", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": [], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": [], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": [], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": [], "model.quickbooks.quickbooks__cash_flow_statement": ["test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": [], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": [], "source.quickbooks_source.quickbooks.account": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "source.quickbooks_source.quickbooks.address": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "source.quickbooks_source.quickbooks.bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "source.quickbooks_source.quickbooks.bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "source.quickbooks_source.quickbooks.bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "source.quickbooks_source.quickbooks.bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "source.quickbooks_source.quickbooks.bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "source.quickbooks_source.quickbooks.bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "source.quickbooks_source.quickbooks.bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "source.quickbooks_source.quickbooks.credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "source.quickbooks_source.quickbooks.customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "source.quickbooks_source.quickbooks.department": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "source.quickbooks_source.quickbooks.deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "source.quickbooks_source.quickbooks.deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "source.quickbooks_source.quickbooks.estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "source.quickbooks_source.quickbooks.estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "source.quickbooks_source.quickbooks.invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "source.quickbooks_source.quickbooks.invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "source.quickbooks_source.quickbooks.invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "source.quickbooks_source.quickbooks.invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "source.quickbooks_source.quickbooks.item": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "source.quickbooks_source.quickbooks.journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "source.quickbooks_source.quickbooks.journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "source.quickbooks_source.quickbooks.payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "source.quickbooks_source.quickbooks.payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "source.quickbooks_source.quickbooks.purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "source.quickbooks_source.quickbooks.purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "source.quickbooks_source.quickbooks.refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "source.quickbooks_source.quickbooks.sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "source.quickbooks_source.quickbooks.sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "source.quickbooks_source.quickbooks.transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "source.quickbooks_source.quickbooks.vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "source.quickbooks_source.quickbooks.vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "source.quickbooks_source.quickbooks.vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"]}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T04:03:58.124231Z", "invocation_id": "d39158d3-c135-411d-9a25-e6a76e3424ac", "env": {}, "project_id": "fb1a7b9ce88ce39cb54ba2ec5c0aaab3", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_integration_tests.bill_payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_data.csv", "original_file_path": "seeds/bill_payment_data.csv", "name": "bill_payment_data", "alias": "bill_payment_data", "checksum": {"name": "sha256", "checksum": "654e27fe99f7891483ba67ae67202f00a166df46c6463965f831bd47d3bc53cf"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.606102, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bill_payment_data\""}, "seed.quickbooks_integration_tests.bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_data.csv", "original_file_path": "seeds/bundle_data.csv", "name": "bundle_data", "alias": "bundle_data", "checksum": {"name": "sha256", "checksum": "090d802f05c558f45f05a760b5fb1fa879dfeb26c737e6356dcf6bfcb9fbbefb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.613717, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bundle_data\""}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_line_data.csv", "original_file_path": "seeds/bill_payment_line_data.csv", "name": "bill_payment_line_data", "alias": "bill_payment_line_data", "checksum": {"name": "sha256", "checksum": "ae8e7b58ddb78ecbcb7facd257a29f27db08cb69e4014ee40e3a07d02e7ea51a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.61527, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_integration_tests.payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_line_data.csv", "original_file_path": "seeds/payment_line_data.csv", "name": "payment_line_data", "alias": "payment_line_data", "checksum": {"name": "sha256", "checksum": "6e54b93beaddd05e86b071eb43833845bfc76a841b2780e3e1059f6d661cd238"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.616768, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"payment_line_data\""}, "seed.quickbooks_integration_tests.vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_data.csv", "original_file_path": "seeds/vendor_data.csv", "name": "vendor_data", "alias": "vendor_data", "checksum": {"name": "sha256", "checksum": "98ce313c6a3acf1262de91d25905b85fe760227a534703d9c6bc0e4149b055b5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676347363.6184251, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"vendor_data\""}, "seed.quickbooks_integration_tests.address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "address_data"], "unique_id": "seed.quickbooks_integration_tests.address_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "address_data.csv", "original_file_path": "seeds/address_data.csv", "name": "address_data", "alias": "address_data", "checksum": {"name": "sha256", "checksum": "2b7bfb3f76e41e3fee0443c10a939053b0edb31b9f4be1bcd0af8d4b686da7b0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6199229, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"address_data\""}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_bundle_data.csv", "original_file_path": "seeds/invoice_line_bundle_data.csv", "name": "invoice_line_bundle_data", "alias": "invoice_line_bundle_data", "checksum": {"name": "sha256", "checksum": "f1cdc81c2fb1ec4f76c5226e2f5e4ed6f17f7b446cb53cfa539d8caafb252a5c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.621366, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_integration_tests.invoice_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_data.csv", "original_file_path": "seeds/invoice_data.csv", "name": "invoice_data", "alias": "invoice_data", "checksum": {"name": "sha256", "checksum": "db4f065992372097a09aec08d7b346381eb542e8ee2668d7d664564262c60b55"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6228201, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"invoice_data\""}, "seed.quickbooks_integration_tests.payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_integration_tests.payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_data.csv", "original_file_path": "seeds/payment_data.csv", "name": "payment_data", "alias": "payment_data", "checksum": {"name": "sha256", "checksum": "8c2df9d7db2b4668ddbd1e1e3635cbaf40c798e19be2a83f65e09988771ebb38"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.624423, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"payment_data\""}, "seed.quickbooks_integration_tests.invoice_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_data.csv", "original_file_path": "seeds/invoice_line_data.csv", "name": "invoice_line_data", "alias": "invoice_line_data", "checksum": {"name": "sha256", "checksum": "4318a37462107eb6c0548adfba95908611dd94a7ad816ef366524a9eaa4dc4da"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.625864, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"invoice_line_data\""}, "seed.quickbooks_integration_tests.deposit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"deposit_account_id": "bigint", "deposit_class_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_line_data.csv", "original_file_path": "seeds/deposit_line_data.csv", "name": "deposit_line_data", "alias": "deposit_line_data", "checksum": {"name": "sha256", "checksum": "43cf2e49d2ccc28c38ba7db60582b36e46c0ec96827b475e145975fdf8bf9d4e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deposit_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "deposit_class_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676347363.6273391, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"deposit_line_data\""}, "seed.quickbooks_integration_tests.estimate_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_line_data.csv", "original_file_path": "seeds/estimate_line_data.csv", "name": "estimate_line_data", "alias": "estimate_line_data", "checksum": {"name": "sha256", "checksum": "cff0f0d902a16e9ab0b877d174dd67536537fc669c16505c2efadb0721ce6c26"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.628993, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"estimate_line_data\""}, "seed.quickbooks_integration_tests.purchase_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"credit": "bool"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_data.csv", "original_file_path": "seeds/purchase_data.csv", "name": "purchase_data", "alias": "purchase_data", "checksum": {"name": "sha256", "checksum": "b66de1a5aaf428b1f208ecb9edccd6394086db485d6fc7dde7b152862f03eac9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"credit": "{{ 'boolean' if target.name == 'snowflake' else 'bool' }}"}}, "created_at": 1676347363.630463, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"purchase_data\""}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_line_data.csv", "original_file_path": "seeds/refund_receipt_line_data.csv", "name": "refund_receipt_line_data", "alias": "refund_receipt_line_data", "checksum": {"name": "sha256", "checksum": "8a67266f87e49dda0de57a6d66b4c1a053af545a6c8d394f8df6470b98cd31c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.631941, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_line_data.csv", "original_file_path": "seeds/credit_memo_line_data.csv", "name": "credit_memo_line_data", "alias": "credit_memo_line_data", "checksum": {"name": "sha256", "checksum": "01898bc6786c3c48ebf5aa4170ea54257dd66e6fc38931067c9012bc639f6994"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6336188, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_integration_tests.bill_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_integration_tests.bill_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_data.csv", "original_file_path": "seeds/bill_data.csv", "name": "bill_data", "alias": "bill_data", "checksum": {"name": "sha256", "checksum": "af6dcdb238e4819003cc182dc5f39a82a61ab19d1299752afc90d49578cfc79b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6352808, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bill_data\""}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_linked_txn_data.csv", "original_file_path": "seeds/bill_linked_txn_data.csv", "name": "bill_linked_txn_data", "alias": "bill_linked_txn_data", "checksum": {"name": "sha256", "checksum": "14f88fc0716d3c253043a68af9b026ab54a93a33784c682b6ec700671f1e03c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6367419, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_integration_tests.vendor_credit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_data.csv", "original_file_path": "seeds/vendor_credit_data.csv", "name": "vendor_credit_data", "alias": "vendor_credit_data", "checksum": {"name": "sha256", "checksum": "ccc4a1ca3967e3eb7f61d2831242f07b1e5a77006dd4312a17fd36e7ea008bea"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.638222, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"vendor_credit_data\""}, "seed.quickbooks_integration_tests.customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_integration_tests.customer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "customer_data.csv", "original_file_path": "seeds/customer_data.csv", "name": "customer_data", "alias": "customer_data", "checksum": {"name": "sha256", "checksum": "2b72eabf58923823033e461d1960295c156b31bf5ace046fc388c336fd96a29d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.639704, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"customer_data\""}, "seed.quickbooks_integration_tests.estimate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_data.csv", "original_file_path": "seeds/estimate_data.csv", "name": "estimate_data", "alias": "estimate_data", "checksum": {"name": "sha256", "checksum": "06ca472200a91b5758a0e9530e6c810a09e466cbf1aa7fbac215fee8a9f4d737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.641688, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"estimate_data\""}, "seed.quickbooks_integration_tests.purchase_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_line_data.csv", "original_file_path": "seeds/purchase_line_data.csv", "name": "purchase_line_data", "alias": "purchase_line_data", "checksum": {"name": "sha256", "checksum": "33355dd453e68ac5a5afa2f71e3c515dc414cdd55a489c65d2c2c4fa06fd18e7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676347363.6431959, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"purchase_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_line_data.csv", "original_file_path": "seeds/journal_entry_line_data.csv", "name": "journal_entry_line_data", "alias": "journal_entry_line_data", "checksum": {"name": "sha256", "checksum": "76d98c0fe816cb2d3790e1c63b61c0b6128de39e3175a231b98dbd640ba13cd4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.644688, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_data.csv", "original_file_path": "seeds/journal_entry_data.csv", "name": "journal_entry_data", "alias": "journal_entry_data", "checksum": {"name": "sha256", "checksum": "6f717632a6fe0901786fbdfed63db69af1c928331ed9cb83f9fd389fe2b9ab83"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.646122, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"journal_entry_data\""}, "seed.quickbooks_integration_tests.bill_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_line_data.csv", "original_file_path": "seeds/bill_line_data.csv", "name": "bill_line_data", "alias": "bill_line_data", "checksum": {"name": "sha256", "checksum": "df882ab43a0bd79aed13e13dee1934269989ae1bea9d3672ed7cc9840c14d073"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1676347363.647766, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bill_line_data\""}, "seed.quickbooks_integration_tests.bundle_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_item_data.csv", "original_file_path": "seeds/bundle_item_data.csv", "name": "bundle_item_data", "alias": "bundle_item_data", "checksum": {"name": "sha256", "checksum": "69218d4dc89cf8da55d1a5aab12bbe45129b48377fa7615f0030616d8c34fe9d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6492538, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bundle_item_data\""}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_linked_txn_data.csv", "original_file_path": "seeds/invoice_linked_txn_data.csv", "name": "invoice_linked_txn_data", "alias": "invoice_linked_txn_data", "checksum": {"name": "sha256", "checksum": "88dda316adf9a5921231dbe5bd5d0c425391ccf9b72a7d6c937155d67b3b45ba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.650696, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_integration_tests.account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "account_data"], "unique_id": "seed.quickbooks_integration_tests.account_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "account_data.csv", "original_file_path": "seeds/account_data.csv", "name": "account_data", "alias": "account_data", "checksum": {"name": "sha256", "checksum": "82ea90640018b00ad075d5bc1f78bdf38e05b0359fda1b40f4dd249efe1d85d9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6523058, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"account_data\""}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_line_data.csv", "original_file_path": "seeds/purchase_order_line_data.csv", "name": "purchase_order_line_data", "alias": "purchase_order_line_data", "checksum": {"name": "sha256", "checksum": "39d5f88917f7d5d8ec70465d8569a38bd19d72bfb26bc495f3231b3e6599c945"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.653746, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_integration_tests.transfer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_integration_tests.transfer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "transfer_data.csv", "original_file_path": "seeds/transfer_data.csv", "name": "transfer_data", "alias": "transfer_data", "checksum": {"name": "sha256", "checksum": "8301e8b1cbaa430f338d9b589570efb442969ab67a24a92e615b08e3440431ce"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.65518, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"transfer_data\""}, "seed.quickbooks_integration_tests.purchase_order_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_data.csv", "original_file_path": "seeds/purchase_order_data.csv", "name": "purchase_order_data", "alias": "purchase_order_data", "checksum": {"name": "sha256", "checksum": "41146f57f7697001a690027ea7182ef76dd5d591bb5dce7438edefb3e5fd0101"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.656682, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"purchase_order_data\""}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_line_data.csv", "original_file_path": "seeds/sales_receipt_line_data.csv", "name": "sales_receipt_line_data", "alias": "sales_receipt_line_data", "checksum": {"name": "sha256", "checksum": "19895ca1cfb2ebe0a4e8ef0e5c5ef9c0dbb505053cc4b98bb06de8bd3ead523f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.658426, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_line_data.csv", "original_file_path": "seeds/vendor_credit_line_data.csv", "name": "vendor_credit_line_data", "alias": "vendor_credit_line_data", "checksum": {"name": "sha256", "checksum": "8c60276eb72f29fcd60b6aff2615648b71ce47e0b738331b54f86c988a979737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1676347363.6599412, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_card_payment_txn_data"], "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_card_payment_txn_data.csv", "original_file_path": "seeds/credit_card_payment_txn_data.csv", "name": "credit_card_payment_txn_data", "alias": "credit_card_payment_txn_data", "checksum": {"name": "sha256", "checksum": "df04fb5f0ab05dd015e6476d647f9564edf6f015cd1d429ceded40e9bfd915b9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6614661, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"credit_card_payment_txn_data\""}, "seed.quickbooks_integration_tests.credit_memo_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_data.csv", "original_file_path": "seeds/credit_memo_data.csv", "name": "credit_memo_data", "alias": "credit_memo_data", "checksum": {"name": "sha256", "checksum": "3cef678ada5ab1119a096e5f6bea67c6680466ff2a21807512f1a4dba83b6139"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6629272, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"credit_memo_data\""}, "seed.quickbooks_integration_tests.department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "department_data"], "unique_id": "seed.quickbooks_integration_tests.department_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "department_data.csv", "original_file_path": "seeds/department_data.csv", "name": "department_data", "alias": "department_data", "checksum": {"name": "sha256", "checksum": "079a79543e6cfcdac83eeeeb9672451756cc6c48e7d4c572d9f761b9314b18d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.664522, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"department_data\""}, "seed.quickbooks_integration_tests.item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "item_data"], "unique_id": "seed.quickbooks_integration_tests.item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "item_data.csv", "original_file_path": "seeds/item_data.csv", "name": "item_data", "alias": "item_data", "checksum": {"name": "sha256", "checksum": "8057771cc5c837c6193ad423e6a52f7058f6001550eaa0c15098857415aee7d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.665982, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"item_data\""}, "seed.quickbooks_integration_tests.sales_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_data.csv", "original_file_path": "seeds/sales_receipt_data.csv", "name": "sales_receipt_data", "alias": "sales_receipt_data", "checksum": {"name": "sha256", "checksum": "2ac15faf0cdff7d71155fc20bb86e69d0a67d25f2172f220dbe850d45738230b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1676347363.66747, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"sales_receipt_data\""}, "seed.quickbooks_integration_tests.deposit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_data.csv", "original_file_path": "seeds/deposit_data.csv", "name": "deposit_data", "alias": "deposit_data", "checksum": {"name": "sha256", "checksum": "e0e4299672423dbdf3d63d050ecd34c29580b5a368b64307053a635e7dd9286e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6689658, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"deposit_data\""}, "seed.quickbooks_integration_tests.refund_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_data.csv", "original_file_path": "seeds/refund_receipt_data.csv", "name": "refund_receipt_data", "alias": "refund_receipt_data", "checksum": {"name": "sha256", "checksum": "0bfb44ee366239221dfee9e985b0c66d5a7cbc6d0bb8c18cf02acba7616c135d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1676347363.6705978, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"refund_receipt_data\""}, "model.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__balance_sheet"], "unique_id": "model.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__balance_sheet.sql", "original_file_path": "models/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2dfcdf44d9e54e45aad4ba6e1857e20aff338846ce16fc2e059774d1496ca222"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all asset, liability, and equity account classes by calendar year and month enriched with account type, class, and parent information.\n", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total ending period balance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.037337, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__balance_sheet\""}, "model.quickbooks.quickbooks__general_ledger_by_period": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger_by_period"], "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nretained_earnings as (\n\n select *\n from {{ ref('int_quickbooks__retained_earnings') }}\n),\n\n{% if var('financial_statement_ordinal') %}\nordinals as ( \n\n select \n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n ordinal\n from {{ var('financial_statement_ordinal') }}\n),\n{% endif %}\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n {% if var('financial_statement_ordinal') %}\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as account_ordinal\n {% else %}\n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n {% endif %}\n from balances_earnings_unioned\n {% if var('financial_statement_ordinal') %}\n left join ordinals as account_number_ordinal\n on balances_earnings_unioned.account_number = account_number_ordinal.account_number\n left join ordinals as account_sub_type_ordinal\n on balances_earnings_unioned.account_sub_type = account_sub_type_ordinal.account_sub_type\n left join ordinals as account_type_ordinal\n on balances_earnings_unioned.account_type = account_type_ordinal.account_type\n left join ordinals as account_class_ordinal\n on balances_earnings_unioned.account_class = account_class_ordinal.account_class\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger_by_period.sql", "original_file_path": "models/quickbooks__general_ledger_by_period.sql", "name": "quickbooks__general_ledger_by_period", "alias": "quickbooks__general_ledger_by_period", "checksum": {"name": "sha256", "checksum": "81b71ad880e03e46825645b549c5459da037d29b07524c66547764201690f1d9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"], ["int_quickbooks__retained_earnings"]], "sources": [], "metrics": [], "description": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year.", "columns": {"account_id": {"name": "account_id", "description": "The identifier of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account. with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Helper field identifying whether the account impacts the balances sheet or income statement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_year": {"name": "date_year", "description": "Timestamp of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_first_day": {"name": "period_first_day", "description": "Timestamp of the first date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_last_day": {"name": "period_last_day", "description": "Timestamp of the last date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_net_change": {"name": "period_net_change", "description": "Account balance difference from the beginning and ending of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_beginning_balance": {"name": "period_beginning_balance", "description": "Balance of the account as of the first date of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_ending_balance": {"name": "period_ending_balance", "description": "Sum of all transaction line adjusted_balances of the account for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger_by_period.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0320199, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nretained_earnings as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\"\n),\n\n\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n \n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n \n from balances_earnings_unioned\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\""}, "model.quickbooks.quickbooks__general_ledger": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks.get_enabled_unioned_models", "macro.dbt_utils.union_relations", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger"], "unique_id": "model.quickbooks.quickbooks__general_ledger", "raw_code": "with unioned_models as (\n\n {{ dbt_utils.union_relations(get_enabled_unioned_models()) }}\n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n),\n\n\nadjusted_gl as (\n \n select\n {{ dbt_utils.generate_surrogate_key(['gl_union.transaction_id', 'gl_union.index', 'gl_union.account_id', ' gl_union.transaction_type', 'gl_union.transaction_source']) }} as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger.sql", "original_file_path": "models/quickbooks__general_ledger.sql", "name": "quickbooks__general_ledger", "alias": "quickbooks__general_ledger", "checksum": {"name": "sha256", "checksum": "b1c31176369acc7045e2d328f3603cbe99c014621e59c82d7f281a4521310e6c"}, "tags": [], "refs": [["int_quickbooks__purchase_double_entry"], ["int_quickbooks__bill_double_entry"], ["int_quickbooks__credit_memo_double_entry"], ["int_quickbooks__deposit_double_entry"], ["int_quickbooks__invoice_double_entry"], ["int_quickbooks__journal_entry_double_entry"], ["int_quickbooks__payment_double_entry"], ["int_quickbooks__refund_receipt_double_entry"], ["int_quickbooks__sales_receipt_double_entry"], ["int_quickbooks__transfer_double_entry"], ["int_quickbooks__vendor_credit_double_entry"], ["int_quickbooks__bill_payment_double_entry"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction.", "columns": {"unique_id": {"name": "unique_id", "description": "Unique identifier of the general ledger line, dependent on `transaction_id`, `transaction_index`, `account_id`, `transaction_type`, `transaction_source`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction. Each transaction will have an offsetting debit and credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_index": {"name": "transaction_index", "description": "Unique identifier of the individual debit and credit records of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Either 'balance sheet' or 'income statement' and is used to determine that financial statement the account impacts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_current_balance": {"name": "account_current_balance", "description": "Total current balance of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the transaction line. Will be one of 'Expense', 'Revenue', 'Asset', 'Liability', and 'Equity'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Identifier of whether the transaction is a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_source": {"name": "transaction_source", "description": "Field signifying the source of transaction (eg. Bill, Invoice, Deposit, Journal Entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_transaction_type": {"name": "account_transaction_type", "description": "Identifier of whether the account is increased by either a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjusted_amount": {"name": "adjusted_amount", "description": "The amount that impacts the account. If the transaction_type = account_transaction_type then the impact will increase, otherwise it will decrease the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "running_balance": {"name": "running_balance", "description": "The running balance of the account by each individual day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.028053, "compiled_code": "with unioned_models as (\n\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"\n\n \n )\n\n \n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n),\n\n\nadjusted_gl as (\n \n select\n \n \nmd5(cast(coalesce(cast(gl_union.transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast( gl_union.transaction_type as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.transaction_source as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger\""}, "model.quickbooks.quickbooks__profit_and_loss": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__profit_and_loss"], "unique_id": "model.quickbooks.quickbooks__profit_and_loss", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__profit_and_loss.sql", "original_file_path": "models/quickbooks__profit_and_loss.sql", "name": "quickbooks__profit_and_loss", "alias": "quickbooks__profit_and_loss", "checksum": {"name": "sha256", "checksum": "20c36e05d01bfc1acee632ee45fe2861296d19a4dbf6826b0a3dcee5a7933bdd"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information.", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total period net change for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__profit_and_loss.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.034451, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\""}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true"], "nodes": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__expenses_sales_enhanced"], "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced", "raw_code": "with expenses as (\n\n select *\n from {{ ref('int_quickbooks__expenses_union') }}\n),\n\n{% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\nsales as (\n\n select *\n from {{ ref('int_quickbooks__sales_union') }}\n),\n{% endif %}\n\nfinal as (\n \n select *\n from expenses\n\n {% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from sales\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__expenses_sales_enhanced.sql", "original_file_path": "models/quickbooks__expenses_sales_enhanced.sql", "name": "quickbooks__expenses_sales_enhanced", "alias": "quickbooks__expenses_sales_enhanced", "checksum": {"name": "sha256", "checksum": "14dc301b814cc78cbd136971e534e3611271de7a4b36bf8f1d5f8af5ed1947c1"}, "tags": [], "refs": [["int_quickbooks__expenses_union"], ["int_quickbooks__sales_union"]], "sources": [], "metrics": [], "description": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records.", "columns": {"transaction_source": {"name": "transaction_source", "description": "Set to 'expense' if the transaction type is an expense and 'sale' if the transaction type is a sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Specifies the expense or sale transaction type (ie. invoice, sales_receipt, deposit, journal entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Unique identifier of the item included in a sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Quantity of items included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_unit_price": {"name": "item_unit_price", "description": "Unit price of the item included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_name": {"name": "customer_name", "description": "Name of the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_website": {"name": "customer_website", "description": "The website url of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_name": {"name": "vendor_name", "description": "Name of the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status indicating whether the expense or sale is billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description given to either the expense or sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__expenses_sales_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.023453, "compiled_code": "with expenses as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\"\n),\n\n\nsales as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__sales_union\"\n),\n\n\nfinal as (\n \n select *\n from expenses\n\n \n union all\n\n select *\n from sales\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\""}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.datediff"], "nodes": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__ap_ar_enhanced"], "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_join as (\n\n select *\n from {{ref('int_quickbooks__bill_join')}}\n),\n\n{% if var('using_invoice', True) %}\ninvoice_join as (\n\n select *\n from {{ref('int_quickbooks__invoice_join')}}\n),\n{% endif %}\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\n{% if var('using_address', True) %}\naddresses as (\n\n select *\n from {{ref('stg_quickbooks__address')}}\n),\n{% endif %}\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as {{ dbt.type_string() }}) as estimate_id, \n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n \n vendors.web_url as customer_vendor_website,\n cast(null as {{ dbt.type_string() }}) as delivery_type,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n bill_join.total_amount,\n cast(null as {{ dbt.type_numeric() }}) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n {% if var('using_department', True) %}\n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n {% endif %}\n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n {% if var('using_address', True) %}\n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n {% endif %}\n \n {% if var('using_invoice', True) %}\n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n {% if var('using_department', True) %}\n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n {% endif %}\n\n {% if var('using_address', True) %}\n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n {% endif %}\n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n {% endif %}\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__ap_ar_enhanced.sql", "original_file_path": "models/quickbooks__ap_ar_enhanced.sql", "name": "quickbooks__ap_ar_enhanced", "alias": "quickbooks__ap_ar_enhanced", "checksum": {"name": "sha256", "checksum": "a46a57fcf6a2966d9bba092f18cc5f3c39404ad382dab921ba31caef80b49417"}, "tags": [], "refs": [["int_quickbooks__bill_join"], ["int_quickbooks__invoice_join"], ["stg_quickbooks__department"], ["stg_quickbooks__address"], ["stg_quickbooks__customer"], ["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time.", "columns": {"transaction_type": {"name": "transaction_type", "description": "Set to 'bill' of the transaction is a bill and 'invoice' if the transaction is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_with": {"name": "transaction_with", "description": "Set to 'vendor' if the transaction type is a bill and 'customer' if the transaction type is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_name": {"name": "customer_vendor_name", "description": "Full name of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_balance": {"name": "customer_vendor_balance", "description": "Total current account balance of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_city": {"name": "customer_vendor_address_city", "description": "City of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_country": {"name": "customer_vendor_address_country", "description": "Country of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_line": {"name": "customer_vendor_address_line", "description": "Address line of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_website": {"name": "customer_vendor_website", "description": "The website url of the customer or vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice was delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_status": {"name": "estimate_status", "description": "The status of the invoice estimate (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The total monetary amount of the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_amount": {"name": "estimate_amount", "description": "The total amount estimated of the bill or invoice (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_balance": {"name": "current_balance", "description": "The bill or invoice defined remaining balance of the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_current_payment": {"name": "total_current_payment", "description": "Sum of all total payments made towards the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the due date for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_overdue": {"name": "is_overdue", "description": "Boolean indicating whether the bill or invoice full payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "days_overdue": {"name": "days_overdue", "description": "The recent payment minus the due date to show the total days the total payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "initial_payment_date": {"name": "initial_payment_date", "description": "The first date a payment was provided for the bill or invoice", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recent_payment_date": {"name": "recent_payment_date", "description": "The last date a payment was provided for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__ap_ar_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.0142112, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith bill_join as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__bill_join\"\n),\n\n\ninvoice_join as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\"\n),\n\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\n\naddresses as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n),\n\n\ncustomers as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\nvendors as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as TEXT) as estimate_id, \n\n \n departments.fully_qualified_name as department_name,\n \n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n \n vendors.web_url as customer_vendor_website,\n cast(null as TEXT) as delivery_type,\n cast(null as TEXT) as estimate_status,\n bill_join.total_amount,\n cast(null as numeric(28,6)) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n \n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n \n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n \n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n \n \n \n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n \n departments.fully_qualified_name as department_name,\n \n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n \n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n \n\n \n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n \n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\""}, "model.quickbooks.quickbooks__cash_flow_statement": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__cash_flow_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__cash_flow_statement"], "unique_id": "model.quickbooks.quickbooks__cash_flow_statement", "raw_code": "with cash_flow_classifications as (\n \n select *\n from {{ ref('int_quickbooks__cash_flow_classifications') }}\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__cash_flow_statement.sql", "original_file_path": "models/quickbooks__cash_flow_statement.sql", "name": "quickbooks__cash_flow_statement", "alias": "quickbooks__cash_flow_statement", "checksum": {"name": "sha256", "checksum": "08755f384d8c772516c9ee251fe73ceda61e54f61a0db87d7514347247d54ef7"}, "tags": [], "refs": [["int_quickbooks__cash_flow_classifications"]], "sources": [], "metrics": [], "description": "Table that provides all line items necessary to construct a cash flow statement.", "columns": {"account_unique_id": {"name": "account_unique_id", "description": "Unique identifier of the cash flow statement account line, dependent on account_id, class_id, source_relation and calendar_date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_period": {"name": "cash_flow_period", "description": "Timestamp of the first date for the cash flow period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_type": {"name": "cash_flow_type", "description": "The type of cash flow (Defaults are Cash or Cash Equivalents, Investing, Operating, Financing). The customer can also configure the cash flow type; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_ordinal": {"name": "cash_flow_ordinal", "description": "Integer value to order the account within final cash flow statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_ending_period": {"name": "cash_ending_period", "description": "The total ending period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_beginning_period": {"name": "cash_beginning_period", "description": "The total beginning period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_net_period": {"name": "cash_net_period", "description": "The net cash change from the beginning to the end of the period for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__cash_flow_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0185, "compiled_code": "with cash_flow_classifications as (\n \n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\"\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\""}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__transfer_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry", "raw_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith transfers as (\n\n select *\n from {{ ref('stg_quickbooks__transfer') }}\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "name": "int_quickbooks__transfer_double_entry", "alias": "int_quickbooks__transfer_double_entry", "checksum": {"name": "sha256", "checksum": "08b6fc8e3b028b3ff6f5f7b2ca25776e1531ef90e62bc71c95a7c3bad16710ed"}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the receiving account and a credit record to the sending account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.004608, "compiled_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith transfers as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\""}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_memo_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry", "raw_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "name": "int_quickbooks__credit_memo_double_entry", "alias": "int_quickbooks__credit_memo_double_entry", "checksum": {"name": "sha256", "checksum": "e0d97e4dccb230ea8aa258b5cb258e43881fe5de6ded72058163645cc705d3ea"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.00224, "compiled_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\""}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__refund_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "name": "int_quickbooks__refund_receipt_double_entry", "alias": "int_quickbooks__refund_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "8324e59e150115fdea6272a77fc9868ff3343f9d6768236f654d670ee7b02e5e"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified asset account and a credit record the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.004089, "compiled_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__journal_entry_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry", "raw_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "name": "int_quickbooks__journal_entry_double_entry", "alias": "int_quickbooks__journal_entry_double_entry", "checksum": {"name": "sha256", "checksum": "5a1a31080d550c5cea879594f8ac10b70b52dd0d3403ec150a50c3375bd8560e"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that provides the debit and credit records of a journal entry transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.003304, "compiled_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\""}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "name": "int_quickbooks__bill_payment_double_entry", "alias": "int_quickbooks__bill_payment_double_entry", "checksum": {"name": "sha256", "checksum": "7681540e1b8b756efaf589a11195020a1300b6ed9f70d52546a5871054c29b95"}, "tags": [], "refs": [["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts payable and a credit record to the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.001962, "compiled_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith bill_payments as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\""}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__deposit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n\n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "name": "int_quickbooks__deposit_double_entry", "alias": "int_quickbooks__deposit_double_entry", "checksum": {"name": "sha256", "checksum": "9f702e78f5e48d8771a24b5e372b77bfb41fa9e78fed48c4123fdc3770b40296"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to either undeposited funds or a specific other account indicated in the deposit line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.0027788, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\""}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__purchase_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry", "raw_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\npurchase_lines as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "name": "int_quickbooks__purchase_double_entry", "alias": "int_quickbooks__purchase_double_entry", "checksum": {"name": "sha256", "checksum": "6928b3fc773e3881f03746c0e7c86e9edb1169d5bf456c219694efc2eaefcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__purchase_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to a specified expense account and a credit record to the payment account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate"}, "created_at": 1676347365.00383, "compiled_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\npurchase_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\""}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__sales_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "name": "int_quickbooks__sales_receipt_double_entry", "alias": "int_quickbooks__sales_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "b2e5219c2adae8a87d3d6e813730f3344cbae070efdec77f2fc16e63abdcc857"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to the specified asset account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.00435, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__vendor_credit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "raw_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "name": "int_quickbooks__vendor_credit_double_entry", "alias": "int_quickbooks__vendor_credit_double_entry", "checksum": {"name": "sha256", "checksum": "d5b5913d12d2880d19f2b17f6a3fd395a84ea8b7d2a5e965a25cf04ba9534236"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to payable account and a credit record to the expense account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.004975, "compiled_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\""}, "model.quickbooks.int_quickbooks__bill_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "name": "int_quickbooks__bill_double_entry", "alias": "int_quickbooks__bill_double_entry", "checksum": {"name": "sha256", "checksum": "95a197d82bcd77753581efdd590be8ad9652f318837a2380dd9e7b50d9b812a9"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.001653, "compiled_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\""}, "model.quickbooks.int_quickbooks__payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry", "raw_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith payments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "name": "int_quickbooks__payment_double_entry", "alias": "int_quickbooks__payment_double_entry", "checksum": {"name": "sha256", "checksum": "c8e70c76ebc6641a9817adca7d113a3997d9c3376df1b29ca25201c32cdb33ec"}, "tags": [], "refs": [["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.0035641, "compiled_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith payments as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__invoice_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\n\n{% if var('using_invoice_bundle', True) %}\n\ninvoice_bundles as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line_bundle') }}\n),\n\nbundles as (\n\n select *\n from {{ ref('stg_quickbooks__bundle') }}\n),\n\nbundle_items as (\n\n select *\n from {{ ref('stg_quickbooks__bundle_item') }}\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n{% endif %}\n\nar_accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n {% if var('using_invoice_bundle', True) %}\n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n {% else %}\n coalesce(invoice_lines.account_id, items.income_account_id) as account_id,\n {% endif %}\n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n {% if var('using_invoice_bundle', True) %}\n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n {% else %}\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id) is not null \n\n {% endif %}\n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "name": "int_quickbooks__invoice_double_entry", "alias": "int_quickbooks__invoice_double_entry", "checksum": {"name": "sha256", "checksum": "ff00ba3d0bd575bb253363bfd2fbcd791cedc27c83d757af54d0e5adbccda142"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"], ["stg_quickbooks__account"], ["stg_quickbooks__invoice_line_bundle"], ["stg_quickbooks__bundle"], ["stg_quickbooks__bundle_item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.003042, "compiled_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\n\n\n\ninvoice_bundles as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n),\n\nbundles as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n),\n\nbundle_items as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n\n\nar_accounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n \n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n \n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n \n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n \n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__invoice_transactions"], "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__invoice_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__invoice_transactions.sql", "name": "int_quickbooks__invoice_transactions", "alias": "int_quickbooks__invoice_transactions", "checksum": {"name": "sha256", "checksum": "e02921a0f4ebbd0d0bfeee8cc7ed8136497c3d7e2cb5826922c2fc2f164e01b9"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__invoice_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347363.838797, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\""}, "model.quickbooks.int_quickbooks__bill_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__bill_transactions"], "unique_id": "model.quickbooks.int_quickbooks__bill_transactions", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }} \n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__bill_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__bill_transactions.sql", "name": "int_quickbooks__bill_transactions", "alias": "int_quickbooks__bill_transactions", "checksum": {"name": "sha256", "checksum": "42a5c76a8c69ea3b6f162addd1c69d225b8ff912543b8d5502712ae76b506ae2"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the bill and corresponding bill lines into a single bill transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__bill_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.005236, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\" \n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\""}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__journal_entry_transactions"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as {{ dbt.type_string() }}) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__journal_entry_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "name": "int_quickbooks__journal_entry_transactions", "alias": "int_quickbooks__journal_entry_transactions", "checksum": {"name": "sha256", "checksum": "5df763182668b5667cc91f518169b228c9726c03a97626e4bb7ae5a710602bf7"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that joins the journal entry and corresponding journal entry lines into a single journal entry transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.006002, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as TEXT) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\""}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__refund_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "name": "int_quickbooks__refund_receipt_transactions", "alias": "int_quickbooks__refund_receipt_transactions", "checksum": {"name": "sha256", "checksum": "097df40c7a3b5554bec4b1f96af80c7065d5ed99f9a3877f5b8c639263c3a35d"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the refund receipt and corresponding refund receipt lines into a single refund receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.006523, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\""}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__vendor_credit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n \n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "name": "int_quickbooks__vendor_credit_transactions", "alias": "int_quickbooks__vendor_credit_transactions", "checksum": {"name": "sha256", "checksum": "15380e78bc581c3192a7370b6c62f9805accc3b5bda2f200f68aa066db4785b0"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the vendor credit and corresponding vendor credit lines into a single vendor credit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.007031, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n \n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\""}, "model.quickbooks.int_quickbooks__purchase_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__purchase_transactions"], "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions", "raw_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_purchase', True)) }}\n\nwith purchases as (\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\npurchase_lines as (\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__purchase_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__purchase_transactions.sql", "name": "int_quickbooks__purchase_transactions", "alias": "int_quickbooks__purchase_transactions", "checksum": {"name": "sha256", "checksum": "bead953d0576140a7d67c3764c62993abf6809d601ccd20000aa5ea7a73c7172"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__item"], ["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "Table that joins the purchase and corresponding purchase lines into a single purchase transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__purchase_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.00626, "compiled_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n\n\nwith purchases as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\nitems as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\npurchase_lines as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\""}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__sales_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions", "raw_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "name": "int_quickbooks__sales_receipt_transactions", "alias": "int_quickbooks__sales_receipt_transactions", "checksum": {"name": "sha256", "checksum": "2e01630bf25cd736b93b07ec7b98887fbe62d8f9f34fd4fed820862a44d1c68d"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the sales receipt and corresponding sales receipt lines into a single sales receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.006779, "compiled_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\""}, "model.quickbooks.int_quickbooks__deposit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__deposit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n \n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as {{ dbt.type_string() }}) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__deposit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__deposit_transactions.sql", "name": "int_quickbooks__deposit_transactions", "alias": "int_quickbooks__deposit_transactions", "checksum": {"name": "sha256", "checksum": "750c679ea708e917039ddcc2502e672fb77f769a9370028c77f7beef15868fc6"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "Table that joins the deposit and corresponding deposit lines into a single deposit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__deposit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.005748, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n \n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as TEXT) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\""}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__credit_memo_transactions"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__credit_memo_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "name": "int_quickbooks__credit_memo_transactions", "alias": "int_quickbooks__credit_memo_transactions", "checksum": {"name": "sha256", "checksum": "e671668964b67084e2953c82076642f09a1cf6055a3366b15fc9eec8a77222ae"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the credit memo and credit memo lines into a single credit memo transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.005494, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\""}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__cash_flow_classifications"], "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications", "raw_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n {{ dbt_utils.generate_surrogate_key(['account_id', 'source_relation', 'calendar_date', 'class_id']) }} as account_unique_id\n from {{ ref('quickbooks__balance_sheet') }}\n),\n \n{% if var('cash_flow_statement_type_ordinal') %}\nordinals as (\n \n select\n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n cast(cash_flow_type as {{ dbt.type_string() }}) as cash_flow_type,\n ordinal\n from {{ var('cash_flow_statement_type_ordinal') }}\n),\n{% endif %}\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n {% if var('cash_flow_statement_type_ordinal') %}\n coalesce(account_number_ordinal.cash_flow_type, account_sub_type_ordinal.cash_flow_type, account_type_ordinal.cash_flow_type, account_class_ordinal.cash_flow_type) as cash_flow_type,\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as cash_flow_ordinal \n {% else %}\n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n {% endif %}\n\n from cash_flow_key\n \n {% if var('cash_flow_statement_type_ordinal') %}\n\n {% set cash_flow_type_fields = ['account_number', 'account_sub_type', 'account_type', 'account_class'] %}\n \n {% for cash_flow_type_field in cash_flow_type_fields %} \n left join ordinals as {{ cash_flow_type_field }}_ordinal\n on cash_flow_key.{{ cash_flow_type_field }} = {{ cash_flow_type_field }}_ordinal.{{ cash_flow_type_field }}\n {% endfor %}\n \n {% endif %}\n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__cash_flow_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__cash_flow_classifications.sql", "name": "int_quickbooks__cash_flow_classifications", "alias": "int_quickbooks__cash_flow_classifications", "checksum": {"name": "sha256", "checksum": "c76ef90529e969f875f192f8a236430430ab2c9d2dbf52885875ee854a1a3886"}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "Table that provides additional classifications necessary for the cash flow statement, like the cash flow type and ordinals.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__cash_flow_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.009401, "compiled_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n \n \nmd5(cast(coalesce(cast(account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(calendar_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(class_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as account_unique_id\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n),\n \n\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n \n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n \n\n from cash_flow_key\n \n \n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\""}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.int_quickbooks__general_ledger_date_spine"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_balances"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances", "raw_code": "with general_ledger as (\n\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ngl_accounting_periods as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_date_spine') }}\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast({{ dbt.date_trunc(\"year\", \"transaction_date\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"transaction_date\") }} as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n {{ dbt_utils.group_by(14) }}\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_balances.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_balances.sql", "name": "int_quickbooks__general_ledger_balances", "alias": "int_quickbooks__general_ledger_balances", "checksum": {"name": "sha256", "checksum": "23b725ae7388455419b95572539a4ceb3b7fdaf0d7ee77154d11acedae1f118c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["int_quickbooks__general_ledger_date_spine"]], "sources": [], "metrics": [], "description": "Table that aggregates quickbooks__general_ledger account level transactions per period into a period_beginning_balance, period_ending_balance, and period_net_change for each period through the use of the int_quickbooks__general_ledger_date_spine model. Further, period balances are only applied to balance sheet accounts while income statement accounts do not have a persisting balance rather a period net change. Please note, a period equates to one month. \n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_balances.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0081332, "compiled_code": "with general_ledger as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ngl_accounting_periods as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\"\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast(date_trunc('year', transaction_date) as date) as date_year,\n cast(date_trunc('month', transaction_date) as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\""}, "model.quickbooks.int_quickbooks__account_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__account_classifications"], "unique_id": "model.quickbooks.int_quickbooks__account_classifications", "raw_code": "with accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__account_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__account_classifications.sql", "name": "int_quickbooks__account_classifications", "alias": "int_quickbooks__account_classifications", "checksum": {"name": "sha256", "checksum": "757b4fa3587f332bcccc9e1b7a494c99166bbd77f93a3be09bd1d027e73315f4"}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that adds missing detail to the account table. This table adds the following:\nA financial statement helper field that specifies the account as either a balance sheet or income statement account.\nAdds a transaction type to the specified account. The transaction type (debit or credit) is the type of transaction that increases the account.\nAdds a multiplier of -1 to Liability and Equity accounts to offset the account balance so liability and equity accounts do not show up as negative balances.\nCreates a new classification field that fills in the gaps if classifications were incorrectly set on certain s. For more information on how these classifications were determined you can refer to the [QuickBooks API Docs](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account) that was used as reference.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__account_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.007284, "compiled_code": "with accounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\""}, "model.quickbooks.int_quickbooks__expenses_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric"], "nodes": ["model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__expenses_union"], "unique_id": "model.quickbooks.int_quickbooks__expenses_union", "raw_code": "with expense_union as (\n\n select *\n from {{ ref('int_quickbooks__purchase_transactions') }}\n\n {% if var('using_bill', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__bill_transactions') }}\n {% endif %} \n\n {% if var('using_journal_entry', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__journal_entry_transactions')}}\n {% endif %} \n\n {% if var('using_deposit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__deposit_transactions')}}\n {% endif %} \n\n {% if var('using_vendor_credit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__vendor_credit_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nexpense_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as {{ dbt.type_string() }}) as item_id,\n cast(null as {{ dbt.type_numeric() }}) as item_quantity,\n cast(null as {{ dbt.type_numeric() }}) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__expenses_union.sql", "original_file_path": "models/intermediate/int_quickbooks__expenses_union.sql", "name": "int_quickbooks__expenses_union", "alias": "int_quickbooks__expenses_union", "checksum": {"name": "sha256", "checksum": "1281caef70631920ac2b25aef0d702c469f4641eb0b173e49c244aa064bf1d34"}, "tags": [], "refs": [["int_quickbooks__purchase_transactions"], ["int_quickbooks__bill_transactions"], ["int_quickbooks__journal_entry_transactions"], ["int_quickbooks__deposit_transactions"], ["int_quickbooks__vendor_credit_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of an expense. The expense transactional tables included are: int_quickbooks__purchase_transactions, int_quickbooks__bill_transactions, int_quickbooks_journal_entry_transactions, int_quickbooks__deposit_transactions, int_quickbooks__vendor_credit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-expense transactions an inner join on accounts with the sub_type equal to Expense is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__expenses_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0077922, "compiled_code": "with expense_union as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\"\n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nexpense_accounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as TEXT) as item_id,\n cast(null as numeric(28,6)) as item_quantity,\n cast(null as numeric(28,6)) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n \n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\""}, "model.quickbooks.int_quickbooks__invoice_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__invoice_join"], "unique_id": "model.quickbooks.int_quickbooks__invoice_join", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice')) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_linked as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_linked_txn') }}\n),\n\n{% if var('using_estimate', True) %}\nestimates as (\n\n select *\n from {{ ref('stg_quickbooks__estimate') }}\n),\n{% endif %}\n\npayments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines_payment as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as {{ dbt.type_string() }}) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n {% if var('using_estimate', True) %}\n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n {% else %}\n cast(null as {{ dbt.type_numeric() }}) as estimate_total_amount,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n\n {% endif %}\n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n {% if var('using_estimate', True) %}\n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n {% endif %}\n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n {{ dbt_utils.group_by(15) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__invoice_join.sql", "original_file_path": "models/intermediate/int_quickbooks__invoice_join.sql", "name": "int_quickbooks__invoice_join", "alias": "int_quickbooks__invoice_join", "checksum": {"name": "sha256", "checksum": "541d06a75aca5faa32943aaf2e74935402d051e7fdfd0887badea48b38ae62c1"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_linked_txn"], ["stg_quickbooks__estimate"], ["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single invoice transactions with the corresponding payment (if paid) and corresponding estimate (if provided).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__invoice_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.008642, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_linked as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\n),\n\n\nestimates as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n),\n\n\npayments as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines_payment as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as TEXT) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n \n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n \n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n \n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n \n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\""}, "model.quickbooks.int_quickbooks__retained_earnings": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.group_by", "macro.dbt.type_string", "macro.dbt.date_trunc", "macro.dbt.last_day"], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__retained_earnings"], "unique_id": "model.quickbooks.int_quickbooks__retained_earnings", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as {{ dbt.type_string() }}) as account_id,\n source_relation,\n cast('9999-00' as {{ dbt.type_string() }}) as account_number,\n cast('Net Income Adjustment' as {{ dbt.type_string() }}) as account_name,\n false as is_sub_account,\n cast(null as {{ dbt.type_string() }}) as parent_account_number,\n cast(null as {{ dbt.type_string() }}) as parent_account_name,\n cast('Equity' as {{ dbt.type_string() }}) as account_type,\n cast('RetainedEarnings' as {{ dbt.type_string() }}) as account_sub_type,\n cast('Equity' as {{ dbt.type_string() }}) as account_class,\n cast(null as {{ dbt.type_string() }}) as class_id,\n cast('balance_sheet' as {{ dbt.type_string() }}) as financial_statement_helper,\n cast({{ dbt.date_trunc(\"year\", \"period_first_day\") }} as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n {{ dbt.last_day(\"period_first_day\", \"month\") }} as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__retained_earnings.sql", "original_file_path": "models/intermediate/int_quickbooks__retained_earnings.sql", "name": "int_quickbooks__retained_earnings", "alias": "int_quickbooks__retained_earnings", "checksum": {"name": "sha256", "checksum": "bc108322a5b746dbee6f3ac5d80bee9f601f55568e9f5547780bf107d3d549a9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"]], "sources": [], "metrics": [], "description": "Table that creates an adjusting entry for retained earnings each month. The retained earnings account is created as account_id 9999 and is listed as an Equity class. This table generates the retained earnings period beginning balance, ending balance, and net change by adding the period revenues and subtracting by the period expenses. This total is set as the period ending balance. From the period ending balance the net change and beginning balances are calculated. This is table is then unioned with in_quickbooks__general_ledger_balances.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__retained_earnings.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0091488, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n group by 1,2 \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n group by 1,2 \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as TEXT) as account_id,\n source_relation,\n cast('9999-00' as TEXT) as account_number,\n cast('Net Income Adjustment' as TEXT) as account_name,\n false as is_sub_account,\n cast(null as TEXT) as parent_account_number,\n cast(null as TEXT) as parent_account_name,\n cast('Equity' as TEXT) as account_type,\n cast('RetainedEarnings' as TEXT) as account_sub_type,\n cast('Equity' as TEXT) as account_class,\n cast(null as TEXT) as class_id,\n cast('balance_sheet' as TEXT) as financial_statement_helper,\n cast(date_trunc('year', period_first_day) as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', period_first_day) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\""}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt.date_trunc", "macro.dbt.last_day", "macro.dbt.run_query"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_date_spine"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine", "raw_code": "-- depends_on: {{ ref('quickbooks__general_ledger') }}\n\nwith spine as (\n\n {% if execute %}\n {% set first_date_query %}\n select min( transaction_date ) as min_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n {% set first_date = run_query(first_date_query).columns[0][0]|string %}\n \n {% if target.type == 'postgres' %}\n {% set first_date_adjust = \"cast('\" ~ first_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set first_date_adjust = \"'\" ~ first_date[0:10] ~ \"'\" %}\n\n {% endif %}\n\n {% else %} {% set first_date_adjust = \"'2000-01-01'\" %}\n {% endif %}\n\n {% if execute %}\n {% set last_date_query %}\n select max( transaction_date ) as max_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n\n {% set current_date_query %}\n select current_date\n {% endset %}\n\n {% if run_query(current_date_query).columns[0][0]|string < run_query(last_date_query).columns[0][0]|string %}\n\n {% set last_date = run_query(last_date_query).columns[0][0]|string %}\n\n {% else %} {% set last_date = run_query(current_date_query).columns[0][0]|string %}\n {% endif %}\n \n {% if target.type == 'postgres' %}\n {% set last_date_adjust = \"cast('\" ~ last_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set last_date_adjust = \"'\" ~ last_date[0:10] ~ \"'\" %}\n\n {% endif %}\n {% endif %}\n\n {{ dbt_utils.date_spine(\n datepart=\"month\",\n start_date=first_date_adjust,\n end_date=dbt.dateadd(\"month\", 1, last_date_adjust)\n )\n }}\n),\n\ngeneral_ledger as (\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ndate_spine as (\n select\n cast({{ dbt.date_trunc(\"year\", \"date_month\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date) as period_first_day,\n {{ dbt.last_day(\"date_month\", \"month\") }} as period_last_day,\n row_number() over (order by cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_date_spine.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "name": "int_quickbooks__general_ledger_date_spine", "alias": "int_quickbooks__general_ledger_date_spine", "checksum": {"name": "sha256", "checksum": "aaf951b7837338c61415eb69d5d4518f45fbf6f5a78c0781833a64a1f08a596c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "Table that creates a date spine by month with the first date being the minimum transaction date from the quickbooks__general_ledger model and the last date being one month after the last transaction date from the quickbooks__general_ledger model.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0083892, "compiled_code": "-- depends_on: \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n\nwith spine as (\n\n \n \n \n \n \n \n\n \n\n \n\n \n \n\n \n\n \n \n \n \n \n\n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 50.0\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-02' as date) + ((interval '1 month') * (row_number() over (order by 1) - 1))\n\n\n ) as date_month\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_month <= \n\n cast('2023-02-14' as date) + ((interval '1 month') * (1))\n\n\n\n)\n\nselect * from filtered\n\n\n),\n\ngeneral_ledger as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ndate_spine as (\n select\n cast(date_trunc('year', date_month) as date) as date_year,\n cast(date_trunc('month', date_month) as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', date_month) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n row_number() over (order by cast(date_trunc('month', date_month) as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\""}, "model.quickbooks.int_quickbooks__bill_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__bill_join"], "unique_id": "model.quickbooks.int_quickbooks__bill_join", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nbills_linked as (\n\n select *\n from {{ ref('stg_quickbooks__bill_linked_txn') }}\n),\n\nbill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as {{ dbt.type_string() }}) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n {{ dbt_utils.group_by(10) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__bill_join.sql", "original_file_path": "models/intermediate/int_quickbooks__bill_join.sql", "name": "int_quickbooks__bill_join", "alias": "int_quickbooks__bill_join", "checksum": {"name": "sha256", "checksum": "26e2ff679cccf1e52083b6e91f4587982d85a6d1f2747ba4733e135992d53f26"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__bill_linked_txn"], ["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single bill transaction with the corresponding bill payment (if paid).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__bill_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.0075378, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nbills_linked as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\n),\n\nbill_payments as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as TEXT) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n group by 1,2,3,4,5,6,7,8,9,10 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__bill_join\""}, "model.quickbooks.int_quickbooks__sales_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true", "macro.fivetran_utils.enabled_vars"], "nodes": ["model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__sales_union"], "unique_id": "model.quickbooks.int_quickbooks__sales_union", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice'])) }}\n\nwith sales_union as (\n\n {% if var('using_sales_receipt', True) %}\n select *\n from {{ ref('int_quickbooks__sales_receipt_transactions') }}\n {% endif %}\n\n {% if fivetran_utils.enabled_vars(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n\n {% else %}\n\n {% if var('using_invoice', True) %}\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n {% endif %} \n \n {% endif %}\n\n {% if var('using_refund_receipt', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__refund_receipt_transactions') }}\n {% endif %}\n\n {% if var('using_credit_memo', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__credit_memo_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nincome_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__sales_union.sql", "original_file_path": "models/intermediate/int_quickbooks__sales_union.sql", "name": "int_quickbooks__sales_union", "alias": "int_quickbooks__sales_union", "checksum": {"name": "sha256", "checksum": "e8efad88f641adc4d0e72e7bbb6334dc2af414b98b31c8b570dce3ca8bc4a917"}, "tags": [], "refs": [["int_quickbooks__sales_receipt_transactions"], ["int_quickbooks__invoice_transactions"], ["int_quickbooks__refund_receipt_transactions"], ["int_quickbooks__credit_memo_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of a sale. The sale transactional tables are: int_quickbooks__sales_receipt_transactions int_quickbooks__invoice_transactions, int_quickbooks__credit_memo_transactions, int_quickbooks__refund_receipt_transactions, int_quickbooks__journal_entry_transactions, int_quickbooks__deposit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-income transactions an inner join on accounts with the sub_type equal to Income is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__sales_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.008894, "compiled_code": "\n\nwith sales_union as (\n\n \n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\"\n\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nincome_accounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n \n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__sales_union\""}, "analysis.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__balance_sheet"], "unique_id": "analysis.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__balance_sheet.sql", "original_file_path": "analysis/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2d430f9f0571cf16e08e31820360dbb610c24d5fdc1ab38bd2943b4b7161bbda"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347363.984533, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "analysis.quickbooks.quickbooks__income_statement": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__income_statement"], "unique_id": "analysis.quickbooks.quickbooks__income_statement", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__income_statement.sql", "original_file_path": "analysis/quickbooks__income_statement.sql", "name": "quickbooks__income_statement", "alias": "quickbooks__income_statement", "checksum": {"name": "sha256", "checksum": "6a2926427516128d537ff107ec14a2338f89f3f2dec1d861ec7daab31fd2c87e"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__income_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347363.9880059, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__journal_entry_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_line_tmp')),\n staging_columns=get_journal_entry_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry_line.sql", "original_file_path": "models/stg_quickbooks__journal_entry_line.sql", "name": "stg_quickbooks__journal_entry_line", "alias": "stg_quickbooks__journal_entry_line", "checksum": {"name": "sha256", "checksum": "4a44ae6affd5281ee7cc64e05384fdb7ad18b15c18185cc970f9bd639bdf7a34"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Account id of the account which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.134965, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n billable_status\n \n as \n \n billable_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n posting_type\n \n as \n \n posting_type\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_applicable_on\n \n as \n \n tax_applicable_on\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as TEXT) as journal_entry_id,\n index,\n cast(account_id as TEXT) as account_id,\n amount,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as TEXT) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__transfer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__transfer_tmp')),\n staging_columns=get_transfer_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__transfer.sql", "original_file_path": "models/stg_quickbooks__transfer.sql", "name": "stg_quickbooks__transfer", "alias": "stg_quickbooks__transfer", "checksum": {"name": "sha256", "checksum": "2e5aeff4520b116401c48251bf9a3f2db443857c8c8f7c07aaf5b41286878746"}, "tags": [], "refs": [["stg_quickbooks__transfer_tmp"], ["stg_quickbooks__transfer_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"transfer_id": {"name": "transfer_id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "Account id of the account which the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "Account id of the account which the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__transfer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.167346, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n from_account_id\n \n as \n \n from_account_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n to_account_id\n \n as \n \n to_account_id\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as transfer_id,\n amount,\n cast(from_account_id as TEXT) as from_account_id,\n cast(to_account_id as TEXT) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_line_tmp')),\n staging_columns=get_bill_payment_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment_line.sql", "original_file_path": "models/stg_quickbooks__bill_payment_line.sql", "name": "stg_quickbooks__bill_payment_line", "alias": "stg_quickbooks__bill_payment_line", "checksum": {"name": "sha256", "checksum": "e0de0b712f688b7f8628fa17430dc3d700042e37a53783d3e8fc7ee0272a71db"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.0885792, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_credit_card_id\n \n as \n \n bill_payment_credit_card_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n linked_bill_payment_id\n \n as \n \n linked_bill_payment_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as TEXT) as bill_payment_id,\n index,\n amount,\n cast(bill_id as TEXT) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_line_tmp')),\n staging_columns=get_payment_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment_line.sql", "original_file_path": "models/stg_quickbooks__payment_line.sql", "name": "stg_quickbooks__payment_line", "alias": "stg_quickbooks__payment_line", "checksum": {"name": "sha256", "checksum": "62737fcbdd45af89bc14370b70f36cfbd94391602da7a6afb4dd97e4a1120429"}, "tags": [], "refs": [["stg_quickbooks__payment_line_tmp"], ["stg_quickbooks__payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.138983, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as TEXT) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as TEXT) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_tmp')),\n staging_columns=get_vendor_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor.sql", "original_file_path": "models/stg_quickbooks__vendor.sql", "name": "stg_quickbooks__vendor", "alias": "stg_quickbooks__vendor", "checksum": {"name": "sha256", "checksum": "6b6d5e653208581f032f6850766879795733912c64f11163419584210d386970"}, "tags": [], "refs": [["stg_quickbooks__vendor_tmp"], ["stg_quickbooks__vendor_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"vendor_id": {"name": "vendor_id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_vendor_1099": {"name": "is_vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.176354, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone\n \n as \n \n alternate_phone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n other_contacts\n \n as \n \n other_contacts\n \n, \n \n \n primary_phone\n \n as \n \n primary_phone\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_identifier\n \n as \n \n tax_identifier\n \n, \n \n \n term_id\n \n as \n \n term_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_1099\n \n as \n \n vendor_1099\n \n, \n \n \n web_url\n \n as \n \n web_url\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as TEXT) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_tmp')),\n staging_columns=get_invoice_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line.sql", "original_file_path": "models/stg_quickbooks__invoice_line.sql", "name": "stg_quickbooks__invoice_line", "alias": "stg_quickbooks__invoice_line", "checksum": {"name": "sha256", "checksum": "acc22a519a861cd717e417884b61bc191432e1c46a31ea8ebde689e6f4223177"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_tmp"], ["stg_quickbooks__invoice_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.122988, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as TEXT) as bundle_id,\n cast(account_id as TEXT) as account_id,\n cast(item_id as TEXT) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_tmp') }}\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_tmp')),\n staging_columns=get_estimate_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as estimate_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate.sql", "original_file_path": "models/stg_quickbooks__estimate.sql", "name": "stg_quickbooks__estimate", "alias": "stg_quickbooks__estimate", "checksum": {"name": "sha256", "checksum": "501fe174a3a77c1f92407b060600528ce9e3b198e143ab2985f5a0f0e9c95c70"}, "tags": [], "refs": [["stg_quickbooks__estimate_tmp"], ["stg_quickbooks__estimate_tmp"]], "sources": [], "metrics": [], "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the estimate was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.115406, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\"\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepted_by\n \n as \n \n accepted_by\n \n, \n \n \n accepted_date\n \n as \n \n accepted_date\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n expiration_date\n \n as \n \n expiration_date\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as estimate_id,\n cast(class_id as TEXT) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_line_tmp')),\n staging_columns=get_credit_memo_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo_line.sql", "original_file_path": "models/stg_quickbooks__credit_memo_line.sql", "name": "stg_quickbooks__credit_memo_line", "alias": "stg_quickbooks__credit_memo_line", "checksum": {"name": "sha256", "checksum": "b7cf6d56a640a9f0700a3620a94fc61a422c8db6dfdbcbbb5939e0fd80c5a3b7"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line_tmp"], ["stg_quickbooks__credit_memo_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1017249, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as TEXT) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_tmp')),\n staging_columns=get_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle.sql", "original_file_path": "models/stg_quickbooks__bundle.sql", "name": "stg_quickbooks__bundle", "alias": "stg_quickbooks__bundle", "checksum": {"name": "sha256", "checksum": "8e3f27ad4f72eb020a1c32b3654e9306ef2f878a0c52ac8356b695a0c03c2611"}, "tags": [], "refs": [["stg_quickbooks__bundle_tmp"], ["stg_quickbooks__bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the bundle was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.096843, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n print_grouped_items\n \n as \n \n print_grouped_items\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__department_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__department_tmp')),\n staging_columns=get_department_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__department.sql", "original_file_path": "models/stg_quickbooks__department.sql", "name": "stg_quickbooks__department", "alias": "stg_quickbooks__department", "checksum": {"name": "sha256", "checksum": "61c0a5d8287b3e73bbee2986e1d0914da2cdc67a88534bd2be26264eb6e29a67"}, "tags": [], "refs": [["stg_quickbooks__department_tmp"], ["stg_quickbooks__department_tmp"]], "sources": [], "metrics": [], "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"department_id": {"name": "department_id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the department was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_department": {"name": "is_sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if is_sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__department.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.108834, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_department_id\n \n as \n \n parent_department_id\n \n, \n \n \n sub_department\n \n as \n \n sub_department\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "raw_code": "with base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_line_tmp')),\n staging_columns=get_purchase_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_line.sql", "original_file_path": "models/stg_quickbooks__purchase_line.sql", "name": "stg_quickbooks__purchase_line", "alias": "stg_quickbooks__purchase_line", "checksum": {"name": "sha256", "checksum": "1ffe50688ea656d1019565cd7238adef008dc1e1e7e97ba2048bb6c4628f873d"}, "tags": [], "refs": [["stg_quickbooks__purchase_line_tmp"], ["stg_quickbooks__purchase_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based expense purchase line", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.144147, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as TEXT) as purchase_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__purchase_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_tmp')),\n staging_columns=get_purchase_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase.sql", "original_file_path": "models/stg_quickbooks__purchase.sql", "name": "stg_quickbooks__purchase", "alias": "stg_quickbooks__purchase", "checksum": {"name": "sha256", "checksum": "cde15943157fb1be413075f3aa62e1670fb0e6bb5118ca59ea5f75f816487d4a"}, "tags": [], "refs": [["stg_quickbooks__purchase_tmp"], ["stg_quickbooks__purchase_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of purchase expenses.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Specifies the account reference to which this purchase is applied based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.147252, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remit_to_address_id\n \n as \n \n remit_to_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as purchase_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n cast(vendor_id as TEXT) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_line_tmp')),\n staging_columns=get_refund_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id, \n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt_line.sql", "original_file_path": "models/stg_quickbooks__refund_receipt_line.sql", "name": "stg_quickbooks__refund_receipt_line", "alias": "stg_quickbooks__refund_receipt_line", "checksum": {"name": "sha256", "checksum": "6e468b38cb9d0067dad366c52ec5e366a4455ed5158fc38d6502f1520529cfe9"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line_tmp"], ["stg_quickbooks__refund_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account which the refund is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.157214, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as TEXT) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id, \n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_item_tmp')),\n staging_columns=get_bundle_item_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle_item.sql", "original_file_path": "models/stg_quickbooks__bundle_item.sql", "name": "stg_quickbooks__bundle_item", "alias": "stg_quickbooks__bundle_item", "checksum": {"name": "sha256", "checksum": "c5e85a89debd33e5f789ef58fa05a1bf931b63a0451c0ab7d8f6b0b565895a4d"}, "tags": [], "refs": [["stg_quickbooks__bundle_item_tmp"], ["stg_quickbooks__bundle_item_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing all bundle and item combinations.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bunlde and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle_item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.095532, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n item_quantity\n \n as \n \n item_quantity\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as TEXT) as bundle_id,\n cast(item_id as TEXT) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_tmp')),\n staging_columns=get_credit_memo_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo.sql", "original_file_path": "models/stg_quickbooks__credit_memo.sql", "name": "stg_quickbooks__credit_memo", "alias": "stg_quickbooks__credit_memo", "checksum": {"name": "sha256", "checksum": "3757765d000c8762afea93869ab1ba6c3d5f22574c7b3d90cd91f4ecb894f85d"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_tmp"], ["stg_quickbooks__credit_memo_tmp"]], "sources": [], "metrics": [], "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier for a credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.104243, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remaining_credit\n \n as \n \n remaining_credit\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as credit_memo_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as TEXT) as class_id,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_line_tmp')),\n staging_columns=get_sales_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt_line.sql", "original_file_path": "models/stg_quickbooks__sales_receipt_line.sql", "name": "stg_quickbooks__sales_receipt_line", "alias": "stg_quickbooks__sales_receipt_line", "checksum": {"name": "sha256", "checksum": "050d2104a9f5c48e73b726f52bc9472987b3581193a9694bc6744324ba43b82b"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line_tmp"], ["stg_quickbooks__sales_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.16286, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as TEXT) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_tmp')),\n staging_columns=get_sales_receipt_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt.sql", "original_file_path": "models/stg_quickbooks__sales_receipt.sql", "name": "stg_quickbooks__sales_receipt", "alias": "stg_quickbooks__sales_receipt", "checksum": {"name": "sha256", "checksum": "42e250594a269ed1d23ffcce0276c23ce7304ebaf20e55336607dcda12c46dae"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_tmp"], ["stg_quickbooks__sales_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account to which payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the sale was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the sold to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.165838, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as sales_receipt_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_linked_txn_tmp')),\n staging_columns=get_invoice_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_linked_txn.sql", "original_file_path": "models/stg_quickbooks__invoice_linked_txn.sql", "name": "stg_quickbooks__invoice_linked_txn", "alias": "stg_quickbooks__invoice_linked_txn", "checksum": {"name": "sha256", "checksum": "f2b779facddf42a3e62603a1254b1503c2b8a8f52dd69a27ed8a14625c1c5953"}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn_tmp"], ["stg_quickbooks__invoice_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1194692, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n charge_credit_id\n \n as \n \n charge_credit_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n reimburse_charge_id\n \n as \n \n reimburse_charge_id\n \n, \n \n \n statement_charge_id\n \n as \n \n statement_charge_id\n \n, \n \n \n time_activity_id\n \n as \n \n time_activity_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n cast(payment_id as TEXT) as payment_id,\n cast(estimate_id as TEXT) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_tmp')),\n staging_columns=get_invoice_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice.sql", "original_file_path": "models/stg_quickbooks__invoice.sql", "name": "stg_quickbooks__invoice", "alias": "stg_quickbooks__invoice", "checksum": {"name": "sha256", "checksum": "6d5a6ee2afa37a3567700cccf5831e3f27446303711dfaab707579d6c3ae4082"}, "tags": [], "refs": [["stg_quickbooks__invoice_tmp"], ["stg_quickbooks__invoice_tmp"]], "sources": [], "metrics": [], "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer reference is associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class to which the invoice is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1292648, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allow_ipnpayment\n \n as \n \n allow_ipnpayment\n \n, \n \n \n allow_online_achpayment\n \n as \n \n allow_online_achpayment\n \n, \n \n \n allow_online_credit_card_payment\n \n as \n \n allow_online_credit_card_payment\n \n, \n \n \n allow_online_payment\n \n as \n \n allow_online_payment\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n billing_bcc_email\n \n as \n \n billing_bcc_email\n \n, \n \n \n billing_cc_email\n \n as \n \n billing_cc_email\n \n, \n \n \n billing_email\n \n as \n \n billing_email\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n custom_sales_rep\n \n as \n \n custom_sales_rep\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit\n \n as \n \n deposit\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as invoice_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n cast(billing_address_id as TEXT) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as TEXT) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_tmp')),\n staging_columns=get_bill_payment_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment.sql", "original_file_path": "models/stg_quickbooks__bill_payment.sql", "name": "stg_quickbooks__bill_payment", "alias": "stg_quickbooks__bill_payment", "checksum": {"name": "sha256", "checksum": "20561d9a7ab619d2b9872cdb42a90fc7ac99f8eb10715a5ab068f9856fbeb3b5"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_tmp"], ["stg_quickbooks__bill_payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to a Department object specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.0913112, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n check_bank_account_id\n \n as \n \n check_bank_account_id\n \n, \n \n \n check_print_status\n \n as \n \n check_print_status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_account_id\n \n as \n \n credit_card_account_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n pay_type\n \n as \n \n pay_type\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_bill_payment\n \n as \n \n process_bill_payment\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bill_payment_id,\n cast(check_bank_account_id as TEXT) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as TEXT) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_bundle_tmp')),\n staging_columns=get_invoice_line_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line_bundle.sql", "original_file_path": "models/stg_quickbooks__invoice_line_bundle.sql", "name": "stg_quickbooks__invoice_line_bundle", "alias": "stg_quickbooks__invoice_line_bundle", "checksum": {"name": "sha256", "checksum": "0f971477ce0e36654a8571afaa3c4de0ca048b529a182bd4d63aa79874676719"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle_tmp"], ["stg_quickbooks__invoice_line_bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line_bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.125773, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n discount_amount\n \n as \n \n discount_amount\n \n, \n \n \n discount_rate\n \n as \n \n discount_rate\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n invoice_line_index\n \n as \n \n invoice_line_index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n line_num\n \n as \n \n line_num\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n service_date\n \n as \n \n service_date\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n cast(class_id as TEXT) as class_id,\n description,\n amount,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(item_id as TEXT) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as TEXT) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "raw_code": "with base as (\n select *\n from {{ ref('stg_quickbooks__account_tmp') }}\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as account_id,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt.type_string() }}) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__account.sql", "original_file_path": "models/stg_quickbooks__account.sql", "name": "stg_quickbooks__account", "alias": "stg_quickbooks__account", "checksum": {"name": "sha256", "checksum": "c363c2c2ed0bd1cdb52064560957c75ad004c3e727f72b5b1bc361e9d8ccf37a"}, "tags": [], "refs": [["stg_quickbooks__account_tmp"], ["stg_quickbooks__account_tmp"]], "sources": [], "metrics": [], "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"account_id": {"name": "account_id", "description": "Unique identifier for an account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__account.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.080798, "compiled_code": "with base as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\"\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n account_sub_type\n \n as \n \n account_sub_type\n \n, \n \n \n account_type\n \n as \n \n account_type\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_sub_accounts\n \n as \n \n balance_with_sub_accounts\n \n, \n \n \n classification\n \n as \n \n classification\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_account_id\n \n as \n \n parent_account_id\n \n, \n \n \n sub_account\n \n as \n \n sub_account\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as account_id,\n cast(account_number as TEXT) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as TEXT) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_tmp')),\n staging_columns=get_payment_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment.sql", "original_file_path": "models/stg_quickbooks__payment.sql", "name": "stg_quickbooks__payment", "alias": "stg_quickbooks__payment", "checksum": {"name": "sha256", "checksum": "f8b0ad9217d505ec03b1868643d078257992cf4dc4a1b524cab1bc454aeb4a27"}, "tags": [], "refs": [["stg_quickbooks__payment_tmp"], ["stg_quickbooks__payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "Identifies the account for obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to a customer or job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1413279, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_payment\n \n as \n \n process_payment\n \n, \n \n \n receivable_account_id\n \n as \n \n receivable_account_id\n \n, \n \n \n reference_number\n \n as \n \n reference_number\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n unapplied_amount\n \n as \n \n unapplied_amount\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as TEXT) as receivable_account_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_line_tmp')),\n staging_columns=get_estimate_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate_line.sql", "original_file_path": "models/stg_quickbooks__estimate_line.sql", "name": "stg_quickbooks__estimate_line", "alias": "stg_quickbooks__estimate_line", "checksum": {"name": "sha256", "checksum": "08e406854edfa3b633a1c7b434b2ee9e010a4e6c1bc49de7a37ef44c8d277451"}, "tags": [], "refs": [["stg_quickbooks__estimate_line_tmp"], ["stg_quickbooks__estimate_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Reference to the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.118377, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as TEXT) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_linked_txn_tmp')),\n staging_columns=get_bill_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_linked_txn.sql", "original_file_path": "models/stg_quickbooks__bill_linked_txn.sql", "name": "stg_quickbooks__bill_linked_txn", "alias": "stg_quickbooks__bill_linked_txn", "checksum": {"name": "sha256", "checksum": "aa0410b4e6baafc2e21269e6857ef88e84961b061e5007b0a7bb117c314f682d"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment id record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.086398, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(bill_payment_id as TEXT) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__address_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__address_tmp')),\n staging_columns=get_address_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__address.sql", "original_file_path": "models/stg_quickbooks__address.sql", "name": "stg_quickbooks__address", "alias": "stg_quickbooks__address", "checksum": {"name": "sha256", "checksum": "df30cdfedd8bc9f3eb2e7e7e62f55f3c1d4e1ac0a53012e4e2b567c8d4f34d63"}, "tags": [], "refs": [["stg_quickbooks__address_tmp"], ["stg_quickbooks__address_tmp"]], "sources": [], "metrics": [], "description": "Table containing address details.", "columns": {"address_id": {"name": "address_id", "description": "Unique identifier for an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_1": {"name": "address_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_2": {"name": "address_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__address.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.082495, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_sub_division_code\n \n as \n \n country_sub_division_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n line_1\n \n as \n \n line_1\n \n, \n \n \n line_2\n \n as \n \n line_2\n \n, \n \n \n line_3\n \n as \n \n line_3\n \n, \n \n \n line_4\n \n as \n \n line_4\n \n, \n \n \n line_5\n \n as \n \n line_5\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n postal_code\n \n as \n \n postal_code\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_tmp')),\n staging_columns=get_bill_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill.sql", "original_file_path": "models/stg_quickbooks__bill.sql", "name": "stg_quickbooks__bill", "alias": "stg_quickbooks__bill", "checksum": {"name": "sha256", "checksum": "fc4dc80f5295a1755ea41bcfd621db97343c27e09c1646d98c1d04c2cc30f418"}, "tags": [], "refs": [["stg_quickbooks__bill_tmp"], ["stg_quickbooks__bill_tmp"]], "sources": [], "metrics": [], "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of all bill line items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id of the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.094614, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as TEXT) as bill_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as TEXT) as payable_account_id,\n total_amount,\n cast(vendor_id as TEXT) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_line_tmp')),\n staging_columns=get_bill_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_line.sql", "original_file_path": "models/stg_quickbooks__bill_line.sql", "name": "stg_quickbooks__bill_line", "alias": "stg_quickbooks__bill_line", "checksum": {"name": "sha256", "checksum": "d541cef41b0a6505a9ac44d9317a77d9b6addf43cb083219fb9c92a2c793f401"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The id of the account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.0854661, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_tmp')),\n staging_columns=get_journal_entry_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry.sql", "original_file_path": "models/stg_quickbooks__journal_entry.sql", "name": "stg_quickbooks__journal_entry", "alias": "stg_quickbooks__journal_entry", "checksum": {"name": "sha256", "checksum": "4f62753998ceb5f5764a9fba39a9fbd9fb87a16abf35090e50f2dd18eac58346"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_tmp"], ["stg_quickbooks__journal_entry_tmp"]], "sources": [], "metrics": [], "description": "Table containing journal entry transactions.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the journal entry was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1372008, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adjustment\n \n as \n \n adjustment\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as TEXT) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_tmp')),\n staging_columns=get_refund_receipt_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt.sql", "original_file_path": "models/stg_quickbooks__refund_receipt.sql", "name": "stg_quickbooks__refund_receipt", "alias": "stg_quickbooks__refund_receipt", "checksum": {"name": "sha256", "checksum": "5cd054048b45bd2245f33de53658e58c23bf8eabb8e4cfdcc096c915a977a834"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_tmp"], ["stg_quickbooks__refund_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account from which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1601331, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n check_payment_account_number\n \n as \n \n check_payment_account_number\n \n, \n \n \n check_payment_bank_name\n \n as \n \n check_payment_bank_name\n \n, \n \n \n check_payment_check_number\n \n as \n \n check_payment_check_number\n \n, \n \n \n check_payment_name_on_account\n \n as \n \n check_payment_name_on_account\n \n, \n \n \n check_payment_status\n \n as \n \n check_payment_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as refund_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(class_id as TEXT) as class_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_line_tmp')),\n staging_columns=get_deposit_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt.type_string() }}) as deposit_account_id,\n cast(deposit_class_id as {{ dbt.type_string() }}) as deposit_class_id,\n cast(deposit_customer_id as {{ dbt.type_string() }}) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit_line.sql", "original_file_path": "models/stg_quickbooks__deposit_line.sql", "name": "stg_quickbooks__deposit_line", "alias": "stg_quickbooks__deposit_line", "checksum": {"name": "sha256", "checksum": "f2f457f0503a22ec51d606aab2156f7534091b31840927c84bb5fc7a2d34c838"}, "tags": [], "refs": [["stg_quickbooks__deposit_line_tmp"], ["stg_quickbooks__deposit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class which the deposit line record is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "Account id of the account which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Customer id of the customer which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1105652, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n deposit_account_id\n \n as \n \n deposit_account_id\n \n, \n \n \n deposit_check_number\n \n as \n \n deposit_check_number\n \n, \n \n \n deposit_class_id\n \n as \n \n deposit_class_id\n \n, \n \n \n deposit_customer_id\n \n as \n \n deposit_customer_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n deposit_payment_method_id\n \n as \n \n deposit_payment_method_id\n \n, \n \n \n deposit_tax_applicable_on\n \n as \n \n deposit_tax_applicable_on\n \n, \n \n \n deposit_tax_code_id\n \n as \n \n deposit_tax_code_id\n \n, \n \n \n deposit_transaction_type\n \n as \n \n deposit_transaction_type\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n detail_type\n \n as \n \n detail_type\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n, \n \n \n refund_receipt_id\n \n as \n \n refund_receipt_id\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n transfer_id\n \n as \n \n transfer_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as TEXT) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as TEXT) as deposit_account_id,\n cast(deposit_class_id as TEXT) as deposit_class_id,\n cast(deposit_customer_id as TEXT) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_tmp')),\n staging_columns=get_vendor_credit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit.sql", "original_file_path": "models/stg_quickbooks__vendor_credit.sql", "name": "stg_quickbooks__vendor_credit", "alias": "stg_quickbooks__vendor_credit", "checksum": {"name": "sha256", "checksum": "bd2e5efc709f19666acabd4fdd2483c1013d05078dca5ff4ffb8a1975a4a9978"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_tmp"], ["stg_quickbooks__vendor_credit_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the vendor credit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Specifies to which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.17364, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_credit_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as TEXT) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_line_tmp')),\n staging_columns=get_vendor_credit_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit_line.sql", "original_file_path": "models/stg_quickbooks__vendor_credit_line.sql", "name": "stg_quickbooks__vendor_credit_line", "alias": "stg_quickbooks__vendor_credit_line", "checksum": {"name": "sha256", "checksum": "44764c7cbfb920e4b4c187299856d960ffdb9408d2e8dabc29c326c4c5e9f3c9"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line_tmp"], ["stg_quickbooks__vendor_credit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": [], "test": ["not_null"]}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account credited for the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Customer reference for the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Customer reference for the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.170759, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as TEXT) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_tmp')),\n staging_columns=get_deposit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit.sql", "original_file_path": "models/stg_quickbooks__deposit.sql", "name": "stg_quickbooks__deposit", "alias": "stg_quickbooks__deposit", "checksum": {"name": "sha256", "checksum": "3a8f91dd22dbe918fccedae73ae5a3e2db38a6344ac0a39d885ef49b149c89ce"}, "tags": [], "refs": [["stg_quickbooks__deposit_tmp"], ["stg_quickbooks__deposit_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifies the account to be used for this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the deposit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.112784, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n cash_back_account_id\n \n as \n \n cash_back_account_id\n \n, \n \n \n cash_back_amount\n \n as \n \n cash_back_amount\n \n, \n \n \n cash_back_memo\n \n as \n \n cash_back_memo\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as deposit_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__item_tmp')),\n staging_columns=get_item_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt.type_string() }}) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as {{ dbt.type_string() }}) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__item.sql", "original_file_path": "models/stg_quickbooks__item.sql", "name": "stg_quickbooks__item", "alias": "stg_quickbooks__item", "checksum": {"name": "sha256", "checksum": "049dfdf58d6ee3ac495bb7f41562a880562a55f818a0fdfda3a14574f8dfc7ce"}, "tags": [], "refs": [["stg_quickbooks__item_tmp"], ["stg_quickbooks__item_tmp"]], "sources": [], "metrics": [], "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"item_id": {"name": "item_id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the item was created within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the posting account, that is, the account that records the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the Inventory Asset account that tracks the current value of the inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.132222, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n asset_account_id\n \n as \n \n asset_account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n \n \n inventory_start_date\n \n as \n \n inventory_start_date\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_item_id\n \n as \n \n parent_item_id\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n purchase_description\n \n as \n \n purchase_description\n \n, \n \n \n purchase_tax_code_id\n \n as \n \n purchase_tax_code_id\n \n, \n \n \n purchase_tax_included\n \n as \n \n purchase_tax_included\n \n, \n \n \n quantity_on_hand\n \n as \n \n quantity_on_hand\n \n, \n \n \n sales_tax_code_id\n \n as \n \n sales_tax_code_id\n \n, \n \n \n sales_tax_included\n \n as \n \n sales_tax_included\n \n, \n \n \n stock_keeping_unit\n \n as \n \n stock_keeping_unit\n \n, \n \n \n sub_item\n \n as \n \n sub_item\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n track_quantity_on_hand\n \n as \n \n track_quantity_on_hand\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as TEXT) as income_account_id,\n cast(asset_account_id as TEXT) as asset_account_id,\n cast(expense_account_id as TEXT) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as TEXT) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__customer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__customer.sql", "original_file_path": "models/stg_quickbooks__customer.sql", "name": "stg_quickbooks__customer", "alias": "stg_quickbooks__customer", "checksum": {"name": "sha256", "checksum": "b896108565ae7c6d917878e5c8c6dd77f3fa89e61e4bda773ab8f06dc77ad7f3"}, "tags": [], "refs": [["stg_quickbooks__customer_tmp"], ["stg_quickbooks__customer_tmp"]], "sources": [], "metrics": [], "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__customer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.1066759, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone_number\n \n as \n \n alternate_phone_number\n \n, \n \n \n ar_account_id\n \n as \n \n ar_account_id\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_jobs\n \n as \n \n balance_with_jobs\n \n, \n \n \n bill_address_id\n \n as \n \n bill_address_id\n \n, \n \n \n bill_with_parent\n \n as \n \n bill_with_parent\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n default_tax_code_id\n \n as \n \n default_tax_code_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job\n \n as \n \n job\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_number\n \n as \n \n mobile_number\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n open_balance_date\n \n as \n \n open_balance_date\n \n, \n \n \n parent_customer_id\n \n as \n \n parent_customer_id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n phone_number\n \n as \n \n phone_number\n \n, \n \n \n preferred_delivery_method\n \n as \n \n preferred_delivery_method\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n resale_number\n \n as \n \n resale_number\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_exemption_reason_id\n \n as \n \n tax_exemption_reason_id\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n website\n \n as \n \n website\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "name": "stg_quickbooks__vendor_credit_tmp", "alias": "stg_quickbooks__vendor_credit_tmp", "checksum": {"name": "sha256", "checksum": "135d5b0865e271c5d29187680f97b226b40b1c6c1e618f9d0818f0b7122dcfe6"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.73245, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "name": "stg_quickbooks__refund_receipt_line_tmp", "alias": "stg_quickbooks__refund_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "b35b79d236200ea1e2d71df28d1d32dbc3d8ce93eb0c97fc2d502997e133055e"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.748851, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_line_tmp.sql", "name": "stg_quickbooks__estimate_line_tmp", "alias": "stg_quickbooks__estimate_line_tmp", "checksum": {"name": "sha256", "checksum": "e6b43f9598030c138d67898959d3bcc06d4b571b16bd790974c5bda4e90dfe18"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.7540312, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "name": "stg_quickbooks__credit_memo_line_tmp", "alias": "stg_quickbooks__credit_memo_line_tmp", "checksum": {"name": "sha256", "checksum": "877429c46bb2ccc5558c8577eda2444270a82e5e7717aec418fba450db743924"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.7643762, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_tmp.sql", "name": "stg_quickbooks__journal_entry_tmp", "alias": "stg_quickbooks__journal_entry_tmp", "checksum": {"name": "sha256", "checksum": "4cc1a32910c8e5255f3d3bbe4578fb9f562e3f2fb56eff69e22f7f69b11fa32e"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.769537, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line_bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line_bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "name": "stg_quickbooks__invoice_line_bundle_tmp", "alias": "stg_quickbooks__invoice_line_bundle_tmp", "checksum": {"name": "sha256", "checksum": "a2dc8302a76014fdede73acb185944cb3901457f568da00b9400dbadd61a4781"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line_bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.7748108, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_tmp.sql", "name": "stg_quickbooks__payment_tmp", "alias": "stg_quickbooks__payment_tmp", "checksum": {"name": "sha256", "checksum": "afe62d4646d63e7fc44dbe73ad04eb3af6f94e1fd98953cfdd5a5fae5464818f"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.780826, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_tmp.sql", "name": "stg_quickbooks__invoice_line_tmp", "alias": "stg_quickbooks__invoice_line_tmp", "checksum": {"name": "sha256", "checksum": "ec89045532e817aed8e8dc0a09e66f53a2c88aba038c7dcbbb51f6875d044f5d"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.785996, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_line_tmp.sql", "name": "stg_quickbooks__deposit_line_tmp", "alias": "stg_quickbooks__deposit_line_tmp", "checksum": {"name": "sha256", "checksum": "2a560b4173366349cc88aa5c091b2f10c61f60c0bfe73b3b0f673877627002a4"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.7910862, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.customer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='customer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='customer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__customer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__customer_tmp.sql", "name": "stg_quickbooks__customer_tmp", "alias": "stg_quickbooks__customer_tmp", "checksum": {"name": "sha256", "checksum": "2125a8e00af7bd53a1c2d0b414a756fa128457d4ecda78c77f813ba133a81325"}, "tags": [], "refs": [], "sources": [["quickbooks", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__customer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.7961862, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_line_tmp.sql", "name": "stg_quickbooks__bill_line_tmp", "alias": "stg_quickbooks__bill_line_tmp", "checksum": {"name": "sha256", "checksum": "8f06919fa5048f09e127332ef0675a7fac11b3d0787e6672612010db4a7f6193"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8010461, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__item_tmp.sql", "name": "stg_quickbooks__item_tmp", "alias": "stg_quickbooks__item_tmp", "checksum": {"name": "sha256", "checksum": "0db4c37e6bea881ee6f85348bc069b1ba7d74ce4fd550ed0ac643d4ef780ab79"}, "tags": [], "refs": [], "sources": [["quickbooks", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.806184, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='account', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='account',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__account_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__account_tmp.sql", "name": "stg_quickbooks__account_tmp", "alias": "stg_quickbooks__account_tmp", "checksum": {"name": "sha256", "checksum": "1157f7c518bf6f5e15bd9080fe829b06b7e3ddf59ea3e3a06164fe453e0def85"}, "tags": [], "refs": [], "sources": [["quickbooks", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__account_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.811719, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"account_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "name": "stg_quickbooks__vendor_credit_line_tmp", "alias": "stg_quickbooks__vendor_credit_line_tmp", "checksum": {"name": "sha256", "checksum": "38b9e05b27c7db52aa41fa740caa437895743d5de562b476917f75b55277debc"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.821858, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.department"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='department', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='department',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__department_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__department_tmp.sql", "name": "stg_quickbooks__department_tmp", "alias": "stg_quickbooks__department_tmp", "checksum": {"name": "sha256", "checksum": "ea310c765f23c51e6a2ef7bef84749f2a3fa89ac06b768173788080096354a00"}, "tags": [], "refs": [], "sources": [["quickbooks", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__department_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8269598, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"department_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_tmp.sql", "name": "stg_quickbooks__bundle_tmp", "alias": "stg_quickbooks__bundle_tmp", "checksum": {"name": "sha256", "checksum": "722d0a1b955a8c123522a87f6b97c8770d00365b98d1fc057d1724e9c5c06667"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.832099, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle_item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle_item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_item_tmp.sql", "name": "stg_quickbooks__bundle_item_tmp", "alias": "stg_quickbooks__bundle_item_tmp", "checksum": {"name": "sha256", "checksum": "29e60e9dfb0da56786a41a51e1f1d441ae47d0e7b43727f8a31af463d6daf588"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle_item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.837323, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "name": "stg_quickbooks__bill_payment_line_tmp", "alias": "stg_quickbooks__bill_payment_line_tmp", "checksum": {"name": "sha256", "checksum": "914efeefeb70efc2b64e7bae87b298f93f419a08b170e06c3efb825f8eca1968"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.848387, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_tmp.sql", "name": "stg_quickbooks__estimate_tmp", "alias": "stg_quickbooks__estimate_tmp", "checksum": {"name": "sha256", "checksum": "bd7a335748a13aae584ae7ee6a45b8565299cf7a48a0495be863920c797d83c6"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8534982, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_tmp.sql", "name": "stg_quickbooks__purchase_tmp", "alias": "stg_quickbooks__purchase_tmp", "checksum": {"name": "sha256", "checksum": "1ad34ab2fb967805e5387b4dcf01716431d1008430faee53027f043466c3896d"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.858777, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_tmp.sql", "name": "stg_quickbooks__credit_memo_tmp", "alias": "stg_quickbooks__credit_memo_tmp", "checksum": {"name": "sha256", "checksum": "1bbda612f739f980fcf68562c4efbd39bbae1e1a37713c7bd5c4deecc24660f0"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8636632, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_tmp.sql", "name": "stg_quickbooks__bill_tmp", "alias": "stg_quickbooks__bill_tmp", "checksum": {"name": "sha256", "checksum": "b579ba85c94cfa32fdb6fe9e65c2ee8e804c21417af340278c7370a7b9a31f2c"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8688262, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='transfer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='transfer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__transfer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__transfer_tmp.sql", "name": "stg_quickbooks__transfer_tmp", "alias": "stg_quickbooks__transfer_tmp", "checksum": {"name": "sha256", "checksum": "e46216a5c817a4e27af2ac9a936e7e21dc89127c20a0775d7e21c63cbdb4e173"}, "tags": [], "refs": [], "sources": [["quickbooks", "transfer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__transfer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8748858, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='vendor', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_tmp.sql", "name": "stg_quickbooks__vendor_tmp", "alias": "stg_quickbooks__vendor_tmp", "checksum": {"name": "sha256", "checksum": "e106f714c2f307d3d50e99e8bd61cd4c03e96002006ce67191e182f2e1b19f7a"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.880088, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_line_tmp.sql", "name": "stg_quickbooks__purchase_line_tmp", "alias": "stg_quickbooks__purchase_line_tmp", "checksum": {"name": "sha256", "checksum": "39c7787a6481961b9d80bf3173afd5ece106fdb67bad2edbd69d436c6bbc3aca"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.8849869, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.address"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='address', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='address',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__address_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__address_tmp.sql", "name": "stg_quickbooks__address_tmp", "alias": "stg_quickbooks__address_tmp", "checksum": {"name": "sha256", "checksum": "39a9820afa24c94b220f35fa72a0452806f5cdb828e5eb70583cded4ceb71454"}, "tags": [], "refs": [], "sources": [["quickbooks", "address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.889693, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"address_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_line_tmp.sql", "name": "stg_quickbooks__payment_line_tmp", "alias": "stg_quickbooks__payment_line_tmp", "checksum": {"name": "sha256", "checksum": "333d6ce9e2621c99b011bfbb668c38c1fe20d45a9e155278371ad1c5c19fffa3"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.894773, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "name": "stg_quickbooks__refund_receipt_tmp", "alias": "stg_quickbooks__refund_receipt_tmp", "checksum": {"name": "sha256", "checksum": "274dbd883a2adaf7559f8bc8812a558a95b52329f18218fe5494c63b7abcf7a5"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.900699, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "name": "stg_quickbooks__sales_receipt_tmp", "alias": "stg_quickbooks__sales_receipt_tmp", "checksum": {"name": "sha256", "checksum": "bb64ce4afbe0e70f70d7c9dae8a57423d5ee7dc2326107fa4c5d4371ca911fce"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.905857, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_tmp.sql", "name": "stg_quickbooks__bill_payment_tmp", "alias": "stg_quickbooks__bill_payment_tmp", "checksum": {"name": "sha256", "checksum": "f956078b3ec8d833f517f431c67509fe75f494b11a6fa4a735b85d232453dba4"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.910955, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "name": "stg_quickbooks__journal_entry_line_tmp", "alias": "stg_quickbooks__journal_entry_line_tmp", "checksum": {"name": "sha256", "checksum": "bcba66ad0358646e9993b39ecdd17c69130874858cb027ed198364bb77a3d283"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.9160728, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_tmp.sql", "name": "stg_quickbooks__deposit_tmp", "alias": "stg_quickbooks__deposit_tmp", "checksum": {"name": "sha256", "checksum": "e1f40c890b39fe0dd1bcec03c90b403c4e77015c805426b90ca3c3b1c93eb3b2"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.9212558, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "name": "stg_quickbooks__bill_linked_txn_tmp", "alias": "stg_quickbooks__bill_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "2583068246d6617f1e99a3b11589211fb7cb90f66035526cee17be299ba826ec"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.9264052, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "name": "stg_quickbooks__invoice_linked_txn_tmp", "alias": "stg_quickbooks__invoice_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "813acd5c2445c8886b2aa20afb05c5dc8165b9d38b3081b12a879e67abc67520"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.932374, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "name": "stg_quickbooks__sales_receipt_line_tmp", "alias": "stg_quickbooks__sales_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "87037987bd00e48e0a7fe6300511bcf7c80031e6fe4ba3b77902a7baa5752132"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.965997, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_tmp.sql", "name": "stg_quickbooks__invoice_tmp", "alias": "stg_quickbooks__invoice_tmp", "checksum": {"name": "sha256", "checksum": "c901088fa713bc1e59f7299c7c7d6ac7aea71b7c97e5a2821fd8efd33214bfc1"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.976361, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "estimate_id"], "model": "{{ get_where_subquery(ref('quickbooks__ap_ar_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__ap_ar_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id", "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__ap_ar_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d"}, "created_at": 1676347365.04293, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, estimate_id\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\"\n group by transaction_id, source_relation, estimate_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__ap_ar_enhanced"}, "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "unique_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "unique_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "unique_quickbooks__cash_flow_statement_account_unique_id", "alias": "unique_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/unique_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.0523598, "compiled_code": "\n \n \n\nselect\n account_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is not null\ngroup by account_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "not_null_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "not_null_quickbooks__cash_flow_statement_account_unique_id", "alias": "not_null_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.053729, "compiled_code": "\n \n \n\n\n\nselect account_unique_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "transaction_line_id", "item_id"], "model": "{{ get_where_subquery(ref('quickbooks__expenses_sales_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__expenses_sales_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id", "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__expenses_sales_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938"}, "created_at": 1676347365.054986, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, transaction_line_id, item_id\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\"\n group by transaction_id, source_relation, transaction_line_id, item_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__expenses_sales_enhanced"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["unique_id", "source_relation"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation", "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0"}, "created_at": 1676347365.058957, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n unique_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n group by unique_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "period_first_day"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger_by_period')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day", "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782"}, "created_at": 1676347365.0624309, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, period_first_day\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n group by account_id, class_id, source_relation, period_first_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger_by_period"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "calendar_date"], "model": "{{ get_where_subquery(ref('quickbooks__profit_and_loss')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__profit_and_loss"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date", "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__profit_and_loss"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381"}, "created_at": 1676347365.066544, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, calendar_date\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\"\n group by account_id, class_id, source_relation, calendar_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__profit_and_loss"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation", "calendar_date", "class_id"], "model": "{{ get_where_subquery(ref('quickbooks__balance_sheet')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id", "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827"}, "created_at": 1676347365.070385, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation, calendar_date, class_id\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n group by account_id, source_relation, calendar_date, class_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__balance_sheet"}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__account_account_id", "alias": "not_null_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.176936, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Asset", "Equity", "Expense", "Liability", "Revenue"], "column_name": "classification", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9"}, "created_at": 1676347365.1782532, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n classification as value_field,\n count(*) as n_records\n\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by classification\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Asset','Equity','Expense','Liability','Revenue'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "classification", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29"}, "created_at": 1676347365.184777, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by account_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "address_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__address_address_id", "alias": "not_null_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__address_address_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.188212, "compiled_code": "\n \n \n\n\n\nselect address_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\nwhere address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id", "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["address_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation", "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772"}, "created_at": 1676347365.189452, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n address_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n group by address_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_line_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_line_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_line_bill_id", "alias": "not_null_stg_quickbooks__bill_line_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_line_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.192884, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1"}, "created_at": 1676347365.194122, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n group by bill_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.1977558, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.199147, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_line_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.2003899, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614"}, "created_at": 1676347365.201615, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n group by bill_payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.2053142, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec"}, "created_at": 1676347365.206552, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n group by bill_payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_bill_id", "alias": "not_null_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.20998, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation", "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4"}, "created_at": 1676347365.211205, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n group by bill_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle_item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_item_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_item_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_item_bundle_id", "alias": "not_null_stg_quickbooks__bundle_item_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle_item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_item_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.2146199, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle_item"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_bundle_id", "alias": "not_null_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.215967, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bundle_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation", "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727"}, "created_at": 1676347365.2174249, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bundle_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n group by bundle_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_line_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.220793, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858"}, "created_at": 1676347365.2221801, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n group by credit_memo_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.225832, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation", "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083"}, "created_at": 1676347365.2271621, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n group by credit_memo_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__customer_customer_id", "alias": "not_null_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__customer_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.2311912, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation", "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a"}, "created_at": 1676347365.232469, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n group by customer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_line_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_line_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_line_deposit_id", "alias": "not_null_stg_quickbooks__deposit_line_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_line_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.235979, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b"}, "created_at": 1676347365.237222, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n group by deposit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_deposit_id", "alias": "not_null_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.240866, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation", "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb"}, "created_at": 1676347365.242093, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n group by deposit_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_estimate_id", "alias": "not_null_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.245518, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation", "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68"}, "created_at": 1676347365.24676, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n group by estimate_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_line_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_line_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_line_estimate_id", "alias": "not_null_stg_quickbooks__estimate_line_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_line_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.250328, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a"}, "created_at": 1676347365.251573, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\n group by estimate_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "alias": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.255237, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.256617, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0"}, "created_at": 1676347365.257925, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n group by invoice_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.261628, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "invoice_line_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation", "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a"}, "created_at": 1676347365.2628732, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, invoice_line_index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n group by invoice_id, index, invoice_line_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_invoice_id", "alias": "not_null_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.266728, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation", "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c"}, "created_at": 1676347365.2679749, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n group by invoice_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__item_item_id", "alias": "not_null_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__item_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.27142, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation", "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5"}, "created_at": 1676347365.272655, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n item_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n group by item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_line_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.276302, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Credit", "Debit"], "column_name": "posting_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55"}, "created_at": 1676347365.277546, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n posting_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by posting_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Credit','Debit'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "posting_type", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["journal_entry_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee"}, "created_at": 1676347365.2810152, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n journal_entry_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by journal_entry_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.285046, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_line_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_line_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_line_payment_id", "alias": "not_null_stg_quickbooks__payment_line_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_line_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.28628, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625"}, "created_at": 1676347365.287673, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n group by payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_payment_id", "alias": "not_null_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.291162, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557"}, "created_at": 1676347365.292539, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n group by payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_line_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_line_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_line_purchase_id", "alias": "not_null_stg_quickbooks__purchase_line_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_line_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.295958, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153"}, "created_at": 1676347365.297207, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n group by purchase_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_purchase_id", "alias": "not_null_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.300949, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Cash", "Check", "CreditCard"], "column_name": "payment_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216"}, "created_at": 1676347365.3022022, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n payment_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by payment_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Cash','Check','CreditCard'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_type", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation", "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563"}, "created_at": 1676347365.305855, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by purchase_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_line_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.309298, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943"}, "created_at": 1676347365.31055, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_linked_txn')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1"}, "created_at": 1676347365.31421, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.315496, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Open", "Closed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614"}, "created_at": 1676347365.3169122, "column_name": "status", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation", "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d"}, "created_at": 1676347365.320235, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_line_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.323679, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576"}, "created_at": 1676347365.3249228, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n group by refund_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.328558, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation", "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605"}, "created_at": 1676347365.329963, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n group by refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.333338, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899"}, "created_at": 1676347365.335049, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n group by sales_receipt_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.338685, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation", "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d"}, "created_at": 1676347365.3399308, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n group by sales_receipt_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transfer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__transfer_transfer_id", "alias": "not_null_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__transfer_transfer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.343343, "compiled_code": "\n \n \n\n\n\nselect transfer_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\nwhere transfer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id", "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transfer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233"}, "created_at": 1676347365.344586, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transfer_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n group by transfer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_credit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b"}, "created_at": 1676347365.348029, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_credit_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n group by vendor_credit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor_credit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "alias": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.3516521, "compiled_code": "\n \n \n\n\n\nselect vendor_credit_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\nwhere vendor_credit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id", "file_key_name": "models.stg_quickbooks__vendor_credit"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_vendor_id", "alias": "not_null_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.352884, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_quickbooks__vendor"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation", "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4"}, "created_at": 1676347365.354111, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n group by vendor_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "account", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "account_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"id": {"name": "id", "description": "Unique identifier of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_account": {"name": "sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"account_data\"", "created_at": 1676347365.472203}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "address", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing address details.", "columns": {"id": {"name": "id", "description": "Unique identifier of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_1": {"name": "line_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_2": {"name": "line_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"address_data\"", "created_at": 1676347365.4723148}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"", "created_at": 1676347365.4724119}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The \"Unique identifier of the bill payment id record.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"", "created_at": 1676347365.47249}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"", "created_at": 1676347365.472575}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"", "created_at": 1676347365.472665}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total \"Monetary amount of all bill line items.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"", "created_at": 1676347365.472797}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle_item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing all bundle and item combinations", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bundle and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"", "created_at": 1676347365.4729018}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"", "created_at": 1676347365.472996}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"fqn": ["quickbooks_source", "quickbooks", "credit_card_payment_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_card_payment_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_card_payment_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all credit card payment transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "The identifier of the account associated with the bank which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credit card which the payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_card_payment_txn_data\"", "created_at": 1676347365.473089}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"", "created_at": 1676347365.473183}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"", "created_at": 1676347365.4732711}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "customer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "customer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website url associated with the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"", "created_at": 1676347365.4733598}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "department", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "department_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_department": {"name": "sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"department_data\"", "created_at": 1676347365.473442}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class associated the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "The identifier of the account associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Reference to the customer associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"", "created_at": 1676347365.473523}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"id": {"name": "id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"", "created_at": 1676347365.4736052}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"id": {"name": "id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"", "created_at": 1676347365.4737558}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"", "created_at": 1676347365.473845}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"", "created_at": 1676347365.473923}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"", "created_at": 1676347365.474014}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line_bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for sales on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"", "created_at": 1676347365.474102}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"id": {"name": "id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"", "created_at": 1676347365.4741929}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the item within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "The identifier of the account associated with the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "The identifier of the account associated with the inventory asset that tracks its current value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "The identifier of the account associated used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"item_data\"", "created_at": 1676347365.474281}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"", "created_at": 1676347365.474365}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing journal entry transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjustment": {"name": "adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"", "created_at": 1676347365.474447}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"", "created_at": 1676347365.474527}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"id": {"name": "id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "The identifier of the account associated with obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with the deposit to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"", "created_at": 1676347365.474609}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"", "created_at": 1676347365.4746938}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase expenses.", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the applied purchase based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"", "created_at": 1676347365.474782}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase order.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_line_data\"", "created_at": 1676347365.4748979}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for purchase order records to respective bill and purchase objects.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_linked_txn_data\"", "created_at": 1676347365.4749749}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase orders (PO).", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_customer_type": {"name": "custom_customer_type", "description": "Custom field for customer type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "A message for the vendor. This text appears on the purchase order object sent to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction. This note does not appear on the purchase order to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_data\"", "created_at": 1676347365.475071}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"", "created_at": 1676347365.475156}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"id": {"name": "id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the refund receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"", "created_at": 1676347365.475244}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"", "created_at": 1676347365.475329}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"id": {"name": "id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with where payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated sales receipt to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"", "created_at": 1676347365.475414}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "transfer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "transfer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"id": {"name": "id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "The identifier of the account associated with where the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "The identifier of the account associated with where the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"", "created_at": 1676347365.475494}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"", "created_at": 1676347365.475583}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"", "created_at": 1676347365.47567}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_1099": {"name": "vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"", "created_at": 1676347365.475753}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.684476, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.68483, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6849852, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6851368, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6853151, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.687022, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.688022, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.695651, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.69637, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.696825, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6972659, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.697948, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.698482, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6987221, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6992939, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.700007, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.701248, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.701525, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.701968, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7023501, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.702945, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.703259, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.704094, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.704375, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.704531, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.705224, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7062762, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.70666, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.707575, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.712071, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.71237, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7131362, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.71378, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.715332, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.715616, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.715818, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.716008, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.716199, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.716779, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.717197, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.717623, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.718278, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7186491, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.723297, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7235599, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.723927, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.724986, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.725237, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7254899, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.727505, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.729573, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.734882, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.73529, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7355251, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7356439, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.735847, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.736002, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.736296, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.737521, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.737779, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.738126, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.738718, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7470348, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.749928, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.750619, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.751043, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.751629, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7521532, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.754273, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7550452, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.755968, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7562969, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.757389, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.763215, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.765494, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7658298, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.76688, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.767246, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.768146, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7691069, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.770336, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.770663, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.77092, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.77129, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.771544, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7719119, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.772175, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7725492, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.772815, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7730381, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.773507, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.780373, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7875211, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.789213, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.79088, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7920482, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.79557, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.796321, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.796575, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.797169, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.797739, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.801314, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8018298, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8021388, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.804255, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.804818, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.805043, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8052962, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.805656, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8101509, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.816637, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8179379, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8182669, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8189309, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.819221, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.819402, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8196008, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.81976, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.819983, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8201458, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.820812, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8210719, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8228638, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8235252, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.823839, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8246112, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.824973, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8253849, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.825999, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.826408, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8269708, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.827469, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8278852, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.828734, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.830802, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8317308, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.832157, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.834591, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.836234, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.837298, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.837621, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.83802, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.838122, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.838648, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.838872, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.839284, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8394492, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.839873, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8400168, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8406038, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.840839, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.84127, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.841378, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8418272, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8420238, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.842508, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8427851, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.843699, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.844259, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.844794, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8450181, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.845483, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.845672, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.846101, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.846323, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.846739, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8469539, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.847371, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8475142, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8479922, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.848209, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.848632, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.848773, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8500538, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.850272, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.850579, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.850786, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8510048, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.851212, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.85143, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.851674, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8518999, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.852106, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.852324, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8525188, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8527339, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8529348, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.853394, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.853575, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8539891, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.854132, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.854666, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.855028, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.855235, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.855996, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.856229, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.856682, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.857166, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.857342, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.85793, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.858264, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.858732, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.858913, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.859482, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.859738, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.859958, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8602061, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.860914, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.861121, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.861313, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8614552, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.861687, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.861793, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8620238, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.862247, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.862922, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8631942, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.863413, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.863965, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.868206, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.868437, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.868746, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.869153, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.869502, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.869955, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.870213, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.870503, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.870757, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.870974, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.871257, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.871661, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.872004, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.872802, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8732002, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.873395, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8736708, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.874341, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.874929, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.877144, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.877305, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.877534, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.87769, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.878161, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.878419, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8785548, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.878866, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.879124, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.879452, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.879713, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.880029, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.880977, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.881506, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.881858, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.882174, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.883733, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8846972, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.884932, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8852081, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.885438, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.885807, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.886482, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.888444, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8887959, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.88906, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.889271, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.889518, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.889859, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.890143, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.890552, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.890806, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8910332, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8932521, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.893555, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8939872, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.894239, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8947031, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.895023, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.895849, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8962078, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.897281, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.899286, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.89996, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.900589, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9011562, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9012501, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.902032, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.902349, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.902751, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.903133, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.903687, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9043882, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.905107, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.906122, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9066298, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.907087, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9085262, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.909945, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.911135, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9126358, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9135659, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.914042, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9151192, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.916343, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9170501, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.917683, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.918566, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.919231, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9200351, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.920578, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.921261, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.921987, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.92289, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.923787, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9245682, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.925048, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.925674, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.926172, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9270778, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9282272, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9294631, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.930751, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.931851, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.933105, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"unique_id": "macro.dbt_utils.test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.933888, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"unique_id": "macro.dbt_utils.default__test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9343019, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9386828, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.940904, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.94138, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.941617, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9423108, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.942774, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.943054, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9434829, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9437199, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.944642, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9458508, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9468338, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9476612, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.947992, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.948521, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.949033, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.949516, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.95051, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.951818, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.952969, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.953548, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9538078, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.954528, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.955515, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9567192, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.957363, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.957758, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.959466, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.961487, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.963294, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.965651, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"unique_id": "macro.dbt_utils.safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.966151, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"unique_id": "macro.dbt_utils.default__safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.966335, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.970474, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.97542, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.975934, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.976288, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9773178, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9776158, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.977895, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9781609, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9783869, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9786198, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.979229, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.979556, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.980148, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9809039, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.981438, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.981898, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.984194, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.984703, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9857879, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.986491, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9880419, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.99014, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.991628, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.992796, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9935, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.994509, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9964411, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.997083, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.99772, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.997993, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9986482, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.99948, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"unique_id": "macro.dbt_utils.generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0001888, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"unique_id": "macro.dbt_utils.default__generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.00111, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.00172, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.00191, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.002097, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"unique_id": "macro.dbt_utils.get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.002856, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"unique_id": "macro.dbt_utils.default__get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.003971, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.005413, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0057988, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.006597, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.00772, "supported_languages": null}, "macro.quickbooks.get_enabled_unioned_models": {"unique_id": "macro.quickbooks.get_enabled_unioned_models", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "macros/get_enabled_unioned_models.sql", "original_file_path": "macros/get_enabled_unioned_models.sql", "name": "get_enabled_unioned_models", "macro_sql": "{% macro get_enabled_unioned_models(unioned_models = [ \n 'bill',\n 'credit_memo',\n 'deposit',\n 'invoice',\n 'journal_entry',\n 'payment',\n 'refund_receipt',\n 'sales_receipt',\n 'transfer',\n 'vendor_credit']) %} \n\n{% set enabled_unioned_models = [] %}\n\n{{ enabled_unioned_models.append(ref('int_quickbooks__purchase_double_entry')) }}\n\n{% for unioned_model in unioned_models %} \n {% if var('using_' ~ unioned_model, True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__' ~ unioned_model ~ '_double_entry')) }}\n {% endif %}\n {% endfor %} \n \n{% if var('using_bill', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__bill_payment_double_entry')) }}\n{% endif %}\n\n{% if var('using_credit_card_payment_txn', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__credit_card_pymt_double_entry')) }}\n{% endif %}\n\n{{ return(enabled_unioned_models) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "This macro takes models from the `double_entry_transactions` folder and appends them together in an array of relations if these models are enabled. This will then be unioned together using `dbt_utils.union_relations` in the `quickbooks__general_ledger` model. `int_quickbooks__purchase_double_entry` is included by default. `int_quickbooks__bill_payment_double_entry` and `int_quickbooks__credit_card_pymt_double_entry` are appended separately because their `using_` variables do not match up like the other variables, which can't be modified.\n", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://macros/quickbooks_macros.yml", "arguments": [{"name": "unioned_models", "type": "list", "description": "List of strings referring to particular models to then be appended and eventually unioned if enabled."}, {"name": "enabled_unioned_models", "type": "list", "description": "List of relations of models that are enabled to eventually be unioned into a general ledger model."}], "created_at": 1676347364.999434, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0100741, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.011353, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0115788, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.011798, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.012025, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.01222, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0124428, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.013616, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.014575, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0160809, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.016431, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.016785, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.017202, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.017528, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0178921, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.018262, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0187788, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.018922, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.019058, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0191932, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0197701, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.020643, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.021779, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0224771, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.022658, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.02284, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.02302, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.023205, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.027051, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.027283, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0275111, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.027724, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.030178, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0313659, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.031569, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0319638, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.032365, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.032541, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.032714, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.032886, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.033622, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.034419, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0351648, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.035446, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0357492, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.036183, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.037809, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.043496, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.044, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.044599, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.046824, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0475898, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0484118, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.048626, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0488791, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.049124, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.04934, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.049549, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.050566, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.051934, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.052942, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.053165, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0533829, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.053601, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0538182, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.054057, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0544791, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0546181, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.054842, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.055796, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.057726, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.06112, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0632162, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.063671, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0638149, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0639539, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.064597, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.065234, "supported_languages": null}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_line_columns.sql", "original_file_path": "macros/get_deposit_line_columns.sql", "name": "get_deposit_line_columns", "macro_sql": "{% macro get_deposit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.068984, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_line_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_line_columns.sql", "original_file_path": "macros/get_vendor_credit_line_columns.sql", "name": "get_vendor_credit_line_columns", "macro_sql": "{% macro get_vendor_credit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0719628, "supported_languages": null}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "name": "get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.074978, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_linked_txn_columns.sql", "original_file_path": "macros/get_purchase_order_linked_txn_columns.sql", "name": "get_purchase_order_linked_txn_columns", "macro_sql": "{% macro get_purchase_order_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.076176, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_line_columns.sql", "original_file_path": "macros/get_sales_receipt_line_columns.sql", "name": "get_sales_receipt_line_columns", "macro_sql": "{% macro get_sales_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0799181, "supported_languages": null}, "macro.quickbooks_source.get_bill_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_bill_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_linked_txn_columns.sql", "original_file_path": "macros/get_bill_linked_txn_columns.sql", "name": "get_bill_linked_txn_columns", "macro_sql": "{% macro get_bill_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.080823, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_line_columns.sql", "original_file_path": "macros/get_bill_payment_line_columns.sql", "name": "get_bill_payment_line_columns", "macro_sql": "{% macro get_bill_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.083067, "supported_languages": null}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_transfer_columns.sql", "original_file_path": "macros/get_transfer_columns.sql", "name": "get_transfer_columns", "macro_sql": "{% macro get_transfer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.084844, "supported_languages": null}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_columns.sql", "original_file_path": "macros/get_purchase_columns.sql", "name": "get_purchase_columns", "macro_sql": "{% macro get_purchase_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.088763, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_line_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_line_columns.sql", "original_file_path": "macros/get_journal_entry_line_columns.sql", "name": "get_journal_entry_line_columns", "macro_sql": "{% macro get_journal_entry_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0915542, "supported_languages": null}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_columns.sql", "original_file_path": "macros/get_deposit_columns.sql", "name": "get_deposit_columns", "macro_sql": "{% macro get_deposit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.094462, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_columns.sql", "original_file_path": "macros/get_purchase_order_columns.sql", "name": "get_purchase_order_columns", "macro_sql": "{% macro get_purchase_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0985239, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_line_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_line_columns.sql", "original_file_path": "macros/get_credit_memo_line_columns.sql", "name": "get_credit_memo_line_columns", "macro_sql": "{% macro get_credit_memo_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.102273, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_columns.sql", "original_file_path": "macros/get_journal_entry_columns.sql", "name": "get_journal_entry_columns", "macro_sql": "{% macro get_journal_entry_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.104749, "supported_languages": null}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_columns.sql", "original_file_path": "macros/get_vendor_columns.sql", "name": "get_vendor_columns", "macro_sql": "{% macro get_vendor_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.109011, "supported_languages": null}, "macro.quickbooks_source.get_invoice_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_invoice_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_linked_txn_columns.sql", "original_file_path": "macros/get_invoice_linked_txn_columns.sql", "name": "get_invoice_linked_txn_columns", "macro_sql": "{% macro get_invoice_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.110579, "supported_languages": null}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_item_columns.sql", "original_file_path": "macros/get_item_columns.sql", "name": "get_item_columns", "macro_sql": "{% macro get_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.114723, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_columns.sql", "original_file_path": "macros/get_credit_memo_columns.sql", "name": "get_credit_memo_columns", "macro_sql": "{% macro get_credit_memo_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.119602, "supported_languages": null}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_item_columns.sql", "original_file_path": "macros/get_bundle_item_columns.sql", "name": "get_bundle_item_columns", "macro_sql": "{% macro get_bundle_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1205351, "supported_languages": null}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_columns.sql", "original_file_path": "macros/get_payment_columns.sql", "name": "get_payment_columns", "macro_sql": "{% macro get_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1254709, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_columns.sql", "original_file_path": "macros/get_vendor_credit_columns.sql", "name": "get_vendor_credit_columns", "macro_sql": "{% macro get_vendor_credit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.128122, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_columns.sql", "original_file_path": "macros/get_refund_receipt_columns.sql", "name": "get_refund_receipt_columns", "macro_sql": "{% macro get_refund_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.135981, "supported_languages": null}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_columns.sql", "original_file_path": "macros/get_bill_columns.sql", "name": "get_bill_columns", "macro_sql": "{% macro get_bill_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.139061, "supported_languages": null}, "macro.quickbooks_source.get_credit_card_payment_txn_columns": {"unique_id": "macro.quickbooks_source.get_credit_card_payment_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_card_payment_txn_columns.sql", "original_file_path": "macros/get_credit_card_payment_txn_columns.sql", "name": "get_credit_card_payment_txn_columns", "macro_sql": "{% macro get_credit_card_payment_txn_columns() %}\n\n{% set columns = [ \t\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.140875, "supported_languages": null}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_line_columns.sql", "original_file_path": "macros/get_bill_line_columns.sql", "name": "get_bill_line_columns", "macro_sql": "{% macro get_bill_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1437151, "supported_languages": null}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "name": "get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.149858, "supported_languages": null}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_columns.sql", "original_file_path": "macros/get_invoice_columns.sql", "name": "get_invoice_columns", "macro_sql": "{% macro get_invoice_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allow_ipnpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_achpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_credit_card_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1568892, "supported_languages": null}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_line_columns.sql", "original_file_path": "macros/get_payment_line_columns.sql", "name": "get_payment_line_columns", "macro_sql": "{% macro get_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.158926, "supported_languages": null}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_department_columns.sql", "original_file_path": "macros/get_department_columns.sql", "name": "get_department_columns", "macro_sql": "{% macro get_department_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.160596, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_columns.sql", "original_file_path": "macros/get_invoice_line_columns.sql", "name": "get_invoice_line_columns", "macro_sql": "{% macro get_invoice_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.164903, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_line_columns.sql", "original_file_path": "macros/get_purchase_order_line_columns.sql", "name": "get_purchase_order_line_columns", "macro_sql": "{% macro get_purchase_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.167753, "supported_languages": null}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_line_columns.sql", "original_file_path": "macros/get_purchase_line_columns.sql", "name": "get_purchase_line_columns", "macro_sql": "{% macro get_purchase_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.170659, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_line_columns.sql", "original_file_path": "macros/get_refund_receipt_line_columns.sql", "name": "get_refund_receipt_line_columns", "macro_sql": "{% macro get_refund_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1744561, "supported_languages": null}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_columns.sql", "original_file_path": "macros/get_estimate_columns.sql", "name": "get_estimate_columns", "macro_sql": "{% macro get_estimate_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.180321, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_columns.sql", "original_file_path": "macros/get_bill_payment_columns.sql", "name": "get_bill_payment_columns", "macro_sql": "{% macro get_bill_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.183533, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_columns.sql", "original_file_path": "macros/get_sales_receipt_columns.sql", "name": "get_sales_receipt_columns", "macro_sql": "{% macro get_sales_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1915252, "supported_languages": null}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_columns.sql", "original_file_path": "macros/get_bundle_columns.sql", "name": "get_bundle_columns", "macro_sql": "{% macro get_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.193834, "supported_languages": null}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_line_columns.sql", "original_file_path": "macros/get_estimate_line_columns.sql", "name": "get_estimate_line_columns", "macro_sql": "{% macro get_estimate_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.19836, "supported_languages": null}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_address_columns.sql", "original_file_path": "macros/get_address_columns.sql", "name": "get_address_columns", "macro_sql": "{% macro get_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.200617, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_bundle_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_bundle_columns.sql", "original_file_path": "macros/get_invoice_line_bundle_columns.sql", "name": "get_invoice_line_bundle_columns", "macro_sql": "{% macro get_invoice_line_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.203894, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "quickbooks.ap_ar_enhanced_table": {"unique_id": "quickbooks.ap_ar_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ap_ar_enhanced_table", "block_contents": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time."}, "quickbooks.cash_flow_statement_table": {"unique_id": "quickbooks.cash_flow_statement_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "cash_flow_statement_table", "block_contents": "Table that provides all line items necessary to construct a cash flow statement."}, "quickbooks.expenses_sales_enhanced_table": {"unique_id": "quickbooks.expenses_sales_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "expenses_sales_enhanced_table", "block_contents": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records."}, "quickbooks.general_ledger_table": {"unique_id": "quickbooks.general_ledger_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_table", "block_contents": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction."}, "quickbooks.general_ledger_by_period_table": {"unique_id": "quickbooks.general_ledger_by_period_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_by_period_table", "block_contents": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year."}, "quickbooks.profit_and_loss_table": {"unique_id": "quickbooks.profit_and_loss_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "profit_and_loss_table", "block_contents": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information."}, "quickbooks.account_class": {"unique_id": "quickbooks.account_class", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_class", "block_contents": "Class of the account associated"}, "quickbooks.account_name": {"unique_id": "quickbooks.account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "Name of the account associated"}, "quickbooks.account_number": {"unique_id": "quickbooks.account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_number", "block_contents": "User defined number of the account."}, "quickbooks.account_ordinal": {"unique_id": "quickbooks.account_ordinal", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_ordinal", "block_contents": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)"}, "quickbooks.account_sub_type": {"unique_id": "quickbooks.account_sub_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_sub_type", "block_contents": "Sub type of the account associated"}, "quickbooks.account_type": {"unique_id": "quickbooks.account_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_type", "block_contents": "The type of account associated"}, "quickbooks.calendar_date": {"unique_id": "quickbooks.calendar_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "calendar_date", "block_contents": "Timestamp of the first calendar date of the month."}, "quickbooks.is_sub_account": {"unique_id": "quickbooks.is_sub_account", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_sub_account", "block_contents": "Boolean indicating whether the account is a sub account (true) or a parent account (false)."}, "quickbooks.parent_account_name": {"unique_id": "quickbooks.parent_account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_name", "block_contents": "The parent account name. If the account is the parent account then the account name is recorded."}, "quickbooks.parent_account_number": {"unique_id": "quickbooks.parent_account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_number", "block_contents": "The parent account number. If the account is the parent account then the account number is recorded."}, "quickbooks.transaction_date": {"unique_id": "quickbooks.transaction_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_date", "block_contents": "Timestamp of the date that the transaction occurred."}, "quickbooks.transaction_id": {"unique_id": "quickbooks.transaction_id", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_id", "block_contents": "Unique identifier of the transaction"}, "quickbooks_source.account_table": {"unique_id": "quickbooks_source.account_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_table", "block_contents": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity."}, "quickbooks_source.address_table": {"unique_id": "quickbooks_source.address_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "address_table", "block_contents": "Table containing address details."}, "quickbooks_source.bill_line_table": {"unique_id": "quickbooks_source.bill_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_line_table", "block_contents": "Table containing distinct line items from bills within the `bill` table."}, "quickbooks_source.bill_linked_txn_table": {"unique_id": "quickbooks_source.bill_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_linked_txn_table", "block_contents": "Mapping table containing bill payment transactions linked to a bill."}, "quickbooks_source.bill_payment_line_table": {"unique_id": "quickbooks_source.bill_payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_line_table", "block_contents": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table."}, "quickbooks_source.bill_payment_table": {"unique_id": "quickbooks_source.bill_payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_table", "block_contents": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor."}, "quickbooks_source.bill_table": {"unique_id": "quickbooks_source.bill_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_table", "block_contents": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both."}, "quickbooks_source.bundle_item_table": {"unique_id": "quickbooks_source.bundle_item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_item_table", "block_contents": "Mapping table containing all bundle and item combinations."}, "quickbooks_source.bundle_table": {"unique_id": "quickbooks_source.bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_table", "block_contents": "Table containing all bundles possible to be used within an invoice."}, "quickbooks_source.credit_card_payment_txn_table": {"unique_id": "quickbooks_source.credit_card_payment_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_card_payment_txn_table", "block_contents": "Table containing all credit card payment transactions."}, "quickbooks_source.credit_memo_line_table": {"unique_id": "quickbooks_source.credit_memo_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_line_table", "block_contents": "Table containing individual records of credit memos."}, "quickbooks_source.credit_memo_table": {"unique_id": "quickbooks_source.credit_memo_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_table", "block_contents": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold."}, "quickbooks_source.customer_table": {"unique_id": "quickbooks_source.customer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_table", "block_contents": "Table containing customers of which are consumers of the service or product that your business offers."}, "quickbooks_source.department_table": {"unique_id": "quickbooks_source.department_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_table", "block_contents": "Table containing records representing physical locations such as stores, and sales regions."}, "quickbooks_source.deposit_line_table": {"unique_id": "quickbooks_source.deposit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_line_table", "block_contents": "Table containing individual line items comprising the deposit."}, "quickbooks_source.deposit_table": {"unique_id": "quickbooks_source.deposit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_table", "block_contents": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit."}, "quickbooks_source.estimate_line_table": {"unique_id": "quickbooks_source.estimate_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_line_table", "block_contents": "Table containing line item records of an estimate."}, "quickbooks_source.estimate_table": {"unique_id": "quickbooks_source.estimate_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_table", "block_contents": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing."}, "quickbooks_source.invoice_line_bundle_table": {"unique_id": "quickbooks_source.invoice_line_bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_bundle_table", "block_contents": "Table containing lines of an invoice which were bundled."}, "quickbooks_source.invoice_line_table": {"unique_id": "quickbooks_source.invoice_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_table", "block_contents": "Table containing individual records from invoices."}, "quickbooks_source.invoice_linked_txn_table": {"unique_id": "quickbooks_source.invoice_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_linked_txn_table", "block_contents": "Mapping table for invoices records to respective estimate and payment objects."}, "quickbooks_source.invoice_table": {"unique_id": "quickbooks_source.invoice_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_table", "block_contents": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later."}, "quickbooks_source.item_table": {"unique_id": "quickbooks_source.item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_table", "block_contents": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services."}, "quickbooks_source.journal_entry_line_table": {"unique_id": "quickbooks_source.journal_entry_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_line_table", "block_contents": "Table containing individual line items of a transaction associated with a journal entry."}, "quickbooks_source.journal_entry_table": {"unique_id": "quickbooks_source.journal_entry_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_table", "block_contents": "Table containing journal entry transactions."}, "quickbooks_source.payment_line_table": {"unique_id": "quickbooks_source.payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_line_table", "block_contents": "Table containing individual line items recorded within a payment."}, "quickbooks_source.payment_table": {"unique_id": "quickbooks_source.payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_table", "block_contents": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount."}, "quickbooks_source.purchase_line_table": {"unique_id": "quickbooks_source.purchase_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase."}, "quickbooks_source.purchase_order_line_table": {"unique_id": "quickbooks_source.purchase_order_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase order."}, "quickbooks_source.purchase_order_linked_txn_table": {"unique_id": "quickbooks_source.purchase_order_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_linked_txn_table", "block_contents": "Mapping table for purchase order records to respective bill and purchase objects."}, "quickbooks_source.purchase_order_table": {"unique_id": "quickbooks_source.purchase_order_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_table", "block_contents": "Table containing records of purchase orders (PO)."}, "quickbooks_source.purchase_table": {"unique_id": "quickbooks_source.purchase_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_table", "block_contents": "Table containing records of purchase expenses."}, "quickbooks_source.refund_receipt_line_table": {"unique_id": "quickbooks_source.refund_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_line_table", "block_contents": "Table containing individual line items of a refund transaction."}, "quickbooks_source.refund_receipt_table": {"unique_id": "quickbooks_source.refund_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_table", "block_contents": "Table containing refunds to the customer for a product or service that was provided."}, "quickbooks_source.sales_receipt_line_table": {"unique_id": "quickbooks_source.sales_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_line_table", "block_contents": "Table containing individual line items of a sales transaction."}, "quickbooks_source.sales_receipt_table": {"unique_id": "quickbooks_source.sales_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_table", "block_contents": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited."}, "quickbooks_source.transfer_table": {"unique_id": "quickbooks_source.transfer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transfer_table", "block_contents": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts."}, "quickbooks_source.vendor_credit_line_table": {"unique_id": "quickbooks_source.vendor_credit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_line_table", "block_contents": "Table containing individual vendor credit line items."}, "quickbooks_source.vendor_credit_table": {"unique_id": "quickbooks_source.vendor_credit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_table", "block_contents": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services."}, "quickbooks_source.vendor_table": {"unique_id": "quickbooks_source.vendor_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product."}, "quickbooks_source.account_id": {"unique_id": "quickbooks_source.account_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The identifier of the account associated"}, "quickbooks_source.amount": {"unique_id": "quickbooks_source.amount", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "amount", "block_contents": "Monetary amount of"}, "quickbooks_source.class_id": {"unique_id": "quickbooks_source.class_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "Reference to the class associated"}, "quickbooks_source.created_at": {"unique_id": "quickbooks_source.created_at", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of the creation date"}, "quickbooks_source.currency_id": {"unique_id": "quickbooks_source.currency_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "Reference to the currency"}, "quickbooks_source.customer_id": {"unique_id": "quickbooks_source.customer_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Reference to the customer associated"}, "quickbooks_source.department_id": {"unique_id": "quickbooks_source.department_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "Reference to the department"}, "quickbooks_source.id": {"unique_id": "quickbooks_source.id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "id", "block_contents": "Unique identifier of the"}, "quickbooks_source.item_id": {"unique_id": "quickbooks_source.item_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "Reference to the item"}, "quickbooks_source._fivetran_deleted": {"unique_id": "quickbooks_source._fivetran_deleted", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {"model.quickbooks.int_quickbooks__credit_card_pymt_double_entry": [{"resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_card_pymt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_card_pymt_double_entry", "raw_code": "/*\nTable that creates a debit record to the associated bank account and a credit record to the specified credit card account.\n*/\n\n--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith credit_card_payments as (\n \n select *\n from {{ ref('stg_quickbooks__credit_card_payment_txn') }}\n where is_most_recent_record\n),\n\ncredit_card_payment_prep as (\n\n select\n credit_card_payments.credit_card_payment_id as transaction_id,\n credit_card_payments.source_relation,\n row_number() over (partition by credit_card_payments.credit_card_payment_id order by credit_card_payments.transaction_date) - 1 as index,\n credit_card_payments.transaction_date,\n credit_card_payments.amount,\n credit_card_payments.bank_account_id,\n credit_card_payments.credit_card_account_id,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as class_id\n from credit_card_payments\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount, \n cast(bank_account_id as {{ dbt.type_string() }}) as account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as account_id,\n class_id, \n 'debit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "name": "int_quickbooks__credit_card_pymt_double_entry", "alias": "int_quickbooks__credit_card_pymt_double_entry", "checksum": {"name": "sha256", "checksum": "b0b069fdb6c61a9cccf3f4ab656a9afb040568c0a0d9262943d2fce376b70e57"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to credit card payment transactions.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": false}, "created_at": 1676347365.002514, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_card_payment_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_card_payment_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn", "raw_code": "--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_card_payment_txn_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_card_payment_txn_tmp')),\n staging_columns=get_credit_card_payment_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_card_payment_id,\n amount,\n bank_account_id,\n credit_card_account_id,\n created_at,\n updated_at,\n currency_id,\n transaction_date,\n _fivetran_deleted,\n row_number() over (partition by id, updated_at order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_card_payment_txn.sql", "original_file_path": "models/stg_quickbooks__credit_card_payment_txn.sql", "name": "stg_quickbooks__credit_card_payment_txn", "alias": "stg_quickbooks__credit_card_payment_txn", "checksum": {"name": "sha256", "checksum": "a8274053455a19f46f54111bac914dd48d1365ce550d73b051c8b22f9fafef0b"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn_tmp"], ["stg_quickbooks__credit_card_payment_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('credit_card_payment_txn_table') }}", "columns": {"credit_card_payment_id": {"name": "credit_card_payment_id", "description": "{{ doc('id') }} credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "Reference to the bank account which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Reference to the credit card account which the credit card payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating if the record is the most recent updated version of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676347365.0991669, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_tmp')),\n staging_columns=get_purchase_order_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order.sql", "original_file_path": "models/stg_quickbooks__purchase_order.sql", "name": "stg_quickbooks__purchase_order", "alias": "stg_quickbooks__purchase_order", "checksum": {"name": "sha256", "checksum": "697ef46b9a8ee1073daf25c393eca18697b1c95b1b57914e5a9cef8bd8adcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676347365.154416, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_line_tmp')),\n staging_columns=get_purchase_order_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_line.sql", "original_file_path": "models/stg_quickbooks__purchase_order_line.sql", "name": "stg_quickbooks__purchase_order_line", "alias": "stg_quickbooks__purchase_order_line", "checksum": {"name": "sha256", "checksum": "a2b4b3ba47604cb6f1391043643e49168328c1ab7df52754f699748f11fa8888"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_line_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase order is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676347365.150151, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_linked_txn_tmp')),\n staging_columns=get_purchase_order_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_linked_txn.sql", "original_file_path": "models/stg_quickbooks__purchase_order_linked_txn.sql", "name": "stg_quickbooks__purchase_order_linked_txn", "alias": "stg_quickbooks__purchase_order_linked_txn", "checksum": {"name": "sha256", "checksum": "3e9cbee58cb2dab37c5798fd7a97954b3eae45670cc0288ce232394180fd1605"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_linked_txn_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676347365.151566, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "name": "stg_quickbooks__purchase_order_line_tmp", "alias": "stg_quickbooks__purchase_order_line_tmp", "checksum": {"name": "sha256", "checksum": "be4cdef26ee4b271e7c425130b4c3b80be45214b5be926af060d32331badcc0f"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676347364.759237, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_card_payment_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp", "raw_code": "--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_card_payment_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_card_payment_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "name": "stg_quickbooks__credit_card_payment_txn_tmp", "alias": "stg_quickbooks__credit_card_payment_txn_tmp", "checksum": {"name": "sha256", "checksum": "b1910ce2b3a9463b6c4b232fa24e807de5c899a1d03dde1feef6bc43dbe8b3d6"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_card_payment_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676347364.816572, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_tmp.sql", "name": "stg_quickbooks__purchase_order_tmp", "alias": "stg_quickbooks__purchase_order_tmp", "checksum": {"name": "sha256", "checksum": "a14f234fcfdc6777fe2bb8898ce79b14b45590d19bd6eab25d33ee95cc899bbd"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676347364.843283, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "alias": "stg_quickbooks__purchase_order_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "926409c011fa67fdcd598c4c0c21b87fb5dabe8654d46f0ee7caac0a028d5d99"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676347364.9710872, "config_call_dict": {"enabled": false}}]}, "parent_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__general_ledger_by_period": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry"], "model.quickbooks.quickbooks__profit_and_loss": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.quickbooks__cash_flow_statement": ["model.quickbooks.int_quickbooks__cash_flow_classifications"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__balance_sheet"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "analysis.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "analysis.quickbooks.quickbooks__income_statement": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["source.quickbooks_source.quickbooks.vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["source.quickbooks_source.quickbooks.refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["source.quickbooks_source.quickbooks.estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["source.quickbooks_source.quickbooks.credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["source.quickbooks_source.quickbooks.journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["source.quickbooks_source.quickbooks.invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["source.quickbooks_source.quickbooks.payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["source.quickbooks_source.quickbooks.invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["source.quickbooks_source.quickbooks.deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["source.quickbooks_source.quickbooks.customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["source.quickbooks_source.quickbooks.bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["source.quickbooks_source.quickbooks.item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["source.quickbooks_source.quickbooks.account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["source.quickbooks_source.quickbooks.vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["source.quickbooks_source.quickbooks.department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["source.quickbooks_source.quickbooks.bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["source.quickbooks_source.quickbooks.bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["source.quickbooks_source.quickbooks.bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["source.quickbooks_source.quickbooks.estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["source.quickbooks_source.quickbooks.purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["source.quickbooks_source.quickbooks.credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["source.quickbooks_source.quickbooks.bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["source.quickbooks_source.quickbooks.transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["source.quickbooks_source.quickbooks.vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["source.quickbooks_source.quickbooks.purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["source.quickbooks_source.quickbooks.address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["source.quickbooks_source.quickbooks.payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["source.quickbooks_source.quickbooks.refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["source.quickbooks_source.quickbooks.sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["source.quickbooks_source.quickbooks.bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["source.quickbooks_source.quickbooks.journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["source.quickbooks_source.quickbooks.deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["source.quickbooks_source.quickbooks.bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["source.quickbooks_source.quickbooks.invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["source.quickbooks_source.quickbooks.sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["source.quickbooks_source.quickbooks.invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": ["model.quickbooks.quickbooks__general_ledger"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": ["model.quickbooks.quickbooks__general_ledger_by_period"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": ["model.quickbooks.quickbooks__profit_and_loss"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": ["model.quickbooks.quickbooks__balance_sheet"], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": ["model.quickbooks_source.stg_quickbooks__bundle_item"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": ["model.quickbooks_source.stg_quickbooks__vendor"], "source.quickbooks_source.quickbooks.account": [], "source.quickbooks_source.quickbooks.address": [], "source.quickbooks_source.quickbooks.bill_line": [], "source.quickbooks_source.quickbooks.bill_linked_txn": [], "source.quickbooks_source.quickbooks.bill_payment_line": [], "source.quickbooks_source.quickbooks.bill_payment": [], "source.quickbooks_source.quickbooks.bill": [], "source.quickbooks_source.quickbooks.bundle_item": [], "source.quickbooks_source.quickbooks.bundle": [], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": [], "source.quickbooks_source.quickbooks.credit_memo": [], "source.quickbooks_source.quickbooks.customer": [], "source.quickbooks_source.quickbooks.department": [], "source.quickbooks_source.quickbooks.deposit_line": [], "source.quickbooks_source.quickbooks.deposit": [], "source.quickbooks_source.quickbooks.estimate": [], "source.quickbooks_source.quickbooks.estimate_line": [], "source.quickbooks_source.quickbooks.invoice_linked_txn": [], "source.quickbooks_source.quickbooks.invoice_line": [], "source.quickbooks_source.quickbooks.invoice_line_bundle": [], "source.quickbooks_source.quickbooks.invoice": [], "source.quickbooks_source.quickbooks.item": [], "source.quickbooks_source.quickbooks.journal_entry_line": [], "source.quickbooks_source.quickbooks.journal_entry": [], "source.quickbooks_source.quickbooks.payment_line": [], "source.quickbooks_source.quickbooks.payment": [], "source.quickbooks_source.quickbooks.purchase_line": [], "source.quickbooks_source.quickbooks.purchase": [], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": [], "source.quickbooks_source.quickbooks.refund_receipt": [], "source.quickbooks_source.quickbooks.sales_receipt_line": [], "source.quickbooks_source.quickbooks.sales_receipt": [], "source.quickbooks_source.quickbooks.transfer": [], "source.quickbooks_source.quickbooks.vendor_credit_line": [], "source.quickbooks_source.quickbooks.vendor_credit": [], "source.quickbooks_source.quickbooks.vendor": []}, "child_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.int_quickbooks__cash_flow_classifications", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"], "model.quickbooks.quickbooks__general_ledger_by_period": ["analysis.quickbooks.quickbooks__balance_sheet", "analysis.quickbooks.quickbooks__income_statement", "model.quickbooks.quickbooks__balance_sheet", "model.quickbooks.quickbooks__profit_and_loss", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"], "model.quickbooks.quickbooks__profit_and_loss": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"], "model.quickbooks.quickbooks__cash_flow_statement": ["test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__cash_flow_statement"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__retained_earnings", "model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "analysis.quickbooks.quickbooks__balance_sheet": [], "analysis.quickbooks.quickbooks__income_statement": [], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks.int_quickbooks__transfer_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks.int_quickbooks__bill_join", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["model.quickbooks_source.stg_quickbooks__estimate_line", "model.quickbooks_source.stg_quickbooks__estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["model.quickbooks_source.stg_quickbooks__transfer", "model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry_line", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": [], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": [], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": [], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": [], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": [], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": [], "source.quickbooks_source.quickbooks.account": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "source.quickbooks_source.quickbooks.address": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "source.quickbooks_source.quickbooks.bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "source.quickbooks_source.quickbooks.bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "source.quickbooks_source.quickbooks.bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "source.quickbooks_source.quickbooks.bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "source.quickbooks_source.quickbooks.bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "source.quickbooks_source.quickbooks.bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "source.quickbooks_source.quickbooks.bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "source.quickbooks_source.quickbooks.credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "source.quickbooks_source.quickbooks.customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "source.quickbooks_source.quickbooks.department": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "source.quickbooks_source.quickbooks.deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "source.quickbooks_source.quickbooks.deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "source.quickbooks_source.quickbooks.estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "source.quickbooks_source.quickbooks.estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "source.quickbooks_source.quickbooks.invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "source.quickbooks_source.quickbooks.invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "source.quickbooks_source.quickbooks.invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "source.quickbooks_source.quickbooks.invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "source.quickbooks_source.quickbooks.item": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "source.quickbooks_source.quickbooks.journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "source.quickbooks_source.quickbooks.journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "source.quickbooks_source.quickbooks.payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "source.quickbooks_source.quickbooks.payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "source.quickbooks_source.quickbooks.purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "source.quickbooks_source.quickbooks.purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "source.quickbooks_source.quickbooks.refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "source.quickbooks_source.quickbooks.sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "source.quickbooks_source.quickbooks.sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "source.quickbooks_source.quickbooks.transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "source.quickbooks_source.quickbooks.vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "source.quickbooks_source.quickbooks.vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "source.quickbooks_source.quickbooks.vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"]}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index 9b17ec09..446e0f2d 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2023-01-25T03:37:22.961142Z", "invocation_id": "70a28cef-1a0d-4e26-942f-51b94a33e120", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.708652Z", "completed_at": "2023-01-25T03:37:09.781150Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.782040Z", "completed_at": "2023-01-25T03:37:09.782060Z"}], "thread_id": "Thread-1", "execution_time": 0.07675004005432129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.708855Z", "completed_at": "2023-01-25T03:37:09.781315Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.782149Z", "completed_at": "2023-01-25T03:37:09.782153Z"}], "thread_id": "Thread-2", "execution_time": 0.07662224769592285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.709026Z", "completed_at": "2023-01-25T03:37:09.781449Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.782336Z", "completed_at": "2023-01-25T03:37:09.782340Z"}], "thread_id": "Thread-3", "execution_time": 0.0766439437866211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.709167Z", "completed_at": "2023-01-25T03:37:09.781825Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.783321Z", "completed_at": "2023-01-25T03:37:09.783326Z"}], "thread_id": "Thread-4", "execution_time": 0.07720112800598145, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.786871Z", "completed_at": "2023-01-25T03:37:09.805115Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.806023Z", "completed_at": "2023-01-25T03:37:09.806033Z"}], "thread_id": "Thread-2", "execution_time": 0.021322011947631836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.786778Z", "completed_at": "2023-01-25T03:37:09.805255Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.806118Z", "completed_at": "2023-01-25T03:37:09.806123Z"}], "thread_id": "Thread-1", "execution_time": 0.022095203399658203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.787062Z", "completed_at": "2023-01-25T03:37:09.805476Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.806293Z", "completed_at": "2023-01-25T03:37:09.806299Z"}], "thread_id": "Thread-3", "execution_time": 0.021673202514648438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.795418Z", "completed_at": "2023-01-25T03:37:09.805829Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.807306Z", "completed_at": "2023-01-25T03:37:09.807311Z"}], "thread_id": "Thread-4", "execution_time": 0.02209305763244629, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.811315Z", "completed_at": "2023-01-25T03:37:09.828429Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.829027Z", "completed_at": "2023-01-25T03:37:09.829037Z"}], "thread_id": "Thread-1", "execution_time": 0.0204160213470459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.811172Z", "completed_at": "2023-01-25T03:37:09.828529Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.829205Z", "completed_at": "2023-01-25T03:37:09.829209Z"}], "thread_id": "Thread-2", "execution_time": 0.02118206024169922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.811597Z", "completed_at": "2023-01-25T03:37:09.828791Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.829789Z", "completed_at": "2023-01-25T03:37:09.829793Z"}], "thread_id": "Thread-3", "execution_time": 0.020936965942382812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.820478Z", "completed_at": "2023-01-25T03:37:09.828939Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.830206Z", "completed_at": "2023-01-25T03:37:09.830209Z"}], "thread_id": "Thread-4", "execution_time": 0.02096414566040039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.833336Z", "completed_at": "2023-01-25T03:37:09.849470Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.850205Z", "completed_at": "2023-01-25T03:37:09.850212Z"}], "thread_id": "Thread-2", "execution_time": 0.018787860870361328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.833175Z", "completed_at": "2023-01-25T03:37:09.849572Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.850290Z", "completed_at": "2023-01-25T03:37:09.850294Z"}], "thread_id": "Thread-1", "execution_time": 0.019638776779174805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.838176Z", "completed_at": "2023-01-25T03:37:09.849760Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.850457Z", "completed_at": "2023-01-25T03:37:09.850460Z"}], "thread_id": "Thread-3", "execution_time": 0.019025087356567383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.841741Z", "completed_at": "2023-01-25T03:37:09.850025Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.851271Z", "completed_at": "2023-01-25T03:37:09.851275Z"}], "thread_id": "Thread-4", "execution_time": 0.019582033157348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.854477Z", "completed_at": "2023-01-25T03:37:09.869941Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.870650Z", "completed_at": "2023-01-25T03:37:09.870657Z"}], "thread_id": "Thread-2", "execution_time": 0.01831507682800293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.854556Z", "completed_at": "2023-01-25T03:37:09.870101Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.870734Z", "completed_at": "2023-01-25T03:37:09.870738Z"}], "thread_id": "Thread-1", "execution_time": 0.01837325096130371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.854710Z", "completed_at": "2023-01-25T03:37:09.870228Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.870887Z", "completed_at": "2023-01-25T03:37:09.870891Z"}], "thread_id": "Thread-3", "execution_time": 0.018303871154785156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.861925Z", "completed_at": "2023-01-25T03:37:09.870492Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.871705Z", "completed_at": "2023-01-25T03:37:09.871709Z"}], "thread_id": "Thread-4", "execution_time": 0.018726825714111328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.875017Z", "completed_at": "2023-01-25T03:37:09.889669Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.890058Z", "completed_at": "2023-01-25T03:37:09.890068Z"}], "thread_id": "Thread-2", "execution_time": 0.017225027084350586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.875263Z", "completed_at": "2023-01-25T03:37:09.891050Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.892113Z", "completed_at": "2023-01-25T03:37:09.892118Z"}], "thread_id": "Thread-3", "execution_time": 0.01851201057434082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.882295Z", "completed_at": "2023-01-25T03:37:09.891588Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.892355Z", "completed_at": "2023-01-25T03:37:09.892359Z"}], "thread_id": "Thread-4", "execution_time": 0.023678064346313477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.875107Z", "completed_at": "2023-01-25T03:37:09.891821Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.892806Z", "completed_at": "2023-01-25T03:37:09.892810Z"}], "thread_id": "Thread-1", "execution_time": 0.025426864624023438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.892274Z", "completed_at": "2023-01-25T03:37:09.900170Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.901425Z", "completed_at": "2023-01-25T03:37:09.901432Z"}], "thread_id": "Thread-2", "execution_time": 0.015342950820922852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.901252Z", "completed_at": "2023-01-25T03:37:09.914726Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.915726Z", "completed_at": "2023-01-25T03:37:09.915733Z"}], "thread_id": "Thread-3", "execution_time": 0.016744136810302734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.901518Z", "completed_at": "2023-01-25T03:37:09.915293Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.915965Z", "completed_at": "2023-01-25T03:37:09.915969Z"}], "thread_id": "Thread-4", "execution_time": 0.020244836807250977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.906108Z", "completed_at": "2023-01-25T03:37:09.915460Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.916399Z", "completed_at": "2023-01-25T03:37:09.916403Z"}], "thread_id": "Thread-1", "execution_time": 0.020461082458496094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.915887Z", "completed_at": "2023-01-25T03:37:09.921976Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.923228Z", "completed_at": "2023-01-25T03:37:09.923233Z"}], "thread_id": "Thread-2", "execution_time": 0.013173103332519531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.923137Z", "completed_at": "2023-01-25T03:37:09.937877Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.938989Z", "completed_at": "2023-01-25T03:37:09.938997Z"}], "thread_id": "Thread-3", "execution_time": 0.017863035202026367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.923396Z", "completed_at": "2023-01-25T03:37:09.938700Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.939737Z", "completed_at": "2023-01-25T03:37:09.939741Z"}], "thread_id": "Thread-4", "execution_time": 0.022149085998535156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.928258Z", "completed_at": "2023-01-25T03:37:09.938897Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.943788Z", "completed_at": "2023-01-25T03:37:09.943796Z"}], "thread_id": "Thread-1", "execution_time": 0.02222919464111328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.939175Z", "completed_at": "2023-01-25T03:37:09.945783Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.947055Z", "completed_at": "2023-01-25T03:37:09.947060Z"}], "thread_id": "Thread-2", "execution_time": 0.01320505142211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.946872Z", "completed_at": "2023-01-25T03:37:09.955672Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.960096Z", "completed_at": "2023-01-25T03:37:09.960104Z"}], "thread_id": "Thread-3", "execution_time": 0.015574216842651367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.951056Z", "completed_at": "2023-01-25T03:37:09.959982Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.962639Z", "completed_at": "2023-01-25T03:37:09.962647Z"}], "thread_id": "Thread-4", "execution_time": 0.0172579288482666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.951482Z", "completed_at": "2023-01-25T03:37:09.960165Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.963045Z", "completed_at": "2023-01-25T03:37:09.963050Z"}], "thread_id": "Thread-1", "execution_time": 0.018836021423339844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.960253Z", "completed_at": "2023-01-25T03:37:09.963142Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.966299Z", "completed_at": "2023-01-25T03:37:09.966305Z"}], "thread_id": "Thread-2", "execution_time": 0.007975101470947266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.966716Z", "completed_at": "2023-01-25T03:37:09.969467Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.972762Z", "completed_at": "2023-01-25T03:37:09.972768Z"}], "thread_id": "Thread-3", "execution_time": 0.009637117385864258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.969373Z", "completed_at": "2023-01-25T03:37:09.972672Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.974741Z", "completed_at": "2023-01-25T03:37:09.974746Z"}], "thread_id": "Thread-4", "execution_time": 0.00896596908569336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.969557Z", "completed_at": "2023-01-25T03:37:09.972850Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.974934Z", "completed_at": "2023-01-25T03:37:09.974938Z"}], "thread_id": "Thread-1", "execution_time": 0.009078025817871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.972927Z", "completed_at": "2023-01-25T03:37:09.975090Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.976526Z", "completed_at": "2023-01-25T03:37:09.976531Z"}], "thread_id": "Thread-2", "execution_time": 0.007925987243652344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.977013Z", "completed_at": "2023-01-25T03:37:09.979528Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.983521Z", "completed_at": "2023-01-25T03:37:09.983527Z"}], "thread_id": "Thread-3", "execution_time": 0.008569955825805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.979348Z", "completed_at": "2023-01-25T03:37:09.983429Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.985988Z", "completed_at": "2023-01-25T03:37:09.985999Z"}], "thread_id": "Thread-4", "execution_time": 0.010104179382324219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.979609Z", "completed_at": "2023-01-25T03:37:09.983607Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.986354Z", "completed_at": "2023-01-25T03:37:09.986359Z"}], "thread_id": "Thread-1", "execution_time": 0.01038217544555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.983687Z", "completed_at": "2023-01-25T03:37:09.986461Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.988165Z", "completed_at": "2023-01-25T03:37:09.988169Z"}], "thread_id": "Thread-2", "execution_time": 0.009383916854858398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.988529Z", "completed_at": "2023-01-25T03:37:09.991048Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.994309Z", "completed_at": "2023-01-25T03:37:09.994316Z"}], "thread_id": "Thread-3", "execution_time": 0.007942914962768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.990968Z", "completed_at": "2023-01-25T03:37:09.994221Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.996822Z", "completed_at": "2023-01-25T03:37:09.996830Z"}], "thread_id": "Thread-4", "execution_time": 0.00952291488647461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.991131Z", "completed_at": "2023-01-25T03:37:09.994395Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.997192Z", "completed_at": "2023-01-25T03:37:09.997201Z"}], "thread_id": "Thread-1", "execution_time": 0.009801149368286133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.994473Z", "completed_at": "2023-01-25T03:37:09.997366Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:09.999213Z", "completed_at": "2023-01-25T03:37:09.999219Z"}], "thread_id": "Thread-2", "execution_time": 0.008946895599365234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:09.999645Z", "completed_at": "2023-01-25T03:37:10.003475Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.007329Z", "completed_at": "2023-01-25T03:37:10.007339Z"}], "thread_id": "Thread-3", "execution_time": 0.010170936584472656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.003383Z", "completed_at": "2023-01-25T03:37:10.007211Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.009757Z", "completed_at": "2023-01-25T03:37:10.009767Z"}], "thread_id": "Thread-4", "execution_time": 0.011324882507324219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.003581Z", "completed_at": "2023-01-25T03:37:10.007512Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.010199Z", "completed_at": "2023-01-25T03:37:10.010205Z"}], "thread_id": "Thread-1", "execution_time": 0.01171112060546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.007660Z", "completed_at": "2023-01-25T03:37:10.010309Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.012206Z", "completed_at": "2023-01-25T03:37:10.012215Z"}], "thread_id": "Thread-2", "execution_time": 0.009462118148803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.012589Z", "completed_at": "2023-01-25T03:37:10.015393Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.018813Z", "completed_at": "2023-01-25T03:37:10.018821Z"}], "thread_id": "Thread-3", "execution_time": 0.008533239364624023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.015308Z", "completed_at": "2023-01-25T03:37:10.018712Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.021974Z", "completed_at": "2023-01-25T03:37:10.021980Z"}], "thread_id": "Thread-4", "execution_time": 0.010583162307739258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.015478Z", "completed_at": "2023-01-25T03:37:10.018905Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.022174Z", "completed_at": "2023-01-25T03:37:10.022178Z"}], "thread_id": "Thread-1", "execution_time": 0.01089620590209961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.018987Z", "completed_at": "2023-01-25T03:37:10.022428Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.024411Z", "completed_at": "2023-01-25T03:37:10.024420Z"}], "thread_id": "Thread-2", "execution_time": 0.009885311126708984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.024851Z", "completed_at": "2023-01-25T03:37:10.027883Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.031239Z", "completed_at": "2023-01-25T03:37:10.031246Z"}], "thread_id": "Thread-3", "execution_time": 0.008773088455200195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.027791Z", "completed_at": "2023-01-25T03:37:10.031134Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.033375Z", "completed_at": "2023-01-25T03:37:10.033381Z"}], "thread_id": "Thread-4", "execution_time": 0.009454965591430664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.027971Z", "completed_at": "2023-01-25T03:37:10.031328Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.033582Z", "completed_at": "2023-01-25T03:37:10.033586Z"}], "thread_id": "Thread-1", "execution_time": 0.009664058685302734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.031409Z", "completed_at": "2023-01-25T03:37:10.033736Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.035331Z", "completed_at": "2023-01-25T03:37:10.035337Z"}], "thread_id": "Thread-2", "execution_time": 0.008312702178955078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.035828Z", "completed_at": "2023-01-25T03:37:10.038501Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.043001Z", "completed_at": "2023-01-25T03:37:10.043011Z"}], "thread_id": "Thread-3", "execution_time": 0.009452104568481445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.038299Z", "completed_at": "2023-01-25T03:37:10.042871Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.045139Z", "completed_at": "2023-01-25T03:37:10.045144Z"}], "thread_id": "Thread-4", "execution_time": 0.010360002517700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.038644Z", "completed_at": "2023-01-25T03:37:10.043114Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.045475Z", "completed_at": "2023-01-25T03:37:10.045479Z"}], "thread_id": "Thread-1", "execution_time": 0.010522127151489258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.043201Z", "completed_at": "2023-01-25T03:37:10.045566Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.046977Z", "completed_at": "2023-01-25T03:37:10.046981Z"}], "thread_id": "Thread-2", "execution_time": 0.009134769439697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.047369Z", "completed_at": "2023-01-25T03:37:10.049681Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.052711Z", "completed_at": "2023-01-25T03:37:10.052717Z"}], "thread_id": "Thread-3", "execution_time": 0.007341861724853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.049540Z", "completed_at": "2023-01-25T03:37:10.052630Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.054721Z", "completed_at": "2023-01-25T03:37:10.054726Z"}], "thread_id": "Thread-4", "execution_time": 0.008237838745117188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.049762Z", "completed_at": "2023-01-25T03:37:10.052791Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.054911Z", "completed_at": "2023-01-25T03:37:10.054915Z"}], "thread_id": "Thread-1", "execution_time": 0.008546829223632812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.052884Z", "completed_at": "2023-01-25T03:37:10.055077Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.057021Z", "completed_at": "2023-01-25T03:37:10.057029Z"}], "thread_id": "Thread-2", "execution_time": 0.008397102355957031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.057654Z", "completed_at": "2023-01-25T03:37:10.061209Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.064386Z", "completed_at": "2023-01-25T03:37:10.064393Z"}], "thread_id": "Thread-3", "execution_time": 0.009418010711669922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.061125Z", "completed_at": "2023-01-25T03:37:10.064301Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.066364Z", "completed_at": "2023-01-25T03:37:10.066369Z"}], "thread_id": "Thread-4", "execution_time": 0.009836912155151367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.061292Z", "completed_at": "2023-01-25T03:37:10.064474Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.066630Z", "completed_at": "2023-01-25T03:37:10.066633Z"}], "thread_id": "Thread-1", "execution_time": 0.00980687141418457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.064550Z", "completed_at": "2023-01-25T03:37:10.066711Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.068277Z", "completed_at": "2023-01-25T03:37:10.068286Z"}], "thread_id": "Thread-2", "execution_time": 0.007970094680786133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.068808Z", "completed_at": "2023-01-25T03:37:10.071481Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.082738Z", "completed_at": "2023-01-25T03:37:10.082746Z"}], "thread_id": "Thread-3", "execution_time": 0.016161203384399414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.071316Z", "completed_at": "2023-01-25T03:37:10.082642Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.088843Z", "completed_at": "2023-01-25T03:37:10.088850Z"}], "thread_id": "Thread-4", "execution_time": 0.02119302749633789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.071575Z", "completed_at": "2023-01-25T03:37:10.974635Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.974965Z", "completed_at": "2023-01-25T03:37:10.974974Z"}], "thread_id": "Thread-1", "execution_time": 0.9885711669921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.096941Z", "completed_at": "2023-01-25T03:37:10.975166Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.975693Z", "completed_at": "2023-01-25T03:37:10.975698Z"}], "thread_id": "Thread-4", "execution_time": 0.9783010482788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.090861Z", "completed_at": "2023-01-25T03:37:10.975240Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.975774Z", "completed_at": "2023-01-25T03:37:10.975778Z"}], "thread_id": "Thread-3", "execution_time": 0.9795770645141602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:10.082904Z", "completed_at": "2023-01-25T03:37:10.975375Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:10.975853Z", "completed_at": "2023-01-25T03:37:10.975856Z"}], "thread_id": "Thread-2", "execution_time": 0.9982550144195557, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:11.059143Z", "completed_at": "2023-01-25T03:37:11.932092Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:11.932375Z", "completed_at": "2023-01-25T03:37:11.932393Z"}], "thread_id": "Thread-1", "execution_time": 0.9785192012786865, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:11.072653Z", "completed_at": "2023-01-25T03:37:11.963513Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:11.963807Z", "completed_at": "2023-01-25T03:37:11.963816Z"}], "thread_id": "Thread-4", "execution_time": 0.9775650501251221, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:11.072842Z", "completed_at": "2023-01-25T03:37:12.036444Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:12.037988Z", "completed_at": "2023-01-25T03:37:12.037996Z"}], "thread_id": "Thread-2", "execution_time": 1.048436164855957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:11.072752Z", "completed_at": "2023-01-25T03:37:12.037359Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:12.038824Z", "completed_at": "2023-01-25T03:37:12.038830Z"}], "thread_id": "Thread-3", "execution_time": 1.0575530529022217, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:12.039228Z", "completed_at": "2023-01-25T03:37:12.923410Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:12.924151Z", "completed_at": "2023-01-25T03:37:12.924168Z"}], "thread_id": "Thread-1", "execution_time": 0.9682857990264893, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:12.050076Z", "completed_at": "2023-01-25T03:37:12.923169Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:12.923914Z", "completed_at": "2023-01-25T03:37:12.923943Z"}], "thread_id": "Thread-4", "execution_time": 0.9576520919799805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:12.130221Z", "completed_at": "2023-01-25T03:37:12.986749Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:12.987213Z", "completed_at": "2023-01-25T03:37:12.987226Z"}], "thread_id": "Thread-3", "execution_time": 0.9395251274108887, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:12.121576Z", "completed_at": "2023-01-25T03:37:12.986907Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:12.987311Z", "completed_at": "2023-01-25T03:37:12.987314Z"}], "thread_id": "Thread-2", "execution_time": 0.9554922580718994, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:13.009156Z", "completed_at": "2023-01-25T03:37:13.876302Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:13.876716Z", "completed_at": "2023-01-25T03:37:13.876720Z"}], "thread_id": "Thread-1", "execution_time": 0.9615280628204346, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:13.009251Z", "completed_at": "2023-01-25T03:37:13.876168Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:13.876609Z", "completed_at": "2023-01-25T03:37:13.876619Z"}], "thread_id": "Thread-4", "execution_time": 0.9617881774902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:13.070087Z", "completed_at": "2023-01-25T03:37:13.896489Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:13.896721Z", "completed_at": "2023-01-25T03:37:13.896730Z"}], "thread_id": "Thread-3", "execution_time": 0.9173433780670166, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:13.077753Z", "completed_at": "2023-01-25T03:37:13.922746Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:13.922946Z", "completed_at": "2023-01-25T03:37:13.922956Z"}], "thread_id": "Thread-2", "execution_time": 0.9271376132965088, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:13.972521Z", "completed_at": "2023-01-25T03:37:14.915833Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:14.921279Z", "completed_at": "2023-01-25T03:37:14.921292Z"}], "thread_id": "Thread-1", "execution_time": 1.0312330722808838, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:14.005409Z", "completed_at": "2023-01-25T03:37:14.923215Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:14.923383Z", "completed_at": "2023-01-25T03:37:14.923386Z"}], "thread_id": "Thread-2", "execution_time": 1.0077669620513916, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:13.972632Z", "completed_at": "2023-01-25T03:37:14.922468Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:14.922654Z", "completed_at": "2023-01-25T03:37:14.922682Z"}], "thread_id": "Thread-4", "execution_time": 1.041187047958374, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:13.988969Z", "completed_at": "2023-01-25T03:37:14.922858Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:14.923041Z", "completed_at": "2023-01-25T03:37:14.923046Z"}], "thread_id": "Thread-3", "execution_time": 1.0251998901367188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:15.004131Z", "completed_at": "2023-01-25T03:37:15.912664Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:15.913567Z", "completed_at": "2023-01-25T03:37:15.913577Z"}], "thread_id": "Thread-1", "execution_time": 0.9924910068511963, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:15.016491Z", "completed_at": "2023-01-25T03:37:15.913449Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:15.914213Z", "completed_at": "2023-01-25T03:37:15.914218Z"}], "thread_id": "Thread-3", "execution_time": 0.989628791809082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:15.016295Z", "completed_at": "2023-01-25T03:37:15.914046Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:15.914595Z", "completed_at": "2023-01-25T03:37:15.914599Z"}], "thread_id": "Thread-2", "execution_time": 0.9909937381744385, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:15.016397Z", "completed_at": "2023-01-25T03:37:15.913724Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:15.914422Z", "completed_at": "2023-01-25T03:37:15.914427Z"}], "thread_id": "Thread-4", "execution_time": 0.9909896850585938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:15.997156Z", "completed_at": "2023-01-25T03:37:16.827320Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:16.827705Z", "completed_at": "2023-01-25T03:37:16.827717Z"}], "thread_id": "Thread-1", "execution_time": 0.9139800071716309, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:16.008840Z", "completed_at": "2023-01-25T03:37:16.998492Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:16.998823Z", "completed_at": "2023-01-25T03:37:16.998833Z"}], "thread_id": "Thread-2", "execution_time": 1.0732369422912598, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:16.008751Z", "completed_at": "2023-01-25T03:37:16.998710Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:16.999188Z", "completed_at": "2023-01-25T03:37:16.999193Z"}], "thread_id": "Thread-3", "execution_time": 1.084118127822876, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:16.008939Z", "completed_at": "2023-01-25T03:37:16.999004Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:16.999500Z", "completed_at": "2023-01-25T03:37:16.999504Z"}], "thread_id": "Thread-4", "execution_time": 1.083953857421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:16.922597Z", "completed_at": "2023-01-25T03:37:17.777669Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:17.777897Z", "completed_at": "2023-01-25T03:37:17.777907Z"}], "thread_id": "Thread-1", "execution_time": 0.948632001876831, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:17.094262Z", "completed_at": "2023-01-25T03:37:18.006690Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.007315Z", "completed_at": "2023-01-25T03:37:18.007319Z"}], "thread_id": "Thread-3", "execution_time": 0.995945930480957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:17.082364Z", "completed_at": "2023-01-25T03:37:18.006493Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.007127Z", "completed_at": "2023-01-25T03:37:18.007137Z"}], "thread_id": "Thread-2", "execution_time": 1.0081491470336914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:17.094361Z", "completed_at": "2023-01-25T03:37:18.006600Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.007222Z", "completed_at": "2023-01-25T03:37:18.007227Z"}], "thread_id": "Thread-4", "execution_time": 0.9963760375976562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:17.862661Z", "completed_at": "2023-01-25T03:37:18.703176Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.703452Z", "completed_at": "2023-01-25T03:37:18.703462Z"}], "thread_id": "Thread-1", "execution_time": 0.9262099266052246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.789846Z", "completed_at": "2023-01-25T03:37:18.795083Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.795374Z", "completed_at": "2023-01-25T03:37:18.795394Z"}], "thread_id": "Thread-1", "execution_time": 0.006837129592895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.797085Z", "completed_at": "2023-01-25T03:37:18.813157Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.813431Z", "completed_at": "2023-01-25T03:37:18.813442Z"}], "thread_id": "Thread-1", "execution_time": 0.017614126205444336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.814867Z", "completed_at": "2023-01-25T03:37:18.827670Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.828137Z", "completed_at": "2023-01-25T03:37:18.828151Z"}], "thread_id": "Thread-1", "execution_time": 0.014568328857421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.830183Z", "completed_at": "2023-01-25T03:37:18.839829Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.840192Z", "completed_at": "2023-01-25T03:37:18.840202Z"}], "thread_id": "Thread-1", "execution_time": 0.010922908782958984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.841384Z", "completed_at": "2023-01-25T03:37:18.845423Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.845631Z", "completed_at": "2023-01-25T03:37:18.845638Z"}], "thread_id": "Thread-1", "execution_time": 0.004986763000488281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.846709Z", "completed_at": "2023-01-25T03:37:18.850374Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.850557Z", "completed_at": "2023-01-25T03:37:18.850563Z"}], "thread_id": "Thread-1", "execution_time": 0.004534006118774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.851690Z", "completed_at": "2023-01-25T03:37:18.856549Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.856750Z", "completed_at": "2023-01-25T03:37:18.856758Z"}], "thread_id": "Thread-1", "execution_time": 0.005825042724609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.857787Z", "completed_at": "2023-01-25T03:37:18.861941Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.862151Z", "completed_at": "2023-01-25T03:37:18.862159Z"}], "thread_id": "Thread-1", "execution_time": 0.005061149597167969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.863192Z", "completed_at": "2023-01-25T03:37:18.868767Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.868980Z", "completed_at": "2023-01-25T03:37:18.868990Z"}], "thread_id": "Thread-1", "execution_time": 0.006522178649902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.870146Z", "completed_at": "2023-01-25T03:37:18.873902Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.874121Z", "completed_at": "2023-01-25T03:37:18.874130Z"}], "thread_id": "Thread-1", "execution_time": 0.004673957824707031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.875172Z", "completed_at": "2023-01-25T03:37:18.879733Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.879930Z", "completed_at": "2023-01-25T03:37:18.879939Z"}], "thread_id": "Thread-1", "execution_time": 0.00543522834777832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.880919Z", "completed_at": "2023-01-25T03:37:18.884160Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.884361Z", "completed_at": "2023-01-25T03:37:18.884367Z"}], "thread_id": "Thread-1", "execution_time": 0.004071235656738281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.885448Z", "completed_at": "2023-01-25T03:37:18.889936Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.890113Z", "completed_at": "2023-01-25T03:37:18.890120Z"}], "thread_id": "Thread-1", "execution_time": 0.005372047424316406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.891045Z", "completed_at": "2023-01-25T03:37:18.895471Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.895647Z", "completed_at": "2023-01-25T03:37:18.895652Z"}], "thread_id": "Thread-1", "execution_time": 0.005218029022216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.896556Z", "completed_at": "2023-01-25T03:37:18.901094Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.901334Z", "completed_at": "2023-01-25T03:37:18.901343Z"}], "thread_id": "Thread-1", "execution_time": 0.005442142486572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.902544Z", "completed_at": "2023-01-25T03:37:18.906264Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.906440Z", "completed_at": "2023-01-25T03:37:18.906447Z"}], "thread_id": "Thread-1", "execution_time": 0.0046961307525634766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.907546Z", "completed_at": "2023-01-25T03:37:18.914197Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.914402Z", "completed_at": "2023-01-25T03:37:18.914409Z"}], "thread_id": "Thread-1", "execution_time": 0.007643938064575195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.915428Z", "completed_at": "2023-01-25T03:37:18.919679Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.919862Z", "completed_at": "2023-01-25T03:37:18.919871Z"}], "thread_id": "Thread-1", "execution_time": 0.005092144012451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.920815Z", "completed_at": "2023-01-25T03:37:18.923962Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.924237Z", "completed_at": "2023-01-25T03:37:18.924246Z"}], "thread_id": "Thread-1", "execution_time": 0.023518085479736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.971470Z", "completed_at": "2023-01-25T03:37:18.976867Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.977693Z", "completed_at": "2023-01-25T03:37:18.977697Z"}], "thread_id": "Thread-1", "execution_time": 0.007234096527099609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.979298Z", "completed_at": "2023-01-25T03:37:18.983640Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.983850Z", "completed_at": "2023-01-25T03:37:18.983863Z"}], "thread_id": "Thread-1", "execution_time": 0.005281925201416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.984957Z", "completed_at": "2023-01-25T03:37:18.989954Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.990151Z", "completed_at": "2023-01-25T03:37:18.990160Z"}], "thread_id": "Thread-1", "execution_time": 0.005881071090698242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.991478Z", "completed_at": "2023-01-25T03:37:19.038568Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.038758Z", "completed_at": "2023-01-25T03:37:19.038767Z"}], "thread_id": "Thread-1", "execution_time": 0.048152923583984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.040011Z", "completed_at": "2023-01-25T03:37:19.044676Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.044878Z", "completed_at": "2023-01-25T03:37:19.044885Z"}], "thread_id": "Thread-1", "execution_time": 0.005700111389160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.045873Z", "completed_at": "2023-01-25T03:37:19.049127Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.049309Z", "completed_at": "2023-01-25T03:37:19.049314Z"}], "thread_id": "Thread-1", "execution_time": 0.004069805145263672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.050245Z", "completed_at": "2023-01-25T03:37:19.054660Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.054855Z", "completed_at": "2023-01-25T03:37:19.054862Z"}], "thread_id": "Thread-1", "execution_time": 0.0052449703216552734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.092788Z", "completed_at": "2023-01-25T03:37:18.976202Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.977186Z", "completed_at": "2023-01-25T03:37:18.977196Z"}], "thread_id": "Thread-4", "execution_time": 0.967519998550415, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.055809Z", "completed_at": "2023-01-25T03:37:19.059216Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.060098Z", "completed_at": "2023-01-25T03:37:19.060105Z"}], "thread_id": "Thread-1", "execution_time": 0.005281686782836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.092677Z", "completed_at": "2023-01-25T03:37:18.976968Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.977779Z", "completed_at": "2023-01-25T03:37:18.977782Z"}], "thread_id": "Thread-2", "execution_time": 0.9756581783294678, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:18.092560Z", "completed_at": "2023-01-25T03:37:18.976430Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:18.977498Z", "completed_at": "2023-01-25T03:37:18.977503Z"}], "thread_id": "Thread-3", "execution_time": 0.9768650531768799, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.061164Z", "completed_at": "2023-01-25T03:37:19.068326Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.073229Z", "completed_at": "2023-01-25T03:37:19.073236Z"}], "thread_id": "Thread-4", "execution_time": 0.013537883758544922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.067634Z", "completed_at": "2023-01-25T03:37:19.073302Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.077906Z", "completed_at": "2023-01-25T03:37:19.077912Z"}], "thread_id": "Thread-1", "execution_time": 0.021380901336669922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.073468Z", "completed_at": "2023-01-25T03:37:19.083829Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.090070Z", "completed_at": "2023-01-25T03:37:19.090080Z"}], "thread_id": "Thread-2", "execution_time": 0.021785736083984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.073987Z", "completed_at": "2023-01-25T03:37:19.083955Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.090193Z", "completed_at": "2023-01-25T03:37:19.090202Z"}], "thread_id": "Thread-3", "execution_time": 0.02184581756591797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.083274Z", "completed_at": "2023-01-25T03:37:19.090275Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.095429Z", "completed_at": "2023-01-25T03:37:19.095435Z"}], "thread_id": "Thread-4", "execution_time": 0.014622926712036133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.089949Z", "completed_at": "2023-01-25T03:37:19.095501Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.097001Z", "completed_at": "2023-01-25T03:37:19.097006Z"}], "thread_id": "Thread-1", "execution_time": 0.014362096786499023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.097083Z", "completed_at": "2023-01-25T03:37:19.111770Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.112538Z", "completed_at": "2023-01-25T03:37:19.112547Z"}], "thread_id": "Thread-2", "execution_time": 0.0205533504486084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.097165Z", "completed_at": "2023-01-25T03:37:19.111860Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.112632Z", "completed_at": "2023-01-25T03:37:19.112637Z"}], "thread_id": "Thread-3", "execution_time": 0.02054882049560547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.107204Z", "completed_at": "2023-01-25T03:37:19.112452Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.116676Z", "completed_at": "2023-01-25T03:37:19.116682Z"}], "thread_id": "Thread-4", "execution_time": 0.020170927047729492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.112381Z", "completed_at": "2023-01-25T03:37:19.117125Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.118713Z", "completed_at": "2023-01-25T03:37:19.118719Z"}], "thread_id": "Thread-1", "execution_time": 0.012108802795410156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.119194Z", "completed_at": "2023-01-25T03:37:19.131995Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.132671Z", "completed_at": "2023-01-25T03:37:19.132677Z"}], "thread_id": "Thread-3", "execution_time": 0.01941704750061035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.119101Z", "completed_at": "2023-01-25T03:37:19.132074Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.132757Z", "completed_at": "2023-01-25T03:37:19.132762Z"}], "thread_id": "Thread-2", "execution_time": 0.02006697654724121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.127345Z", "completed_at": "2023-01-25T03:37:19.132591Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.137824Z", "completed_at": "2023-01-25T03:37:19.137829Z"}], "thread_id": "Thread-4", "execution_time": 0.019737958908081055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.132524Z", "completed_at": "2023-01-25T03:37:19.138244Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.139657Z", "completed_at": "2023-01-25T03:37:19.139661Z"}], "thread_id": "Thread-1", "execution_time": 0.012813091278076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.140088Z", "completed_at": "2023-01-25T03:37:19.152491Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.156166Z", "completed_at": "2023-01-25T03:37:19.156175Z"}], "thread_id": "Thread-2", "execution_time": 0.017806053161621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.140000Z", "completed_at": "2023-01-25T03:37:19.152565Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.156284Z", "completed_at": "2023-01-25T03:37:19.156290Z"}], "thread_id": "Thread-3", "execution_time": 0.01859116554260254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.148400Z", "completed_at": "2023-01-25T03:37:19.152988Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.157560Z", "completed_at": "2023-01-25T03:37:19.157568Z"}], "thread_id": "Thread-4", "execution_time": 0.01864910125732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.152708Z", "completed_at": "2023-01-25T03:37:19.157672Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.159417Z", "completed_at": "2023-01-25T03:37:19.159424Z"}], "thread_id": "Thread-1", "execution_time": 0.011417865753173828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.160404Z", "completed_at": "2023-01-25T03:37:19.173269Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.179719Z", "completed_at": "2023-01-25T03:37:19.179729Z"}], "thread_id": "Thread-2", "execution_time": 0.021697044372558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.160495Z", "completed_at": "2023-01-25T03:37:19.173343Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.179837Z", "completed_at": "2023-01-25T03:37:19.179843Z"}], "thread_id": "Thread-3", "execution_time": 0.021813392639160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.168862Z", "completed_at": "2023-01-25T03:37:19.173820Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.180975Z", "completed_at": "2023-01-25T03:37:19.180980Z"}], "thread_id": "Thread-4", "execution_time": 0.02198505401611328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.173501Z", "completed_at": "2023-01-25T03:37:19.181050Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.182630Z", "completed_at": "2023-01-25T03:37:19.182634Z"}], "thread_id": "Thread-1", "execution_time": 0.014358997344970703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.183566Z", "completed_at": "2023-01-25T03:37:19.197118Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.201861Z", "completed_at": "2023-01-25T03:37:19.201872Z"}], "thread_id": "Thread-3", "execution_time": 0.020278215408325195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.183482Z", "completed_at": "2023-01-25T03:37:19.197247Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.202104Z", "completed_at": "2023-01-25T03:37:19.202109Z"}], "thread_id": "Thread-2", "execution_time": 0.021218061447143555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.191367Z", "completed_at": "2023-01-25T03:37:19.197529Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.202719Z", "completed_at": "2023-01-25T03:37:19.202726Z"}], "thread_id": "Thread-4", "execution_time": 0.020821094512939453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.197339Z", "completed_at": "2023-01-25T03:37:19.202815Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.204576Z", "completed_at": "2023-01-25T03:37:19.204581Z"}], "thread_id": "Thread-1", "execution_time": 0.014005899429321289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.205699Z", "completed_at": "2023-01-25T03:37:19.215570Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.219132Z", "completed_at": "2023-01-25T03:37:19.219141Z"}], "thread_id": "Thread-3", "execution_time": 0.015561103820800781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.205997Z", "completed_at": "2023-01-25T03:37:19.215794Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.219362Z", "completed_at": "2023-01-25T03:37:19.219367Z"}], "thread_id": "Thread-2", "execution_time": 0.015568017959594727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.209417Z", "completed_at": "2023-01-25T03:37:19.215977Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.219864Z", "completed_at": "2023-01-25T03:37:19.219868Z"}], "thread_id": "Thread-4", "execution_time": 0.015710830688476562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.215711Z", "completed_at": "2023-01-25T03:37:19.219948Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.221554Z", "completed_at": "2023-01-25T03:37:19.221559Z"}], "thread_id": "Thread-1", "execution_time": 0.012942075729370117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.223874Z", "completed_at": "2023-01-25T03:37:19.235726Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.240612Z", "completed_at": "2023-01-25T03:37:19.240621Z"}], "thread_id": "Thread-3", "execution_time": 0.020046234130859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.224177Z", "completed_at": "2023-01-25T03:37:19.235983Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.240835Z", "completed_at": "2023-01-25T03:37:19.240840Z"}], "thread_id": "Thread-2", "execution_time": 0.02004718780517578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.227453Z", "completed_at": "2023-01-25T03:37:19.236152Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.241349Z", "completed_at": "2023-01-25T03:37:19.241354Z"}], "thread_id": "Thread-4", "execution_time": 0.020315170288085938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.235867Z", "completed_at": "2023-01-25T03:37:19.241422Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.243212Z", "completed_at": "2023-01-25T03:37:19.243217Z"}], "thread_id": "Thread-1", "execution_time": 0.016530990600585938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.244327Z", "completed_at": "2023-01-25T03:37:19.258504Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.263056Z", "completed_at": "2023-01-25T03:37:19.263065Z"}], "thread_id": "Thread-3", "execution_time": 0.020898818969726562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.244614Z", "completed_at": "2023-01-25T03:37:19.258919Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.263868Z", "completed_at": "2023-01-25T03:37:19.263873Z"}], "thread_id": "Thread-2", "execution_time": 0.021244049072265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.247860Z", "completed_at": "2023-01-25T03:37:19.262911Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.264031Z", "completed_at": "2023-01-25T03:37:19.264036Z"}], "thread_id": "Thread-4", "execution_time": 0.021358251571655273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.258697Z", "completed_at": "2023-01-25T03:37:19.263955Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.265664Z", "completed_at": "2023-01-25T03:37:19.265669Z"}], "thread_id": "Thread-1", "execution_time": 0.018560171127319336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.266915Z", "completed_at": "2023-01-25T03:37:19.276568Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.282231Z", "completed_at": "2023-01-25T03:37:19.282240Z"}], "thread_id": "Thread-3", "execution_time": 0.017657041549682617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.270616Z", "completed_at": "2023-01-25T03:37:19.277008Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.283003Z", "completed_at": "2023-01-25T03:37:19.283008Z"}], "thread_id": "Thread-2", "execution_time": 0.01763606071472168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.271001Z", "completed_at": "2023-01-25T03:37:19.282148Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.283170Z", "completed_at": "2023-01-25T03:37:19.283175Z"}], "thread_id": "Thread-4", "execution_time": 0.017452001571655273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.276734Z", "completed_at": "2023-01-25T03:37:19.283074Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.284661Z", "completed_at": "2023-01-25T03:37:19.284665Z"}], "thread_id": "Thread-1", "execution_time": 0.014984846115112305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.286148Z", "completed_at": "2023-01-25T03:37:19.294405Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.302281Z", "completed_at": "2023-01-25T03:37:19.302291Z"}], "thread_id": "Thread-3", "execution_time": 0.018592119216918945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.290613Z", "completed_at": "2023-01-25T03:37:19.299058Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.303106Z", "completed_at": "2023-01-25T03:37:19.303111Z"}], "thread_id": "Thread-2", "execution_time": 0.0185699462890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.291013Z", "completed_at": "2023-01-25T03:37:19.302371Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.303445Z", "completed_at": "2023-01-25T03:37:19.303449Z"}], "thread_id": "Thread-4", "execution_time": 0.01856374740600586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.298800Z", "completed_at": "2023-01-25T03:37:19.303174Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.304711Z", "completed_at": "2023-01-25T03:37:19.304716Z"}], "thread_id": "Thread-1", "execution_time": 0.014752864837646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.305613Z", "completed_at": "2023-01-25T03:37:19.315193Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.322864Z", "completed_at": "2023-01-25T03:37:19.322873Z"}], "thread_id": "Thread-3", "execution_time": 0.01941990852355957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.310677Z", "completed_at": "2023-01-25T03:37:19.319250Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.323706Z", "completed_at": "2023-01-25T03:37:19.323712Z"}], "thread_id": "Thread-2", "execution_time": 0.019406795501708984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.311108Z", "completed_at": "2023-01-25T03:37:19.322949Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.324084Z", "completed_at": "2023-01-25T03:37:19.324091Z"}], "thread_id": "Thread-4", "execution_time": 0.019482851028442383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.318988Z", "completed_at": "2023-01-25T03:37:19.323790Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.325753Z", "completed_at": "2023-01-25T03:37:19.325760Z"}], "thread_id": "Thread-1", "execution_time": 0.01594710350036621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.326897Z", "completed_at": "2023-01-25T03:37:19.335582Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.344104Z", "completed_at": "2023-01-25T03:37:19.344113Z"}], "thread_id": "Thread-3", "execution_time": 0.019985198974609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.331752Z", "completed_at": "2023-01-25T03:37:19.339611Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.344975Z", "completed_at": "2023-01-25T03:37:19.344980Z"}], "thread_id": "Thread-2", "execution_time": 0.019438743591308594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.332190Z", "completed_at": "2023-01-25T03:37:19.344189Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.345316Z", "completed_at": "2023-01-25T03:37:19.345321Z"}], "thread_id": "Thread-4", "execution_time": 0.019337892532348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.339354Z", "completed_at": "2023-01-25T03:37:19.345050Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.346653Z", "completed_at": "2023-01-25T03:37:19.346658Z"}], "thread_id": "Thread-1", "execution_time": 0.015572071075439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.347569Z", "completed_at": "2023-01-25T03:37:19.356599Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.365437Z", "completed_at": "2023-01-25T03:37:19.365447Z"}], "thread_id": "Thread-3", "execution_time": 0.020138978958129883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.352615Z", "completed_at": "2023-01-25T03:37:19.361496Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.366272Z", "completed_at": "2023-01-25T03:37:19.366277Z"}], "thread_id": "Thread-2", "execution_time": 0.019913911819458008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.353066Z", "completed_at": "2023-01-25T03:37:19.365515Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.366602Z", "completed_at": "2023-01-25T03:37:19.366606Z"}], "thread_id": "Thread-4", "execution_time": 0.019932031631469727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.361222Z", "completed_at": "2023-01-25T03:37:19.366348Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.367916Z", "completed_at": "2023-01-25T03:37:19.367922Z"}], "thread_id": "Thread-1", "execution_time": 0.016102313995361328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.368972Z", "completed_at": "2023-01-25T03:37:19.381572Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.385342Z", "completed_at": "2023-01-25T03:37:19.385353Z"}], "thread_id": "Thread-3", "execution_time": 0.01886725425720215, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.372929Z", "completed_at": "2023-01-25T03:37:19.381879Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.385617Z", "completed_at": "2023-01-25T03:37:19.385621Z"}], "thread_id": "Thread-2", "execution_time": 0.018255949020385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.373331Z", "completed_at": "2023-01-25T03:37:19.385068Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.386235Z", "completed_at": "2023-01-25T03:37:19.386241Z"}], "thread_id": "Thread-4", "execution_time": 0.018090009689331055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.381733Z", "completed_at": "2023-01-25T03:37:19.386138Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.387716Z", "completed_at": "2023-01-25T03:37:19.387721Z"}], "thread_id": "Thread-1", "execution_time": 0.015459299087524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.388978Z", "completed_at": "2023-01-25T03:37:19.399967Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.433718Z", "completed_at": "2023-01-25T03:37:19.433739Z"}], "thread_id": "Thread-3", "execution_time": 0.08169221878051758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.389263Z", "completed_at": "2023-01-25T03:37:19.400308Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.485902Z", "completed_at": "2023-01-25T03:37:19.485926Z"}], "thread_id": "Thread-2", "execution_time": 0.10075807571411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.392762Z", "completed_at": "2023-01-25T03:37:19.413137Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.487851Z", "completed_at": "2023-01-25T03:37:19.487860Z"}], "thread_id": "Thread-4", "execution_time": 0.1173858642578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.400046Z", "completed_at": "2023-01-25T03:37:19.487971Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.507215Z", "completed_at": "2023-01-25T03:37:19.507223Z"}], "thread_id": "Thread-1", "execution_time": 0.11597013473510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.508741Z", "completed_at": "2023-01-25T03:37:19.557621Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.562446Z", "completed_at": "2023-01-25T03:37:19.562456Z"}], "thread_id": "Thread-3", "execution_time": 0.05662989616394043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.520628Z", "completed_at": "2023-01-25T03:37:19.558078Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.563269Z", "completed_at": "2023-01-25T03:37:19.563274Z"}], "thread_id": "Thread-4", "execution_time": 0.05591917037963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.557906Z", "completed_at": "2023-01-25T03:37:19.563471Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.564227Z", "completed_at": "2023-01-25T03:37:19.564233Z"}], "thread_id": "Thread-1", "execution_time": 0.044016122817993164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.565116Z", "completed_at": "2023-01-25T03:37:19.568692Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.568871Z", "completed_at": "2023-01-25T03:37:19.568877Z"}], "thread_id": "Thread-3", "execution_time": 0.004843950271606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.570063Z", "completed_at": "2023-01-25T03:37:19.575186Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:19.575380Z", "completed_at": "2023-01-25T03:37:19.575387Z"}], "thread_id": "Thread-4", "execution_time": 0.0060269832611083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:19.520520Z", "completed_at": "2023-01-25T03:37:21.409624Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:21.410053Z", "completed_at": "2023-01-25T03:37:21.410101Z"}], "thread_id": "Thread-2", "execution_time": 1.9916131496429443, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:21.508954Z", "completed_at": "2023-01-25T03:37:21.531695Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:21.531957Z", "completed_at": "2023-01-25T03:37:21.531968Z"}], "thread_id": "Thread-1", "execution_time": 0.024334192276000977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:21.508714Z", "completed_at": "2023-01-25T03:37:22.718006Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.718250Z", "completed_at": "2023-01-25T03:37:22.718359Z"}], "thread_id": "Thread-3", "execution_time": 1.3006911277770996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.817187Z", "completed_at": "2023-01-25T03:37:22.826235Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.826487Z", "completed_at": "2023-01-25T03:37:22.826498Z"}], "thread_id": "Thread-2", "execution_time": 0.014113664627075195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.828421Z", "completed_at": "2023-01-25T03:37:22.846308Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.846736Z", "completed_at": "2023-01-25T03:37:22.846752Z"}], "thread_id": "Thread-1", "execution_time": 0.019322872161865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.848868Z", "completed_at": "2023-01-25T03:37:22.857776Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.858182Z", "completed_at": "2023-01-25T03:37:22.858192Z"}], "thread_id": "Thread-4", "execution_time": 0.010581016540527344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.862440Z", "completed_at": "2023-01-25T03:37:22.873069Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.882595Z", "completed_at": "2023-01-25T03:37:22.882640Z"}], "thread_id": "Thread-3", "execution_time": 0.023318052291870117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.868190Z", "completed_at": "2023-01-25T03:37:22.883038Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.886583Z", "completed_at": "2023-01-25T03:37:22.886594Z"}], "thread_id": "Thread-1", "execution_time": 0.02689361572265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.868847Z", "completed_at": "2023-01-25T03:37:22.885889Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.888228Z", "completed_at": "2023-01-25T03:37:22.888236Z"}], "thread_id": "Thread-2", "execution_time": 0.027549266815185547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.873276Z", "completed_at": "2023-01-25T03:37:22.886453Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.888528Z", "completed_at": "2023-01-25T03:37:22.888560Z"}], "thread_id": "Thread-4", "execution_time": 0.02828526496887207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.889752Z", "completed_at": "2023-01-25T03:37:22.901367Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.915018Z", "completed_at": "2023-01-25T03:37:22.915031Z"}], "thread_id": "Thread-3", "execution_time": 0.03538203239440918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.901223Z", "completed_at": "2023-01-25T03:37:22.922879Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.931982Z", "completed_at": "2023-01-25T03:37:22.931995Z"}], "thread_id": "Thread-1", "execution_time": 0.03266716003417969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.914126Z", "completed_at": "2023-01-25T03:37:22.924067Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.933094Z", "completed_at": "2023-01-25T03:37:22.933102Z"}], "thread_id": "Thread-2", "execution_time": 0.033529043197631836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.923210Z", "completed_at": "2023-01-25T03:37:22.933404Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.935456Z", "completed_at": "2023-01-25T03:37:22.935468Z"}], "thread_id": "Thread-4", "execution_time": 0.02161717414855957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.936325Z", "completed_at": "2023-01-25T03:37:22.939864Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.940085Z", "completed_at": "2023-01-25T03:37:22.940094Z"}], "thread_id": "Thread-3", "execution_time": 0.005563974380493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.942444Z", "completed_at": "2023-01-25T03:37:22.955101Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.955389Z", "completed_at": "2023-01-25T03:37:22.955399Z"}], "thread_id": "Thread-1", "execution_time": 0.014312982559204102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-25T03:37:22.947613Z", "completed_at": "2023-01-25T03:37:22.956563Z"}, {"name": "execute", "started_at": "2023-01-25T03:37:22.956979Z", "completed_at": "2023-01-25T03:37:22.956986Z"}], "thread_id": "Thread-2", "execution_time": 0.015436649322509766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"}], "elapsed_time": 16.005669116973877, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T04:04:14.137055Z", "invocation_id": "d39158d3-c135-411d-9a25-e6a76e3424ac", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.055722Z", "completed_at": "2023-02-14T04:04:01.088343Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.088833Z", "completed_at": "2023-02-14T04:04:01.088854Z"}], "thread_id": "Thread-1", "execution_time": 0.03587079048156738, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.056035Z", "completed_at": "2023-02-14T04:04:01.088649Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.089880Z", "completed_at": "2023-02-14T04:04:01.089886Z"}], "thread_id": "Thread-2", "execution_time": 0.03752589225769043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.074865Z", "completed_at": "2023-02-14T04:04:01.088718Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.089983Z", "completed_at": "2023-02-14T04:04:01.089988Z"}], "thread_id": "Thread-4", "execution_time": 0.037004947662353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.056194Z", "completed_at": "2023-02-14T04:04:01.088943Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.090393Z", "completed_at": "2023-02-14T04:04:01.090397Z"}], "thread_id": "Thread-3", "execution_time": 0.03817415237426758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.094145Z", "completed_at": "2023-02-14T04:04:01.137550Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.138042Z", "completed_at": "2023-02-14T04:04:01.138050Z"}], "thread_id": "Thread-1", "execution_time": 0.0463559627532959, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.126651Z", "completed_at": "2023-02-14T04:04:01.137967Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.138916Z", "completed_at": "2023-02-14T04:04:01.138921Z"}], "thread_id": "Thread-2", "execution_time": 0.046066999435424805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.126738Z", "completed_at": "2023-02-14T04:04:01.138121Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.139262Z", "completed_at": "2023-02-14T04:04:01.139267Z"}], "thread_id": "Thread-4", "execution_time": 0.04647183418273926, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.126908Z", "completed_at": "2023-02-14T04:04:01.138182Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.139365Z", "completed_at": "2023-02-14T04:04:01.139372Z"}], "thread_id": "Thread-3", "execution_time": 0.046452999114990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.141829Z", "completed_at": "2023-02-14T04:04:01.150057Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.157995Z", "completed_at": "2023-02-14T04:04:01.158002Z"}], "thread_id": "Thread-1", "execution_time": 0.018714189529418945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.146249Z", "completed_at": "2023-02-14T04:04:01.157873Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.158872Z", "completed_at": "2023-02-14T04:04:01.158876Z"}], "thread_id": "Thread-2", "execution_time": 0.018001794815063477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.146389Z", "completed_at": "2023-02-14T04:04:01.158075Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.159193Z", "completed_at": "2023-02-14T04:04:01.159198Z"}], "thread_id": "Thread-4", "execution_time": 0.018218040466308594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.146504Z", "completed_at": "2023-02-14T04:04:01.158151Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.159279Z", "completed_at": "2023-02-14T04:04:01.159283Z"}], "thread_id": "Thread-3", "execution_time": 0.018247127532958984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.161545Z", "completed_at": "2023-02-14T04:04:01.173177Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.176992Z", "completed_at": "2023-02-14T04:04:01.177000Z"}], "thread_id": "Thread-1", "execution_time": 0.017781734466552734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.165987Z", "completed_at": "2023-02-14T04:04:01.177071Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.178183Z", "completed_at": "2023-02-14T04:04:01.178188Z"}], "thread_id": "Thread-2", "execution_time": 0.017590999603271484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.166107Z", "completed_at": "2023-02-14T04:04:01.177143Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.178269Z", "completed_at": "2023-02-14T04:04:01.178274Z"}], "thread_id": "Thread-4", "execution_time": 0.017570018768310547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.166295Z", "completed_at": "2023-02-14T04:04:01.177597Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.178621Z", "completed_at": "2023-02-14T04:04:01.178625Z"}], "thread_id": "Thread-3", "execution_time": 0.01773381233215332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.180158Z", "completed_at": "2023-02-14T04:04:01.186283Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.196832Z", "completed_at": "2023-02-14T04:04:01.196839Z"}], "thread_id": "Thread-1", "execution_time": 0.018930912017822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.186127Z", "completed_at": "2023-02-14T04:04:01.197533Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.198708Z", "completed_at": "2023-02-14T04:04:01.198715Z"}], "thread_id": "Thread-4", "execution_time": 0.018493175506591797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.186013Z", "completed_at": "2023-02-14T04:04:01.197638Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.198801Z", "completed_at": "2023-02-14T04:04:01.198805Z"}], "thread_id": "Thread-2", "execution_time": 0.019144058227539062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.186223Z", "completed_at": "2023-02-14T04:04:01.197827Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.198973Z", "completed_at": "2023-02-14T04:04:01.198977Z"}], "thread_id": "Thread-3", "execution_time": 0.014712095260620117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.199763Z", "completed_at": "2023-02-14T04:04:01.205532Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.209273Z", "completed_at": "2023-02-14T04:04:01.209279Z"}], "thread_id": "Thread-1", "execution_time": 0.019197940826416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.205798Z", "completed_at": "2023-02-14T04:04:01.217758Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.218849Z", "completed_at": "2023-02-14T04:04:01.218854Z"}], "thread_id": "Thread-4", "execution_time": 0.014790773391723633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.206044Z", "completed_at": "2023-02-14T04:04:01.218111Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.219014Z", "completed_at": "2023-02-14T04:04:01.219018Z"}], "thread_id": "Thread-3", "execution_time": 0.014597177505493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.205965Z", "completed_at": "2023-02-14T04:04:01.218186Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.219096Z", "completed_at": "2023-02-14T04:04:01.219100Z"}], "thread_id": "Thread-2", "execution_time": 0.015222787857055664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.219512Z", "completed_at": "2023-02-14T04:04:01.225414Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.229860Z", "completed_at": "2023-02-14T04:04:01.229870Z"}], "thread_id": "Thread-1", "execution_time": 0.01801013946533203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.225686Z", "completed_at": "2023-02-14T04:04:01.236733Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.237776Z", "completed_at": "2023-02-14T04:04:01.237781Z"}], "thread_id": "Thread-4", "execution_time": 0.013890743255615234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.225858Z", "completed_at": "2023-02-14T04:04:01.236812Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.237960Z", "completed_at": "2023-02-14T04:04:01.237964Z"}], "thread_id": "Thread-3", "execution_time": 0.013966798782348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.225941Z", "completed_at": "2023-02-14T04:04:01.237274Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.238444Z", "completed_at": "2023-02-14T04:04:01.238448Z"}], "thread_id": "Thread-2", "execution_time": 0.01438283920288086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.238862Z", "completed_at": "2023-02-14T04:04:01.245565Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.253725Z", "completed_at": "2023-02-14T04:04:01.253745Z"}], "thread_id": "Thread-1", "execution_time": 0.02150702476501465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.245669Z", "completed_at": "2023-02-14T04:04:01.258622Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.260302Z", "completed_at": "2023-02-14T04:04:01.260310Z"}], "thread_id": "Thread-4", "execution_time": 0.01689887046813965, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.249652Z", "completed_at": "2023-02-14T04:04:01.259499Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.260862Z", "completed_at": "2023-02-14T04:04:01.260867Z"}], "thread_id": "Thread-2", "execution_time": 0.016410112380981445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.245848Z", "completed_at": "2023-02-14T04:04:01.260123Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.261371Z", "completed_at": "2023-02-14T04:04:01.261376Z"}], "thread_id": "Thread-3", "execution_time": 0.01755499839782715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.262009Z", "completed_at": "2023-02-14T04:04:01.268329Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.277474Z", "completed_at": "2023-02-14T04:04:01.277488Z"}], "thread_id": "Thread-1", "execution_time": 0.020704984664916992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.268252Z", "completed_at": "2023-02-14T04:04:01.281281Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.282409Z", "completed_at": "2023-02-14T04:04:01.282415Z"}], "thread_id": "Thread-4", "execution_time": 0.020285844802856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.268501Z", "completed_at": "2023-02-14T04:04:01.281452Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.282594Z", "completed_at": "2023-02-14T04:04:01.282598Z"}], "thread_id": "Thread-2", "execution_time": 0.01605701446533203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.272338Z", "completed_at": "2023-02-14T04:04:01.281939Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.283085Z", "completed_at": "2023-02-14T04:04:01.283089Z"}], "thread_id": "Thread-3", "execution_time": 0.016201019287109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.283512Z", "completed_at": "2023-02-14T04:04:01.286506Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.287349Z", "completed_at": "2023-02-14T04:04:01.287354Z"}], "thread_id": "Thread-1", "execution_time": 0.008008956909179688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.287112Z", "completed_at": "2023-02-14T04:04:01.290274Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.292336Z", "completed_at": "2023-02-14T04:04:01.292341Z"}], "thread_id": "Thread-4", "execution_time": 0.0071108341217041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.287272Z", "completed_at": "2023-02-14T04:04:01.291549Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.292516Z", "completed_at": "2023-02-14T04:04:01.292520Z"}], "thread_id": "Thread-2", "execution_time": 0.007009983062744141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.288665Z", "completed_at": "2023-02-14T04:04:01.291907Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.292986Z", "completed_at": "2023-02-14T04:04:01.292990Z"}], "thread_id": "Thread-3", "execution_time": 0.007161855697631836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.293370Z", "completed_at": "2023-02-14T04:04:01.296970Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.298036Z", "completed_at": "2023-02-14T04:04:01.298042Z"}], "thread_id": "Thread-1", "execution_time": 0.009174108505249023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.297769Z", "completed_at": "2023-02-14T04:04:01.301396Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.303557Z", "completed_at": "2023-02-14T04:04:01.303562Z"}], "thread_id": "Thread-4", "execution_time": 0.00785064697265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.297955Z", "completed_at": "2023-02-14T04:04:01.302730Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.303724Z", "completed_at": "2023-02-14T04:04:01.303728Z"}], "thread_id": "Thread-2", "execution_time": 0.007778167724609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.299621Z", "completed_at": "2023-02-14T04:04:01.303116Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.304215Z", "completed_at": "2023-02-14T04:04:01.304219Z"}], "thread_id": "Thread-3", "execution_time": 0.00795602798461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.304615Z", "completed_at": "2023-02-14T04:04:01.307361Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.308187Z", "completed_at": "2023-02-14T04:04:01.308191Z"}], "thread_id": "Thread-1", "execution_time": 0.007650852203369141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.307955Z", "completed_at": "2023-02-14T04:04:01.311078Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.314113Z", "completed_at": "2023-02-14T04:04:01.314122Z"}], "thread_id": "Thread-4", "execution_time": 0.008043050765991211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.308111Z", "completed_at": "2023-02-14T04:04:01.313116Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.314311Z", "completed_at": "2023-02-14T04:04:01.314315Z"}], "thread_id": "Thread-2", "execution_time": 0.008114814758300781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.309489Z", "completed_at": "2023-02-14T04:04:01.313455Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.314859Z", "completed_at": "2023-02-14T04:04:01.314863Z"}], "thread_id": "Thread-3", "execution_time": 0.008296012878417969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.315287Z", "completed_at": "2023-02-14T04:04:01.318744Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.319656Z", "completed_at": "2023-02-14T04:04:01.319662Z"}], "thread_id": "Thread-1", "execution_time": 0.009141683578491211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.319380Z", "completed_at": "2023-02-14T04:04:01.323102Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.325426Z", "completed_at": "2023-02-14T04:04:01.325432Z"}], "thread_id": "Thread-4", "execution_time": 0.008002042770385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.319568Z", "completed_at": "2023-02-14T04:04:01.324567Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.325604Z", "completed_at": "2023-02-14T04:04:01.325608Z"}], "thread_id": "Thread-2", "execution_time": 0.007889032363891602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.321100Z", "completed_at": "2023-02-14T04:04:01.324946Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.326089Z", "completed_at": "2023-02-14T04:04:01.326093Z"}], "thread_id": "Thread-3", "execution_time": 0.007997274398803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.326500Z", "completed_at": "2023-02-14T04:04:01.329161Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.329966Z", "completed_at": "2023-02-14T04:04:01.329970Z"}], "thread_id": "Thread-1", "execution_time": 0.00849008560180664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.329740Z", "completed_at": "2023-02-14T04:04:01.333750Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.335736Z", "completed_at": "2023-02-14T04:04:01.335741Z"}], "thread_id": "Thread-4", "execution_time": 0.0077669620513916016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.329892Z", "completed_at": "2023-02-14T04:04:01.334969Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.335899Z", "completed_at": "2023-02-14T04:04:01.335903Z"}], "thread_id": "Thread-2", "execution_time": 0.00787806510925293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.332163Z", "completed_at": "2023-02-14T04:04:01.335309Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.336382Z", "completed_at": "2023-02-14T04:04:01.336386Z"}], "thread_id": "Thread-3", "execution_time": 0.00787210464477539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.336845Z", "completed_at": "2023-02-14T04:04:01.339486Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.340305Z", "completed_at": "2023-02-14T04:04:01.340310Z"}], "thread_id": "Thread-1", "execution_time": 0.007591962814331055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.340074Z", "completed_at": "2023-02-14T04:04:01.343196Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.345519Z", "completed_at": "2023-02-14T04:04:01.345525Z"}], "thread_id": "Thread-4", "execution_time": 0.007350921630859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.340229Z", "completed_at": "2023-02-14T04:04:01.344611Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.345710Z", "completed_at": "2023-02-14T04:04:01.345714Z"}], "thread_id": "Thread-2", "execution_time": 0.007277250289916992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.341653Z", "completed_at": "2023-02-14T04:04:01.344962Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.346216Z", "completed_at": "2023-02-14T04:04:01.346220Z"}], "thread_id": "Thread-3", "execution_time": 0.007336139678955078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.346617Z", "completed_at": "2023-02-14T04:04:01.350469Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.351352Z", "completed_at": "2023-02-14T04:04:01.351358Z"}], "thread_id": "Thread-1", "execution_time": 0.008858203887939453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.351116Z", "completed_at": "2023-02-14T04:04:01.354205Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.356445Z", "completed_at": "2023-02-14T04:04:01.356450Z"}], "thread_id": "Thread-4", "execution_time": 0.007256269454956055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.351276Z", "completed_at": "2023-02-14T04:04:01.355619Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.356610Z", "completed_at": "2023-02-14T04:04:01.356614Z"}], "thread_id": "Thread-2", "execution_time": 0.007128238677978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.352667Z", "completed_at": "2023-02-14T04:04:01.355977Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.357072Z", "completed_at": "2023-02-14T04:04:01.357076Z"}], "thread_id": "Thread-3", "execution_time": 0.007146120071411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.357449Z", "completed_at": "2023-02-14T04:04:01.360055Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.360834Z", "completed_at": "2023-02-14T04:04:01.360839Z"}], "thread_id": "Thread-1", "execution_time": 0.008152008056640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.360616Z", "completed_at": "2023-02-14T04:04:01.364447Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.366458Z", "completed_at": "2023-02-14T04:04:01.366462Z"}], "thread_id": "Thread-4", "execution_time": 0.0075719356536865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.360762Z", "completed_at": "2023-02-14T04:04:01.365655Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.366621Z", "completed_at": "2023-02-14T04:04:01.366625Z"}], "thread_id": "Thread-2", "execution_time": 0.00762176513671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.362104Z", "completed_at": "2023-02-14T04:04:01.365989Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.367082Z", "completed_at": "2023-02-14T04:04:01.367086Z"}], "thread_id": "Thread-3", "execution_time": 0.007648944854736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.367503Z", "completed_at": "2023-02-14T04:04:01.370094Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.370981Z", "completed_at": "2023-02-14T04:04:01.370986Z"}], "thread_id": "Thread-1", "execution_time": 0.007524013519287109, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.370743Z", "completed_at": "2023-02-14T04:04:01.373808Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.375839Z", "completed_at": "2023-02-14T04:04:01.375843Z"}], "thread_id": "Thread-4", "execution_time": 0.006917238235473633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.370905Z", "completed_at": "2023-02-14T04:04:01.375063Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.376004Z", "completed_at": "2023-02-14T04:04:01.376007Z"}], "thread_id": "Thread-2", "execution_time": 0.006929874420166016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.372225Z", "completed_at": "2023-02-14T04:04:01.375414Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.376457Z", "completed_at": "2023-02-14T04:04:01.376461Z"}], "thread_id": "Thread-3", "execution_time": 0.006924152374267578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.376830Z", "completed_at": "2023-02-14T04:04:01.379443Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.380231Z", "completed_at": "2023-02-14T04:04:01.380235Z"}], "thread_id": "Thread-1", "execution_time": 0.008149147033691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.380006Z", "completed_at": "2023-02-14T04:04:01.383855Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.392305Z", "completed_at": "2023-02-14T04:04:01.392310Z"}], "thread_id": "Thread-4", "execution_time": 0.01403498649597168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.380154Z", "completed_at": "2023-02-14T04:04:01.391506Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.392469Z", "completed_at": "2023-02-14T04:04:01.392473Z"}], "thread_id": "Thread-2", "execution_time": 0.01407003402709961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.393402Z", "completed_at": "2023-02-14T04:04:02.309490Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:02.309727Z", "completed_at": "2023-02-14T04:04:02.309737Z"}], "thread_id": "Thread-1", "execution_time": 0.9991476535797119, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.399598Z", "completed_at": "2023-02-14T04:04:02.310042Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:02.310505Z", "completed_at": "2023-02-14T04:04:02.310509Z"}], "thread_id": "Thread-4", "execution_time": 1.0016982555389404, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.382288Z", "completed_at": "2023-02-14T04:04:02.309937Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:02.310350Z", "completed_at": "2023-02-14T04:04:02.310356Z"}], "thread_id": "Thread-3", "execution_time": 1.021310806274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.399673Z", "completed_at": "2023-02-14T04:04:02.310195Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:02.310665Z", "completed_at": "2023-02-14T04:04:02.310668Z"}], "thread_id": "Thread-2", "execution_time": 1.0024621486663818, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:02.392456Z", "completed_at": "2023-02-14T04:04:03.240620Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:03.240958Z", "completed_at": "2023-02-14T04:04:03.240982Z"}], "thread_id": "Thread-1", "execution_time": 0.9449470043182373, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:02.404377Z", "completed_at": "2023-02-14T04:04:03.328531Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:03.328820Z", "completed_at": "2023-02-14T04:04:03.328829Z"}], "thread_id": "Thread-3", "execution_time": 1.0069477558135986, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:02.404269Z", "completed_at": "2023-02-14T04:04:03.329222Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:03.329619Z", "completed_at": "2023-02-14T04:04:03.329623Z"}], "thread_id": "Thread-4", "execution_time": 1.0169289112091064, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:02.404476Z", "completed_at": "2023-02-14T04:04:03.329114Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:03.329514Z", "completed_at": "2023-02-14T04:04:03.329521Z"}], "thread_id": "Thread-2", "execution_time": 1.0165410041809082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:03.337625Z", "completed_at": "2023-02-14T04:04:04.220110Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:04.220440Z", "completed_at": "2023-02-14T04:04:04.220451Z"}], "thread_id": "Thread-1", "execution_time": 0.9637930393218994, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:03.422057Z", "completed_at": "2023-02-14T04:04:04.296555Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:04.297090Z", "completed_at": "2023-02-14T04:04:04.297096Z"}], "thread_id": "Thread-4", "execution_time": 0.9591870307922363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:03.422161Z", "completed_at": "2023-02-14T04:04:04.297171Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:04.297663Z", "completed_at": "2023-02-14T04:04:04.297668Z"}], "thread_id": "Thread-2", "execution_time": 0.9593632221221924, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:03.411106Z", "completed_at": "2023-02-14T04:04:04.296374Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:04.296926Z", "completed_at": "2023-02-14T04:04:04.296943Z"}], "thread_id": "Thread-3", "execution_time": 0.9707317352294922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:04.301680Z", "completed_at": "2023-02-14T04:04:05.144728Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:05.144954Z", "completed_at": "2023-02-14T04:04:05.144963Z"}], "thread_id": "Thread-1", "execution_time": 0.951653242111206, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:04.383656Z", "completed_at": "2023-02-14T04:04:05.285729Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:05.286448Z", "completed_at": "2023-02-14T04:04:05.286456Z"}], "thread_id": "Thread-4", "execution_time": 0.9921588897705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:04.390329Z", "completed_at": "2023-02-14T04:04:05.286257Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:05.292573Z", "completed_at": "2023-02-14T04:04:05.292579Z"}], "thread_id": "Thread-3", "execution_time": 1.0006771087646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:04.383850Z", "completed_at": "2023-02-14T04:04:05.285919Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:05.292232Z", "completed_at": "2023-02-14T04:04:05.292248Z"}], "thread_id": "Thread-2", "execution_time": 1.0016932487487793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:05.286183Z", "completed_at": "2023-02-14T04:04:06.143736Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:06.144030Z", "completed_at": "2023-02-14T04:04:06.144045Z"}], "thread_id": "Thread-1", "execution_time": 0.9488000869750977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:05.375470Z", "completed_at": "2023-02-14T04:04:06.235112Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:06.267024Z", "completed_at": "2023-02-14T04:04:06.267032Z"}], "thread_id": "Thread-4", "execution_time": 0.9753327369689941, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:05.385962Z", "completed_at": "2023-02-14T04:04:06.267686Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:06.268068Z", "completed_at": "2023-02-14T04:04:06.268073Z"}], "thread_id": "Thread-2", "execution_time": 0.9653260707855225, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:05.385874Z", "completed_at": "2023-02-14T04:04:06.267784Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:06.268150Z", "completed_at": "2023-02-14T04:04:06.268154Z"}], "thread_id": "Thread-3", "execution_time": 0.9825880527496338, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:06.235018Z", "completed_at": "2023-02-14T04:04:07.127432Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:07.127806Z", "completed_at": "2023-02-14T04:04:07.127816Z"}], "thread_id": "Thread-1", "execution_time": 0.9798061847686768, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:06.352598Z", "completed_at": "2023-02-14T04:04:07.311304Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:07.311643Z", "completed_at": "2023-02-14T04:04:07.311647Z"}], "thread_id": "Thread-2", "execution_time": 1.0489370822906494, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:06.368968Z", "completed_at": "2023-02-14T04:04:07.310900Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:07.311104Z", "completed_at": "2023-02-14T04:04:07.311112Z"}], "thread_id": "Thread-3", "execution_time": 1.0330309867858887, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:06.352493Z", "completed_at": "2023-02-14T04:04:07.311412Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:07.311721Z", "completed_at": "2023-02-14T04:04:07.311725Z"}], "thread_id": "Thread-4", "execution_time": 1.050842046737671, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:07.215691Z", "completed_at": "2023-02-14T04:04:08.138544Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:08.138931Z", "completed_at": "2023-02-14T04:04:08.138952Z"}], "thread_id": "Thread-1", "execution_time": 1.006993055343628, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:07.405003Z", "completed_at": "2023-02-14T04:04:08.296054Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:08.296563Z", "completed_at": "2023-02-14T04:04:08.296571Z"}], "thread_id": "Thread-2", "execution_time": 0.9747426509857178, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:07.405194Z", "completed_at": "2023-02-14T04:04:08.296168Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:08.296648Z", "completed_at": "2023-02-14T04:04:08.296652Z"}], "thread_id": "Thread-4", "execution_time": 0.9743280410766602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:07.405102Z", "completed_at": "2023-02-14T04:04:08.296474Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:08.296980Z", "completed_at": "2023-02-14T04:04:08.296985Z"}], "thread_id": "Thread-3", "execution_time": 0.9914641380310059, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:08.222691Z", "completed_at": "2023-02-14T04:04:09.083155Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:09.083458Z", "completed_at": "2023-02-14T04:04:09.083469Z"}], "thread_id": "Thread-1", "execution_time": 0.9570772647857666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:08.380848Z", "completed_at": "2023-02-14T04:04:09.294133Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:09.294446Z", "completed_at": "2023-02-14T04:04:09.294452Z"}], "thread_id": "Thread-4", "execution_time": 0.9968540668487549, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:08.396641Z", "completed_at": "2023-02-14T04:04:09.271672Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:09.293715Z", "completed_at": "2023-02-14T04:04:09.293724Z"}], "thread_id": "Thread-3", "execution_time": 0.9812920093536377, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:08.380717Z", "completed_at": "2023-02-14T04:04:09.290610Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:09.293829Z", "completed_at": "2023-02-14T04:04:09.293833Z"}], "thread_id": "Thread-2", "execution_time": 0.9983611106872559, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:09.181570Z", "completed_at": "2023-02-14T04:04:10.053143Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.053567Z", "completed_at": "2023-02-14T04:04:10.053590Z"}], "thread_id": "Thread-1", "execution_time": 0.9569289684295654, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.141046Z", "completed_at": "2023-02-14T04:04:10.164730Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.165036Z", "completed_at": "2023-02-14T04:04:10.165046Z"}], "thread_id": "Thread-1", "execution_time": 0.02587890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.166570Z", "completed_at": "2023-02-14T04:04:10.175668Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.175927Z", "completed_at": "2023-02-14T04:04:10.175935Z"}], "thread_id": "Thread-1", "execution_time": 0.010331869125366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.177258Z", "completed_at": "2023-02-14T04:04:10.181420Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.181647Z", "completed_at": "2023-02-14T04:04:10.181653Z"}], "thread_id": "Thread-1", "execution_time": 0.00531005859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.182785Z", "completed_at": "2023-02-14T04:04:10.186757Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.186976Z", "completed_at": "2023-02-14T04:04:10.186982Z"}], "thread_id": "Thread-1", "execution_time": 0.004930019378662109, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.188015Z", "completed_at": "2023-02-14T04:04:10.190919Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.191121Z", "completed_at": "2023-02-14T04:04:10.191127Z"}], "thread_id": "Thread-1", "execution_time": 0.0037980079650878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.192140Z", "completed_at": "2023-02-14T04:04:10.200569Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.200781Z", "completed_at": "2023-02-14T04:04:10.200788Z"}], "thread_id": "Thread-1", "execution_time": 0.00932002067565918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.201761Z", "completed_at": "2023-02-14T04:04:10.206856Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.207037Z", "completed_at": "2023-02-14T04:04:10.207043Z"}], "thread_id": "Thread-1", "execution_time": 0.0059130191802978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.207950Z", "completed_at": "2023-02-14T04:04:10.211123Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.211311Z", "completed_at": "2023-02-14T04:04:10.211316Z"}], "thread_id": "Thread-1", "execution_time": 0.003966808319091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.212234Z", "completed_at": "2023-02-14T04:04:10.216619Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.216795Z", "completed_at": "2023-02-14T04:04:10.216800Z"}], "thread_id": "Thread-1", "execution_time": 0.005192995071411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.217682Z", "completed_at": "2023-02-14T04:04:10.240115Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.265031Z", "completed_at": "2023-02-14T04:04:10.265040Z"}], "thread_id": "Thread-1", "execution_time": 0.04851722717285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.267564Z", "completed_at": "2023-02-14T04:04:10.272434Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.272642Z", "completed_at": "2023-02-14T04:04:10.272647Z"}], "thread_id": "Thread-1", "execution_time": 0.0061130523681640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.273645Z", "completed_at": "2023-02-14T04:04:10.276965Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.277144Z", "completed_at": "2023-02-14T04:04:10.277149Z"}], "thread_id": "Thread-1", "execution_time": 0.0041539669036865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.278052Z", "completed_at": "2023-02-14T04:04:10.282025Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.282201Z", "completed_at": "2023-02-14T04:04:10.282206Z"}], "thread_id": "Thread-1", "execution_time": 0.00475311279296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.283082Z", "completed_at": "2023-02-14T04:04:10.286697Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.286870Z", "completed_at": "2023-02-14T04:04:10.286875Z"}], "thread_id": "Thread-1", "execution_time": 0.004387855529785156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.287752Z", "completed_at": "2023-02-14T04:04:10.293588Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.293766Z", "completed_at": "2023-02-14T04:04:10.293772Z"}], "thread_id": "Thread-1", "execution_time": 0.006615638732910156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.294672Z", "completed_at": "2023-02-14T04:04:10.299115Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.299291Z", "completed_at": "2023-02-14T04:04:10.299297Z"}], "thread_id": "Thread-1", "execution_time": 0.005234718322753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.300212Z", "completed_at": "2023-02-14T04:04:10.304124Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.304297Z", "completed_at": "2023-02-14T04:04:10.304303Z"}], "thread_id": "Thread-1", "execution_time": 0.0046842098236083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.305200Z", "completed_at": "2023-02-14T04:04:10.308248Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.308426Z", "completed_at": "2023-02-14T04:04:10.308431Z"}], "thread_id": "Thread-1", "execution_time": 0.0038340091705322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.309297Z", "completed_at": "2023-02-14T04:04:10.312301Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.312470Z", "completed_at": "2023-02-14T04:04:10.312474Z"}], "thread_id": "Thread-1", "execution_time": 0.003765106201171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.313330Z", "completed_at": "2023-02-14T04:04:10.318199Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.318377Z", "completed_at": "2023-02-14T04:04:10.318383Z"}], "thread_id": "Thread-1", "execution_time": 0.005651950836181641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:09.381210Z", "completed_at": "2023-02-14T04:04:10.265572Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.266738Z", "completed_at": "2023-02-14T04:04:10.266742Z"}], "thread_id": "Thread-3", "execution_time": 0.9816610813140869, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:09.381302Z", "completed_at": "2023-02-14T04:04:10.265262Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.266561Z", "completed_at": "2023-02-14T04:04:10.266567Z"}], "thread_id": "Thread-2", "execution_time": 0.9817030429840088, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:09.381100Z", "completed_at": "2023-02-14T04:04:10.265475Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.266653Z", "completed_at": "2023-02-14T04:04:10.266658Z"}], "thread_id": "Thread-4", "execution_time": 0.9828569889068604, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.319281Z", "completed_at": "2023-02-14T04:04:10.363626Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.364830Z", "completed_at": "2023-02-14T04:04:10.364837Z"}], "thread_id": "Thread-1", "execution_time": 0.050128936767578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.364661Z", "completed_at": "2023-02-14T04:04:10.376353Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.377308Z", "completed_at": "2023-02-14T04:04:10.377314Z"}], "thread_id": "Thread-3", "execution_time": 0.014672994613647461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.364922Z", "completed_at": "2023-02-14T04:04:10.377044Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.377997Z", "completed_at": "2023-02-14T04:04:10.378002Z"}], "thread_id": "Thread-2", "execution_time": 0.017750024795532227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.368788Z", "completed_at": "2023-02-14T04:04:10.377122Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.378084Z", "completed_at": "2023-02-14T04:04:10.378090Z"}], "thread_id": "Thread-4", "execution_time": 0.017639875411987305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.377564Z", "completed_at": "2023-02-14T04:04:10.382587Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.383763Z", "completed_at": "2023-02-14T04:04:10.383768Z"}], "thread_id": "Thread-1", "execution_time": 0.012553930282592773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.383490Z", "completed_at": "2023-02-14T04:04:10.395990Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.396869Z", "completed_at": "2023-02-14T04:04:10.396874Z"}], "thread_id": "Thread-3", "execution_time": 0.015340805053710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.388748Z", "completed_at": "2023-02-14T04:04:10.396617Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.397530Z", "completed_at": "2023-02-14T04:04:10.397535Z"}], "thread_id": "Thread-2", "execution_time": 0.018297910690307617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.388834Z", "completed_at": "2023-02-14T04:04:10.396686Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.397621Z", "completed_at": "2023-02-14T04:04:10.397626Z"}], "thread_id": "Thread-4", "execution_time": 0.018339872360229492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.397113Z", "completed_at": "2023-02-14T04:04:10.402087Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.403200Z", "completed_at": "2023-02-14T04:04:10.403206Z"}], "thread_id": "Thread-1", "execution_time": 0.010913848876953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.403028Z", "completed_at": "2023-02-14T04:04:10.411026Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.416746Z", "completed_at": "2023-02-14T04:04:10.416753Z"}], "thread_id": "Thread-3", "execution_time": 0.015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.406832Z", "completed_at": "2023-02-14T04:04:10.416555Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.417425Z", "completed_at": "2023-02-14T04:04:10.417429Z"}], "thread_id": "Thread-2", "execution_time": 0.019641876220703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.407266Z", "completed_at": "2023-02-14T04:04:10.416921Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.422201Z", "completed_at": "2023-02-14T04:04:10.422207Z"}], "thread_id": "Thread-4", "execution_time": 0.020242929458618164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.416998Z", "completed_at": "2023-02-14T04:04:10.423121Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.424225Z", "completed_at": "2023-02-14T04:04:10.424230Z"}], "thread_id": "Thread-1", "execution_time": 0.011570930480957031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.423801Z", "completed_at": "2023-02-14T04:04:10.431000Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.435452Z", "completed_at": "2023-02-14T04:04:10.435458Z"}], "thread_id": "Thread-3", "execution_time": 0.013614654541015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.427281Z", "completed_at": "2023-02-14T04:04:10.435244Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.436193Z", "completed_at": "2023-02-14T04:04:10.436198Z"}], "thread_id": "Thread-2", "execution_time": 0.016463041305541992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.430747Z", "completed_at": "2023-02-14T04:04:10.435530Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.439440Z", "completed_at": "2023-02-14T04:04:10.439447Z"}], "thread_id": "Thread-4", "execution_time": 0.016518354415893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.435697Z", "completed_at": "2023-02-14T04:04:10.440751Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.442027Z", "completed_at": "2023-02-14T04:04:10.442032Z"}], "thread_id": "Thread-1", "execution_time": 0.012606143951416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.441422Z", "completed_at": "2023-02-14T04:04:10.450885Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.454539Z", "completed_at": "2023-02-14T04:04:10.454544Z"}], "thread_id": "Thread-3", "execution_time": 0.015040159225463867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.447122Z", "completed_at": "2023-02-14T04:04:10.454338Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.455290Z", "completed_at": "2023-02-14T04:04:10.455295Z"}], "thread_id": "Thread-2", "execution_time": 0.019299983978271484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.447635Z", "completed_at": "2023-02-14T04:04:10.454607Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.460031Z", "completed_at": "2023-02-14T04:04:10.460037Z"}], "thread_id": "Thread-4", "execution_time": 0.019559144973754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.454768Z", "completed_at": "2023-02-14T04:04:10.461342Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.462446Z", "completed_at": "2023-02-14T04:04:10.462450Z"}], "thread_id": "Thread-1", "execution_time": 0.012028932571411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.462007Z", "completed_at": "2023-02-14T04:04:10.470086Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.474897Z", "completed_at": "2023-02-14T04:04:10.474903Z"}], "thread_id": "Thread-3", "execution_time": 0.014857053756713867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.465667Z", "completed_at": "2023-02-14T04:04:10.474703Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.475570Z", "completed_at": "2023-02-14T04:04:10.475575Z"}], "thread_id": "Thread-2", "execution_time": 0.017356157302856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.466124Z", "completed_at": "2023-02-14T04:04:10.475071Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.479164Z", "completed_at": "2023-02-14T04:04:10.479168Z"}], "thread_id": "Thread-4", "execution_time": 0.01784992218017578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.475147Z", "completed_at": "2023-02-14T04:04:10.480058Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.481201Z", "completed_at": "2023-02-14T04:04:10.481206Z"}], "thread_id": "Thread-1", "execution_time": 0.00994420051574707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.480785Z", "completed_at": "2023-02-14T04:04:10.487473Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.492009Z", "completed_at": "2023-02-14T04:04:10.492015Z"}], "thread_id": "Thread-3", "execution_time": 0.01320505142211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.483828Z", "completed_at": "2023-02-14T04:04:10.491585Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.492242Z", "completed_at": "2023-02-14T04:04:10.492246Z"}], "thread_id": "Thread-2", "execution_time": 0.016647815704345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.487229Z", "completed_at": "2023-02-14T04:04:10.492080Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.497180Z", "completed_at": "2023-02-14T04:04:10.497185Z"}], "thread_id": "Thread-4", "execution_time": 0.017201900482177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.492156Z", "completed_at": "2023-02-14T04:04:10.497890Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.499045Z", "completed_at": "2023-02-14T04:04:10.499050Z"}], "thread_id": "Thread-1", "execution_time": 0.012376070022583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.498965Z", "completed_at": "2023-02-14T04:04:10.507193Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.510567Z", "completed_at": "2023-02-14T04:04:10.510574Z"}], "thread_id": "Thread-3", "execution_time": 0.013494014739990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.499389Z", "completed_at": "2023-02-14T04:04:10.510145Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.510802Z", "completed_at": "2023-02-14T04:04:10.510806Z"}], "thread_id": "Thread-2", "execution_time": 0.0167849063873291, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.507064Z", "completed_at": "2023-02-14T04:04:10.510640Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.515417Z", "completed_at": "2023-02-14T04:04:10.515423Z"}], "thread_id": "Thread-4", "execution_time": 0.017128944396972656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.510721Z", "completed_at": "2023-02-14T04:04:10.515992Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.517126Z", "completed_at": "2023-02-14T04:04:10.517131Z"}], "thread_id": "Thread-1", "execution_time": 0.013772010803222656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.517049Z", "completed_at": "2023-02-14T04:04:10.526778Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.531863Z", "completed_at": "2023-02-14T04:04:10.531870Z"}], "thread_id": "Thread-3", "execution_time": 0.016686201095581055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.517463Z", "completed_at": "2023-02-14T04:04:10.531635Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.532566Z", "completed_at": "2023-02-14T04:04:10.532571Z"}], "thread_id": "Thread-2", "execution_time": 0.020385026931762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.526704Z", "completed_at": "2023-02-14T04:04:10.532132Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.536983Z", "completed_at": "2023-02-14T04:04:10.536988Z"}], "thread_id": "Thread-4", "execution_time": 0.020576000213623047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.532070Z", "completed_at": "2023-02-14T04:04:10.537509Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.538683Z", "completed_at": "2023-02-14T04:04:10.538688Z"}], "thread_id": "Thread-1", "execution_time": 0.015460014343261719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.538520Z", "completed_at": "2023-02-14T04:04:10.546868Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.550610Z", "completed_at": "2023-02-14T04:04:10.550617Z"}], "thread_id": "Thread-3", "execution_time": 0.014050006866455078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.542086Z", "completed_at": "2023-02-14T04:04:10.547491Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.551301Z", "completed_at": "2023-02-14T04:04:10.551305Z"}], "thread_id": "Thread-2", "execution_time": 0.018618106842041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.546935Z", "completed_at": "2023-02-14T04:04:10.551367Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.557398Z", "completed_at": "2023-02-14T04:04:10.557403Z"}], "thread_id": "Thread-4", "execution_time": 0.019327402114868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.550838Z", "completed_at": "2023-02-14T04:04:10.557467Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.558669Z", "completed_at": "2023-02-14T04:04:10.558674Z"}], "thread_id": "Thread-1", "execution_time": 0.017177820205688477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.558339Z", "completed_at": "2023-02-14T04:04:10.568465Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.572178Z", "completed_at": "2023-02-14T04:04:10.572184Z"}], "thread_id": "Thread-3", "execution_time": 0.015767812728881836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.563711Z", "completed_at": "2023-02-14T04:04:10.572009Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.572954Z", "completed_at": "2023-02-14T04:04:10.572961Z"}], "thread_id": "Thread-2", "execution_time": 0.019945144653320312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.568660Z", "completed_at": "2023-02-14T04:04:10.572862Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.578105Z", "completed_at": "2023-02-14T04:04:10.578110Z"}], "thread_id": "Thread-4", "execution_time": 0.014883995056152344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.572414Z", "completed_at": "2023-02-14T04:04:10.578335Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.579512Z", "completed_at": "2023-02-14T04:04:10.579517Z"}], "thread_id": "Thread-1", "execution_time": 0.015290975570678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.579195Z", "completed_at": "2023-02-14T04:04:10.588222Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.591595Z", "completed_at": "2023-02-14T04:04:10.591601Z"}], "thread_id": "Thread-3", "execution_time": 0.0143280029296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.583751Z", "completed_at": "2023-02-14T04:04:10.591398Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.592339Z", "completed_at": "2023-02-14T04:04:10.592344Z"}], "thread_id": "Thread-2", "execution_time": 0.016561031341552734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.588315Z", "completed_at": "2023-02-14T04:04:10.592269Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.595901Z", "completed_at": "2023-02-14T04:04:10.595906Z"}], "thread_id": "Thread-4", "execution_time": 0.012996196746826172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.591829Z", "completed_at": "2023-02-14T04:04:10.596113Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.597262Z", "completed_at": "2023-02-14T04:04:10.597266Z"}], "thread_id": "Thread-1", "execution_time": 0.013705968856811523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.596957Z", "completed_at": "2023-02-14T04:04:10.605558Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.610382Z", "completed_at": "2023-02-14T04:04:10.610388Z"}], "thread_id": "Thread-3", "execution_time": 0.01533198356628418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.601883Z", "completed_at": "2023-02-14T04:04:10.610184Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.611147Z", "completed_at": "2023-02-14T04:04:10.611152Z"}], "thread_id": "Thread-2", "execution_time": 0.019068241119384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.605664Z", "completed_at": "2023-02-14T04:04:10.611081Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.616183Z", "completed_at": "2023-02-14T04:04:10.616189Z"}], "thread_id": "Thread-4", "execution_time": 0.01515507698059082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.610645Z", "completed_at": "2023-02-14T04:04:10.616402Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.617556Z", "completed_at": "2023-02-14T04:04:10.617560Z"}], "thread_id": "Thread-1", "execution_time": 0.01615309715270996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.617258Z", "completed_at": "2023-02-14T04:04:10.625371Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.629808Z", "completed_at": "2023-02-14T04:04:10.629815Z"}], "thread_id": "Thread-3", "execution_time": 0.014497995376586914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.621696Z", "completed_at": "2023-02-14T04:04:10.629598Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.630622Z", "completed_at": "2023-02-14T04:04:10.630627Z"}], "thread_id": "Thread-2", "execution_time": 0.017673969268798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.625476Z", "completed_at": "2023-02-14T04:04:10.630537Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.635061Z", "completed_at": "2023-02-14T04:04:10.635066Z"}], "thread_id": "Thread-4", "execution_time": 0.014204025268554688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.630068Z", "completed_at": "2023-02-14T04:04:10.635274Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.636444Z", "completed_at": "2023-02-14T04:04:10.636449Z"}], "thread_id": "Thread-1", "execution_time": 0.015384197235107422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.636134Z", "completed_at": "2023-02-14T04:04:10.645794Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.650397Z", "completed_at": "2023-02-14T04:04:10.650405Z"}], "thread_id": "Thread-3", "execution_time": 0.016216039657592773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.640712Z", "completed_at": "2023-02-14T04:04:10.650228Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.651248Z", "completed_at": "2023-02-14T04:04:10.651253Z"}], "thread_id": "Thread-2", "execution_time": 0.020561933517456055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.645893Z", "completed_at": "2023-02-14T04:04:10.651136Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.656895Z", "completed_at": "2023-02-14T04:04:10.656902Z"}], "thread_id": "Thread-4", "execution_time": 0.017166852951049805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.650641Z", "completed_at": "2023-02-14T04:04:10.657156Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.658391Z", "completed_at": "2023-02-14T04:04:10.658396Z"}], "thread_id": "Thread-1", "execution_time": 0.016089916229248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.658098Z", "completed_at": "2023-02-14T04:04:10.665447Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.670501Z", "completed_at": "2023-02-14T04:04:10.670508Z"}], "thread_id": "Thread-3", "execution_time": 0.014473915100097656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.661854Z", "completed_at": "2023-02-14T04:04:10.670424Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.671403Z", "completed_at": "2023-02-14T04:04:10.671407Z"}], "thread_id": "Thread-2", "execution_time": 0.018986940383911133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.665686Z", "completed_at": "2023-02-14T04:04:10.671244Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.677138Z", "completed_at": "2023-02-14T04:04:10.677144Z"}], "thread_id": "Thread-4", "execution_time": 0.016252994537353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.671312Z", "completed_at": "2023-02-14T04:04:10.677538Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.681681Z", "completed_at": "2023-02-14T04:04:10.681688Z"}], "thread_id": "Thread-1", "execution_time": 0.016447067260742188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.678256Z", "completed_at": "2023-02-14T04:04:10.685650Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.690278Z", "completed_at": "2023-02-14T04:04:10.690285Z"}], "thread_id": "Thread-3", "execution_time": 0.01391911506652832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.682069Z", "completed_at": "2023-02-14T04:04:10.690360Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.691342Z", "completed_at": "2023-02-14T04:04:10.691347Z"}], "thread_id": "Thread-2", "execution_time": 0.016920089721679688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.685907Z", "completed_at": "2023-02-14T04:04:10.691110Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.695099Z", "completed_at": "2023-02-14T04:04:10.695105Z"}], "thread_id": "Thread-4", "execution_time": 0.013904094696044922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.691048Z", "completed_at": "2023-02-14T04:04:10.695286Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.699429Z", "completed_at": "2023-02-14T04:04:10.699436Z"}], "thread_id": "Thread-1", "execution_time": 0.013996124267578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.695823Z", "completed_at": "2023-02-14T04:04:10.700496Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.708964Z", "completed_at": "2023-02-14T04:04:10.708972Z"}], "thread_id": "Thread-3", "execution_time": 0.015033721923828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.700321Z", "completed_at": "2023-02-14T04:04:10.709158Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.728764Z", "completed_at": "2023-02-14T04:04:10.728781Z"}], "thread_id": "Thread-2", "execution_time": 0.033661842346191406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.704373Z", "completed_at": "2023-02-14T04:04:10.709815Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.729905Z", "completed_at": "2023-02-14T04:04:10.729912Z"}], "thread_id": "Thread-4", "execution_time": 0.031271934509277344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.709644Z", "completed_at": "2023-02-14T04:04:10.730520Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.741994Z", "completed_at": "2023-02-14T04:04:10.742004Z"}], "thread_id": "Thread-1", "execution_time": 0.038278818130493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.731248Z", "completed_at": "2023-02-14T04:04:10.743199Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.780927Z", "completed_at": "2023-02-14T04:04:10.780939Z"}], "thread_id": "Thread-3", "execution_time": 0.05244326591491699, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.773709Z", "completed_at": "2023-02-14T04:04:10.786726Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.787016Z", "completed_at": "2023-02-14T04:04:10.787025Z"}], "thread_id": "Thread-4", "execution_time": 0.0452418327331543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.781960Z", "completed_at": "2023-02-14T04:04:10.787677Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.788258Z", "completed_at": "2023-02-14T04:04:10.788264Z"}], "thread_id": "Thread-1", "execution_time": 0.014654874801635742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.788818Z", "completed_at": "2023-02-14T04:04:10.792695Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.792889Z", "completed_at": "2023-02-14T04:04:10.792897Z"}], "thread_id": "Thread-3", "execution_time": 0.005233049392700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.794046Z", "completed_at": "2023-02-14T04:04:10.799291Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.799496Z", "completed_at": "2023-02-14T04:04:10.799505Z"}], "thread_id": "Thread-4", "execution_time": 0.0061359405517578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.742509Z", "completed_at": "2023-02-14T04:04:12.670577Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:12.670862Z", "completed_at": "2023-02-14T04:04:12.670872Z"}], "thread_id": "Thread-2", "execution_time": 2.0226008892059326, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:12.757114Z", "completed_at": "2023-02-14T04:04:12.781239Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:12.781483Z", "completed_at": "2023-02-14T04:04:12.781491Z"}], "thread_id": "Thread-1", "execution_time": 0.025722742080688477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:12.756965Z", "completed_at": "2023-02-14T04:04:13.965176Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:13.965486Z", "completed_at": "2023-02-14T04:04:13.965496Z"}], "thread_id": "Thread-3", "execution_time": 1.292569875717163, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.050138Z", "completed_at": "2023-02-14T04:04:14.058307Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.058624Z", "completed_at": "2023-02-14T04:04:14.058634Z"}], "thread_id": "Thread-2", "execution_time": 0.009929895401000977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.060393Z", "completed_at": "2023-02-14T04:04:14.071958Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.072208Z", "completed_at": "2023-02-14T04:04:14.072216Z"}], "thread_id": "Thread-1", "execution_time": 0.012820959091186523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.073746Z", "completed_at": "2023-02-14T04:04:14.079265Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.079492Z", "completed_at": "2023-02-14T04:04:14.079500Z"}], "thread_id": "Thread-4", "execution_time": 0.006620883941650391, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.082575Z", "completed_at": "2023-02-14T04:04:14.093844Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.094297Z", "completed_at": "2023-02-14T04:04:14.094304Z"}], "thread_id": "Thread-3", "execution_time": 0.014095067977905273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.082675Z", "completed_at": "2023-02-14T04:04:14.094087Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.095170Z", "completed_at": "2023-02-14T04:04:14.095175Z"}], "thread_id": "Thread-1", "execution_time": 0.014702081680297852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.082869Z", "completed_at": "2023-02-14T04:04:14.094183Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.095267Z", "completed_at": "2023-02-14T04:04:14.095271Z"}], "thread_id": "Thread-4", "execution_time": 0.014413118362426758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.082773Z", "completed_at": "2023-02-14T04:04:14.094390Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.095511Z", "completed_at": "2023-02-14T04:04:14.095517Z"}], "thread_id": "Thread-2", "execution_time": 0.015447139739990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.097585Z", "completed_at": "2023-02-14T04:04:14.104242Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.120523Z", "completed_at": "2023-02-14T04:04:14.120530Z"}], "thread_id": "Thread-3", "execution_time": 0.02473282814025879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.103946Z", "completed_at": "2023-02-14T04:04:14.120438Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.121381Z", "completed_at": "2023-02-14T04:04:14.121385Z"}], "thread_id": "Thread-1", "execution_time": 0.02418828010559082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.109786Z", "completed_at": "2023-02-14T04:04:14.120844Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.122116Z", "completed_at": "2023-02-14T04:04:14.122121Z"}], "thread_id": "Thread-4", "execution_time": 0.0193479061126709, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.109879Z", "completed_at": "2023-02-14T04:04:14.121310Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.122206Z", "completed_at": "2023-02-14T04:04:14.122211Z"}], "thread_id": "Thread-2", "execution_time": 0.019375085830688477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.123571Z", "completed_at": "2023-02-14T04:04:14.125854Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.126029Z", "completed_at": "2023-02-14T04:04:14.126034Z"}], "thread_id": "Thread-3", "execution_time": 0.003056764602661133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.127627Z", "completed_at": "2023-02-14T04:04:14.135072Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.135414Z", "completed_at": "2023-02-14T04:04:14.135420Z"}], "thread_id": "Thread-1", "execution_time": 0.008647918701171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.127551Z", "completed_at": "2023-02-14T04:04:14.135144Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.135498Z", "completed_at": "2023-02-14T04:04:14.135503Z"}], "thread_id": "Thread-4", "execution_time": 0.009241104125976562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a"}], "elapsed_time": 15.876301050186157, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file From 1a0be6cc7127c3295cdac04859c2dca26e75694e Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Tue, 14 Feb 2023 11:09:51 -0800 Subject: [PATCH 5/9] Regen docs --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index 2d3a8a89..a87cd7e1 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T04:04:15.897933Z", "invocation_id": "d39158d3-c135-411d-9a25-e6a76e3424ac", "env": {}}, "nodes": {"seed.quickbooks_integration_tests.account_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.account_data"}, "seed.quickbooks_integration_tests.address_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.address_data"}, "seed.quickbooks_integration_tests.bill_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, "seed.quickbooks_integration_tests.bill_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, "seed.quickbooks_integration_tests.bill_payment_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, "seed.quickbooks_integration_tests.bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, "seed.quickbooks_integration_tests.bundle_item_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, "seed.quickbooks_integration_tests.credit_memo_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, "seed.quickbooks_integration_tests.customer_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, "seed.quickbooks_integration_tests.department_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.department_data"}, "seed.quickbooks_integration_tests.deposit_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, "seed.quickbooks_integration_tests.deposit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, "seed.quickbooks_integration_tests.estimate_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, "seed.quickbooks_integration_tests.estimate_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, "seed.quickbooks_integration_tests.invoice_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, "seed.quickbooks_integration_tests.invoice_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, "seed.quickbooks_integration_tests.item_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.item_data"}, "seed.quickbooks_integration_tests.journal_entry_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, "seed.quickbooks_integration_tests.payment_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, "seed.quickbooks_integration_tests.payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, "seed.quickbooks_integration_tests.purchase_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, "seed.quickbooks_integration_tests.purchase_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, "seed.quickbooks_integration_tests.purchase_order_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, "seed.quickbooks_integration_tests.refund_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, "seed.quickbooks_integration_tests.sales_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, "seed.quickbooks_integration_tests.transfer_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, "seed.quickbooks_integration_tests.vendor_credit_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, "seed.quickbooks_integration_tests.vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, "model.quickbooks.int_quickbooks__account_classifications": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__account_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 5, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 7, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 8, "name": "account_sub_type", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "classification": {"type": "text", "index": 17, "name": "classification", "comment": null}, "multiplier": {"type": "integer", "index": 18, "name": "multiplier", "comment": null}, "financial_statement_helper": {"type": "text", "index": 19, "name": "financial_statement_helper", "comment": null}, "transaction_type": {"type": "text", "index": 20, "name": "transaction_type", "comment": null}, "adjusted_balance": {"type": "integer", "index": 21, "name": "adjusted_balance", "comment": null}, "parent_account_number": {"type": "text", "index": 22, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 23, "name": "parent_account_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, "model.quickbooks.int_quickbooks__bill_join": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__bill_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "payable_account_id": {"type": "text", "index": 7, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 9, "name": "current_balance", "comment": null}, "due_date": {"type": "date", "index": 10, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "date", "index": 11, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "date", "index": 12, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "bigint", "index": 13, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, "model.quickbooks.int_quickbooks__bill_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__bill_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__cash_flow_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__credit_memo_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, "model.quickbooks.int_quickbooks__deposit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__deposit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, "model.quickbooks.int_quickbooks__expenses_union": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__expenses_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "numeric(28,6)", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "numeric(28,6)", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_balances", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "bigint", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_date_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 11, "name": "financial_statement_helper", "comment": null}, "class_id": {"type": "text", "index": 12, "name": "class_id", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_index": {"type": "bigint", "index": 16, "name": "period_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, "model.quickbooks.int_quickbooks__invoice_join": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__invoice_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 8, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 9, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 10, "name": "delivery_type", "comment": null}, "total_amount": {"type": "integer", "index": 11, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 12, "name": "current_balance", "comment": null}, "estimate_total_amount": {"type": "double precision", "index": 13, "name": "estimate_total_amount", "comment": null}, "estimate_status": {"type": "text", "index": 14, "name": "estimate_status", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 15, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 16, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 17, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "double precision", "index": 18, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, "model.quickbooks.int_quickbooks__invoice_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__invoice_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__journal_entry_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, "model.quickbooks.int_quickbooks__purchase_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__purchase_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__refund_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, "model.quickbooks.int_quickbooks__retained_earnings": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__retained_earnings", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__sales_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, "model.quickbooks.int_quickbooks__sales_union": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__sales_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "int_quickbooks__vendor_credit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__ap_ar_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_name": {"type": "text", "index": 6, "name": "department_name", "comment": null}, "transaction_with": {"type": "text", "index": 7, "name": "transaction_with", "comment": null}, "customer_vendor_name": {"type": "text", "index": 8, "name": "customer_vendor_name", "comment": null}, "customer_vendor_balance": {"type": "integer", "index": 9, "name": "customer_vendor_balance", "comment": null}, "customer_vendor_address_city": {"type": "text", "index": 10, "name": "customer_vendor_address_city", "comment": null}, "customer_vendor_address_country": {"type": "text", "index": 11, "name": "customer_vendor_address_country", "comment": null}, "customer_vendor_address_line": {"type": "text", "index": 12, "name": "customer_vendor_address_line", "comment": null}, "customer_vendor_website": {"type": "integer", "index": 13, "name": "customer_vendor_website", "comment": null}, "delivery_type": {"type": "text", "index": 14, "name": "delivery_type", "comment": null}, "estimate_status": {"type": "text", "index": 15, "name": "estimate_status", "comment": null}, "total_amount": {"type": "integer", "index": 16, "name": "total_amount", "comment": null}, "estimate_amount": {"type": "double precision", "index": 17, "name": "estimate_amount", "comment": null}, "current_balance": {"type": "integer", "index": 18, "name": "current_balance", "comment": null}, "total_current_payment": {"type": "double precision", "index": 19, "name": "total_current_payment", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 20, "name": "due_date", "comment": null}, "is_overdue": {"type": "boolean", "index": 21, "name": "is_overdue", "comment": null}, "days_overdue": {"type": "integer", "index": 22, "name": "days_overdue", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 23, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 24, "name": "recent_payment_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, "analysis.quickbooks.quickbooks__balance_sheet": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__balance_sheet", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, "model.quickbooks.quickbooks__cash_flow_statement": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__cash_flow_statement", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}, "cash_beginning_period": {"type": "numeric", "index": 17, "name": "cash_beginning_period", "comment": null}, "cash_net_period": {"type": "numeric", "index": 18, "name": "cash_net_period", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__expenses_sales_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, "model.quickbooks.quickbooks__general_ledger": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__general_ledger", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"unique_id": {"type": "text", "index": 1, "name": "unique_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_index": {"type": "integer", "index": 4, "name": "transaction_index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 6, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 7, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 8, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 10, "name": "class_id", "comment": null}, "account_number": {"type": "text", "index": 11, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 13, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 14, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 15, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 16, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 17, "name": "account_sub_type", "comment": null}, "financial_statement_helper": {"type": "text", "index": 18, "name": "financial_statement_helper", "comment": null}, "account_current_balance": {"type": "integer", "index": 19, "name": "account_current_balance", "comment": null}, "account_class": {"type": "text", "index": 20, "name": "account_class", "comment": null}, "transaction_type": {"type": "text", "index": 21, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 22, "name": "transaction_source", "comment": null}, "account_transaction_type": {"type": "text", "index": 23, "name": "account_transaction_type", "comment": null}, "adjusted_amount": {"type": "integer", "index": 24, "name": "adjusted_amount", "comment": null}, "running_balance": {"type": "bigint", "index": 25, "name": "running_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, "model.quickbooks.quickbooks__general_ledger_by_period": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__general_ledger_by_period", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}, "account_ordinal": {"type": "integer", "index": 19, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, "model.quickbooks.quickbooks__profit_and_loss": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks", "name": "quickbooks__profit_and_loss", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, "model.quickbooks.int_quickbooks__bill_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__credit_memo_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__deposit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__invoice_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__journal_entry_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, "model.quickbooks.int_quickbooks__payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__purchase_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__refund_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__sales_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__transfer_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__vendor_credit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 4, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 6, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 7, "name": "account_sub_type", "comment": null}, "classification": {"type": "text", "index": 8, "name": "classification", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, "model.quickbooks_source.stg_quickbooks__address": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "text", "index": 1, "name": "address_id", "comment": null}, "city": {"type": "text", "index": 2, "name": "city", "comment": null}, "country": {"type": "text", "index": 3, "name": "country", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "postal_code": {"type": "integer", "index": 6, "name": "postal_code", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, "model.quickbooks_source.stg_quickbooks__bill": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "due_date_at": {"type": "date", "index": 6, "name": "due_date_at", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "payable_account_id": {"type": "text", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, "model.quickbooks_source.stg_quickbooks__bill_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 9, "name": "item_expense_customer_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 10, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "text", "index": 3, "name": "bill_payment_id", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "text", "index": 2, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 3, "name": "check_print_status", "comment": null}, "credit_card_account_id": {"type": "text", "index": 4, "name": "credit_card_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 5, "name": "exchange_rate", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "pay_type": {"type": "text", "index": 8, "name": "pay_type", "comment": null}, "total_amount": {"type": "integer", "index": 9, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "bill_id": {"type": "text", "index": 4, "name": "bill_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 6, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 7, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 8, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 9, "name": "vendor_credit_id", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "fully_qualified_name": {"type": "text", "index": 4, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 5, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "text", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "name": "item_quantity", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "class_id": {"type": "text", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 8, "name": "customer_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 10, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 5, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "text", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, "model.quickbooks_source.stg_quickbooks__customer": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "text", "index": 1, "name": "customer_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 3, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 4, "name": "balance_with_jobs", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 5, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "fully_qualified_name": {"type": "text", "index": 7, "name": "fully_qualified_name", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "website": {"type": "integer", "index": 10, "name": "website", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, "model.quickbooks_source.stg_quickbooks__department": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "is_sub_department": {"type": "boolean", "index": 7, "name": "is_sub_department", "comment": null}, "parent_department_id": {"type": "integer", "index": 8, "name": "parent_department_id", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "total_amount": {"type": "integer", "index": 6, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "integer", "index": 8, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "deposit_account_id": {"type": "text", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "text", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "text", "index": 7, "name": "deposit_customer_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "text", "index": 2, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "due_date": {"type": "integer", "index": 7, "name": "due_date", "comment": null}, "total_amount": {"type": "double precision", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 10, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "discount_account_id": {"type": "integer", "index": 4, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 5, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 7, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 8, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "item_id": {"type": "integer", "index": 10, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "account_id": {"type": "integer", "index": 12, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 7, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 11, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 12, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 13, "name": "delivery_type", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 14, "name": "due_date", "comment": null}, "class_id": {"type": "text", "index": 15, "name": "class_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 16, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 6, "name": "sales_item_class_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "integer", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 13, "name": "bundle_quantity", "comment": null}, "bundle_id": {"type": "text", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "text", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "text", "index": 16, "name": "item_id", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "text", "index": 3, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "quantity": {"type": "double precision", "index": 8, "name": "quantity", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "invoice_line_index": {"type": "integer", "index": 12, "name": "invoice_line_index", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "text", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "text", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, "model.quickbooks_source.stg_quickbooks__item": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "text", "index": 1, "name": "item_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "income_account_id": {"type": "text", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "text", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "text", "index": 6, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "purchase_cost": {"type": "integer", "index": 8, "name": "purchase_cost", "comment": null}, "taxable": {"type": "boolean", "index": 9, "name": "taxable", "comment": null}, "type": {"type": "text", "index": 10, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "inventory_start_date": {"type": "integer", "index": 12, "name": "inventory_start_date", "comment": null}, "parent_item_id": {"type": "text", "index": 13, "name": "parent_item_id", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "is_adjustment": {"type": "boolean", "index": 2, "name": "is_adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 9, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 7, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "billable_status": {"type": "integer", "index": 9, "name": "billable_status", "comment": null}, "posting_type": {"type": "text", "index": 10, "name": "posting_type", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, "model.quickbooks_source.stg_quickbooks__payment": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "unapplied_amount": {"type": "integer", "index": 2, "name": "unapplied_amount", "comment": null}, "total_amount": {"type": "double precision", "index": 3, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "receivable_account_id": {"type": "text", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 7, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 8, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "journal_entry_id": {"type": "integer", "index": 4, "name": "journal_entry_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "invoice_id": {"type": "text", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "credit": {"type": "boolean", "index": 7, "name": "credit", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "payment_type": {"type": "text", "index": 9, "name": "payment_type", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 13, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 14, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 15, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 6, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 7, "name": "account_expense_tax_code_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 9, "name": "item_expense_billable_status", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 10, "name": "item_expense_customer_id", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "text", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 10, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 11, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 12, "name": "sales_item_tax_code_id", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 5, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 11, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 12, "name": "sales_item_unit_price", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__transfer": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "text", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "text", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "text", "index": 4, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "text", "index": 1, "name": "vendor_id", "comment": null}, "account_number": {"type": "integer", "index": 2, "name": "account_number", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "billing_address_id": {"type": "text", "index": 5, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "web_url": {"type": "integer", "index": 10, "name": "web_url", "comment": null}, "is_vendor_1099": {"type": "boolean", "index": 11, "name": "is_vendor_1099", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "payable_account_id": {"type": "text", "index": 8, "name": "payable_account_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "transaction_date": {"type": "date", "index": 11, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "text", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 9, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 10, "name": "item_expense_quantity", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 11, "name": "item_expense_unit_price", "comment": null}, "item_expense_class_id": {"type": "text", "index": 12, "name": "item_expense_class_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 13, "name": "item_expense_billable_status", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"metadata": {"type": "VIEW", "schema": "jira_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.account"}, "source.quickbooks_source.quickbooks.address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.address"}, "source.quickbooks_source.quickbooks.bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill"}, "source.quickbooks_source.quickbooks.bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_line"}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn"}, "source.quickbooks_source.quickbooks.bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment"}, "source.quickbooks_source.quickbooks.bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line"}, "source.quickbooks_source.quickbooks.bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle"}, "source.quickbooks_source.quickbooks.bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle_item"}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn"}, "source.quickbooks_source.quickbooks.credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo"}, "source.quickbooks_source.quickbooks.credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line"}, "source.quickbooks_source.quickbooks.customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.customer"}, "source.quickbooks_source.quickbooks.department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.department"}, "source.quickbooks_source.quickbooks.deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit"}, "source.quickbooks_source.quickbooks.deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit_line"}, "source.quickbooks_source.quickbooks.estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate"}, "source.quickbooks_source.quickbooks.estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate_line"}, "source.quickbooks_source.quickbooks.invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice"}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle"}, "source.quickbooks_source.quickbooks.invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line"}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn"}, "source.quickbooks_source.quickbooks.item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.item"}, "source.quickbooks_source.quickbooks.journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry"}, "source.quickbooks_source.quickbooks.journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line"}, "source.quickbooks_source.quickbooks.payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment"}, "source.quickbooks_source.quickbooks.payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment_line"}, "source.quickbooks_source.quickbooks.purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase"}, "source.quickbooks_source.quickbooks.purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_line"}, "source.quickbooks_source.quickbooks.purchase_order": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order"}, "source.quickbooks_source.quickbooks.purchase_order_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line"}, "source.quickbooks_source.quickbooks.refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt"}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line"}, "source.quickbooks_source.quickbooks.sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt"}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line"}, "source.quickbooks_source.quickbooks.transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.transfer"}, "source.quickbooks_source.quickbooks.vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit"}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line"}, "source.quickbooks_source.quickbooks.vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T19:09:14.826260Z", "invocation_id": "740b6cd8-3bf3-4a2b-99f7-4f7af9e39f64", "env": {}}, "nodes": {"seed.quickbooks_integration_tests.account_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.account_data"}, "seed.quickbooks_integration_tests.address_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.address_data"}, "seed.quickbooks_integration_tests.bill_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, "seed.quickbooks_integration_tests.bill_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, "seed.quickbooks_integration_tests.bill_payment_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, "seed.quickbooks_integration_tests.bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, "seed.quickbooks_integration_tests.bundle_item_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, "seed.quickbooks_integration_tests.credit_memo_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, "seed.quickbooks_integration_tests.customer_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, "seed.quickbooks_integration_tests.department_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.department_data"}, "seed.quickbooks_integration_tests.deposit_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, "seed.quickbooks_integration_tests.deposit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, "seed.quickbooks_integration_tests.estimate_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, "seed.quickbooks_integration_tests.estimate_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, "seed.quickbooks_integration_tests.invoice_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, "seed.quickbooks_integration_tests.invoice_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, "seed.quickbooks_integration_tests.item_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.item_data"}, "seed.quickbooks_integration_tests.journal_entry_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, "seed.quickbooks_integration_tests.payment_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, "seed.quickbooks_integration_tests.payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, "seed.quickbooks_integration_tests.purchase_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, "seed.quickbooks_integration_tests.purchase_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, "seed.quickbooks_integration_tests.purchase_order_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, "seed.quickbooks_integration_tests.refund_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, "seed.quickbooks_integration_tests.sales_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, "seed.quickbooks_integration_tests.transfer_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, "seed.quickbooks_integration_tests.vendor_credit_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, "seed.quickbooks_integration_tests.vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, "model.quickbooks.int_quickbooks__account_classifications": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__account_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 5, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 7, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 8, "name": "account_sub_type", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "classification": {"type": "text", "index": 17, "name": "classification", "comment": null}, "multiplier": {"type": "integer", "index": 18, "name": "multiplier", "comment": null}, "financial_statement_helper": {"type": "text", "index": 19, "name": "financial_statement_helper", "comment": null}, "transaction_type": {"type": "text", "index": 20, "name": "transaction_type", "comment": null}, "adjusted_balance": {"type": "integer", "index": 21, "name": "adjusted_balance", "comment": null}, "parent_account_number": {"type": "text", "index": 22, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 23, "name": "parent_account_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, "model.quickbooks.int_quickbooks__bill_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__bill_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "payable_account_id": {"type": "text", "index": 7, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 9, "name": "current_balance", "comment": null}, "due_date": {"type": "date", "index": 10, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "date", "index": 11, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "date", "index": 12, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "bigint", "index": 13, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, "model.quickbooks.int_quickbooks__bill_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__bill_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__cash_flow_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__credit_memo_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, "model.quickbooks.int_quickbooks__deposit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__deposit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, "model.quickbooks.int_quickbooks__expenses_union": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__expenses_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "numeric(28,6)", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "numeric(28,6)", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_balances", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "bigint", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_date_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 11, "name": "financial_statement_helper", "comment": null}, "class_id": {"type": "text", "index": 12, "name": "class_id", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_index": {"type": "bigint", "index": 16, "name": "period_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, "model.quickbooks.int_quickbooks__invoice_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__invoice_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 8, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 9, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 10, "name": "delivery_type", "comment": null}, "total_amount": {"type": "integer", "index": 11, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 12, "name": "current_balance", "comment": null}, "estimate_total_amount": {"type": "double precision", "index": 13, "name": "estimate_total_amount", "comment": null}, "estimate_status": {"type": "text", "index": 14, "name": "estimate_status", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 15, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 16, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 17, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "double precision", "index": 18, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, "model.quickbooks.int_quickbooks__invoice_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__invoice_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__journal_entry_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, "model.quickbooks.int_quickbooks__purchase_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__purchase_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__refund_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, "model.quickbooks.int_quickbooks__retained_earnings": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__retained_earnings", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__sales_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, "model.quickbooks.int_quickbooks__sales_union": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__sales_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__vendor_credit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__ap_ar_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_name": {"type": "text", "index": 6, "name": "department_name", "comment": null}, "transaction_with": {"type": "text", "index": 7, "name": "transaction_with", "comment": null}, "customer_vendor_name": {"type": "text", "index": 8, "name": "customer_vendor_name", "comment": null}, "customer_vendor_balance": {"type": "integer", "index": 9, "name": "customer_vendor_balance", "comment": null}, "customer_vendor_address_city": {"type": "text", "index": 10, "name": "customer_vendor_address_city", "comment": null}, "customer_vendor_address_country": {"type": "text", "index": 11, "name": "customer_vendor_address_country", "comment": null}, "customer_vendor_address_line": {"type": "text", "index": 12, "name": "customer_vendor_address_line", "comment": null}, "customer_vendor_website": {"type": "integer", "index": 13, "name": "customer_vendor_website", "comment": null}, "delivery_type": {"type": "text", "index": 14, "name": "delivery_type", "comment": null}, "estimate_status": {"type": "text", "index": 15, "name": "estimate_status", "comment": null}, "total_amount": {"type": "integer", "index": 16, "name": "total_amount", "comment": null}, "estimate_amount": {"type": "double precision", "index": 17, "name": "estimate_amount", "comment": null}, "current_balance": {"type": "integer", "index": 18, "name": "current_balance", "comment": null}, "total_current_payment": {"type": "double precision", "index": 19, "name": "total_current_payment", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 20, "name": "due_date", "comment": null}, "is_overdue": {"type": "boolean", "index": 21, "name": "is_overdue", "comment": null}, "days_overdue": {"type": "integer", "index": 22, "name": "days_overdue", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 23, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 24, "name": "recent_payment_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, "analysis.quickbooks.quickbooks__balance_sheet": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__balance_sheet", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, "model.quickbooks.quickbooks__cash_flow_statement": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__cash_flow_statement", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}, "cash_beginning_period": {"type": "numeric", "index": 17, "name": "cash_beginning_period", "comment": null}, "cash_net_period": {"type": "numeric", "index": 18, "name": "cash_net_period", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__expenses_sales_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, "model.quickbooks.quickbooks__general_ledger": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__general_ledger", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"unique_id": {"type": "text", "index": 1, "name": "unique_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_index": {"type": "integer", "index": 4, "name": "transaction_index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 6, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 7, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 8, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 10, "name": "class_id", "comment": null}, "account_number": {"type": "text", "index": 11, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 13, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 14, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 15, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 16, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 17, "name": "account_sub_type", "comment": null}, "financial_statement_helper": {"type": "text", "index": 18, "name": "financial_statement_helper", "comment": null}, "account_current_balance": {"type": "integer", "index": 19, "name": "account_current_balance", "comment": null}, "account_class": {"type": "text", "index": 20, "name": "account_class", "comment": null}, "transaction_type": {"type": "text", "index": 21, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 22, "name": "transaction_source", "comment": null}, "account_transaction_type": {"type": "text", "index": 23, "name": "account_transaction_type", "comment": null}, "adjusted_amount": {"type": "integer", "index": 24, "name": "adjusted_amount", "comment": null}, "running_balance": {"type": "bigint", "index": 25, "name": "running_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, "model.quickbooks.quickbooks__general_ledger_by_period": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__general_ledger_by_period", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}, "account_ordinal": {"type": "integer", "index": 19, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, "model.quickbooks.quickbooks__profit_and_loss": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__profit_and_loss", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, "model.quickbooks.int_quickbooks__bill_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__credit_memo_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__deposit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__invoice_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__journal_entry_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, "model.quickbooks.int_quickbooks__payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__purchase_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__refund_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__sales_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__transfer_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__vendor_credit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 4, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 6, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 7, "name": "account_sub_type", "comment": null}, "classification": {"type": "text", "index": 8, "name": "classification", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, "model.quickbooks_source.stg_quickbooks__address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "text", "index": 1, "name": "address_id", "comment": null}, "city": {"type": "text", "index": 2, "name": "city", "comment": null}, "country": {"type": "text", "index": 3, "name": "country", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "postal_code": {"type": "integer", "index": 6, "name": "postal_code", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, "model.quickbooks_source.stg_quickbooks__bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "due_date_at": {"type": "date", "index": 6, "name": "due_date_at", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "payable_account_id": {"type": "text", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, "model.quickbooks_source.stg_quickbooks__bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 9, "name": "item_expense_customer_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 10, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "text", "index": 3, "name": "bill_payment_id", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "text", "index": 2, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 3, "name": "check_print_status", "comment": null}, "credit_card_account_id": {"type": "text", "index": 4, "name": "credit_card_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 5, "name": "exchange_rate", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "pay_type": {"type": "text", "index": 8, "name": "pay_type", "comment": null}, "total_amount": {"type": "integer", "index": 9, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "bill_id": {"type": "text", "index": 4, "name": "bill_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 6, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 7, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 8, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 9, "name": "vendor_credit_id", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "fully_qualified_name": {"type": "text", "index": 4, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 5, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "text", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "name": "item_quantity", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "class_id": {"type": "text", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 8, "name": "customer_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 10, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 5, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "text", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, "model.quickbooks_source.stg_quickbooks__customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "text", "index": 1, "name": "customer_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 3, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 4, "name": "balance_with_jobs", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 5, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "fully_qualified_name": {"type": "text", "index": 7, "name": "fully_qualified_name", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "website": {"type": "integer", "index": 10, "name": "website", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, "model.quickbooks_source.stg_quickbooks__department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "is_sub_department": {"type": "boolean", "index": 7, "name": "is_sub_department", "comment": null}, "parent_department_id": {"type": "integer", "index": 8, "name": "parent_department_id", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "total_amount": {"type": "integer", "index": 6, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "integer", "index": 8, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "deposit_account_id": {"type": "text", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "text", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "text", "index": 7, "name": "deposit_customer_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "text", "index": 2, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "due_date": {"type": "integer", "index": 7, "name": "due_date", "comment": null}, "total_amount": {"type": "double precision", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 10, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "discount_account_id": {"type": "integer", "index": 4, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 5, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 7, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 8, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "item_id": {"type": "integer", "index": 10, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "account_id": {"type": "integer", "index": 12, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 7, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 11, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 12, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 13, "name": "delivery_type", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 14, "name": "due_date", "comment": null}, "class_id": {"type": "text", "index": 15, "name": "class_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 16, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 6, "name": "sales_item_class_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "integer", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 13, "name": "bundle_quantity", "comment": null}, "bundle_id": {"type": "text", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "text", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "text", "index": 16, "name": "item_id", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "text", "index": 3, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "quantity": {"type": "double precision", "index": 8, "name": "quantity", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "invoice_line_index": {"type": "integer", "index": 12, "name": "invoice_line_index", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "text", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "text", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, "model.quickbooks_source.stg_quickbooks__item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "text", "index": 1, "name": "item_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "income_account_id": {"type": "text", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "text", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "text", "index": 6, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "purchase_cost": {"type": "integer", "index": 8, "name": "purchase_cost", "comment": null}, "taxable": {"type": "boolean", "index": 9, "name": "taxable", "comment": null}, "type": {"type": "text", "index": 10, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "inventory_start_date": {"type": "integer", "index": 12, "name": "inventory_start_date", "comment": null}, "parent_item_id": {"type": "text", "index": 13, "name": "parent_item_id", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "is_adjustment": {"type": "boolean", "index": 2, "name": "is_adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 9, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 7, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "billable_status": {"type": "integer", "index": 9, "name": "billable_status", "comment": null}, "posting_type": {"type": "text", "index": 10, "name": "posting_type", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, "model.quickbooks_source.stg_quickbooks__payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "unapplied_amount": {"type": "integer", "index": 2, "name": "unapplied_amount", "comment": null}, "total_amount": {"type": "double precision", "index": 3, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "receivable_account_id": {"type": "text", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 7, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 8, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "journal_entry_id": {"type": "integer", "index": 4, "name": "journal_entry_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "invoice_id": {"type": "text", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "credit": {"type": "boolean", "index": 7, "name": "credit", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "payment_type": {"type": "text", "index": 9, "name": "payment_type", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 13, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 14, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 15, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 6, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 7, "name": "account_expense_tax_code_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 9, "name": "item_expense_billable_status", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 10, "name": "item_expense_customer_id", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "text", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 10, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 11, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 12, "name": "sales_item_tax_code_id", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 5, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 11, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 12, "name": "sales_item_unit_price", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "text", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "text", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "text", "index": 4, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "text", "index": 1, "name": "vendor_id", "comment": null}, "account_number": {"type": "integer", "index": 2, "name": "account_number", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "billing_address_id": {"type": "text", "index": 5, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "web_url": {"type": "integer", "index": 10, "name": "web_url", "comment": null}, "is_vendor_1099": {"type": "boolean", "index": 11, "name": "is_vendor_1099", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "payable_account_id": {"type": "text", "index": 8, "name": "payable_account_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "transaction_date": {"type": "date", "index": 11, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "text", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 9, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 10, "name": "item_expense_quantity", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 11, "name": "item_expense_unit_price", "comment": null}, "item_expense_class_id": {"type": "text", "index": 12, "name": "item_expense_class_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 13, "name": "item_expense_billable_status", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.account"}, "source.quickbooks_source.quickbooks.address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.address"}, "source.quickbooks_source.quickbooks.bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill"}, "source.quickbooks_source.quickbooks.bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_line"}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn"}, "source.quickbooks_source.quickbooks.bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment"}, "source.quickbooks_source.quickbooks.bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line"}, "source.quickbooks_source.quickbooks.bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle"}, "source.quickbooks_source.quickbooks.bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle_item"}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn"}, "source.quickbooks_source.quickbooks.credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo"}, "source.quickbooks_source.quickbooks.credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line"}, "source.quickbooks_source.quickbooks.customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.customer"}, "source.quickbooks_source.quickbooks.department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.department"}, "source.quickbooks_source.quickbooks.deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit"}, "source.quickbooks_source.quickbooks.deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit_line"}, "source.quickbooks_source.quickbooks.estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate"}, "source.quickbooks_source.quickbooks.estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate_line"}, "source.quickbooks_source.quickbooks.invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice"}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle"}, "source.quickbooks_source.quickbooks.invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line"}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn"}, "source.quickbooks_source.quickbooks.item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.item"}, "source.quickbooks_source.quickbooks.journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry"}, "source.quickbooks_source.quickbooks.journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line"}, "source.quickbooks_source.quickbooks.payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment"}, "source.quickbooks_source.quickbooks.payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment_line"}, "source.quickbooks_source.quickbooks.purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase"}, "source.quickbooks_source.quickbooks.purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_line"}, "source.quickbooks_source.quickbooks.purchase_order": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order"}, "source.quickbooks_source.quickbooks.purchase_order_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line"}, "source.quickbooks_source.quickbooks.refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt"}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line"}, "source.quickbooks_source.quickbooks.sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt"}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line"}, "source.quickbooks_source.quickbooks.transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.transfer"}, "source.quickbooks_source.quickbooks.vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit"}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line"}, "source.quickbooks_source.quickbooks.vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 1ea3ddf1..a84ef079 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T04:03:58.124231Z", "invocation_id": "d39158d3-c135-411d-9a25-e6a76e3424ac", "env": {}, "project_id": "fb1a7b9ce88ce39cb54ba2ec5c0aaab3", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_integration_tests.bill_payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_data.csv", "original_file_path": "seeds/bill_payment_data.csv", "name": "bill_payment_data", "alias": "bill_payment_data", "checksum": {"name": "sha256", "checksum": "654e27fe99f7891483ba67ae67202f00a166df46c6463965f831bd47d3bc53cf"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.606102, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bill_payment_data\""}, "seed.quickbooks_integration_tests.bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_data.csv", "original_file_path": "seeds/bundle_data.csv", "name": "bundle_data", "alias": "bundle_data", "checksum": {"name": "sha256", "checksum": "090d802f05c558f45f05a760b5fb1fa879dfeb26c737e6356dcf6bfcb9fbbefb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.613717, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bundle_data\""}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_line_data.csv", "original_file_path": "seeds/bill_payment_line_data.csv", "name": "bill_payment_line_data", "alias": "bill_payment_line_data", "checksum": {"name": "sha256", "checksum": "ae8e7b58ddb78ecbcb7facd257a29f27db08cb69e4014ee40e3a07d02e7ea51a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.61527, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_integration_tests.payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_line_data.csv", "original_file_path": "seeds/payment_line_data.csv", "name": "payment_line_data", "alias": "payment_line_data", "checksum": {"name": "sha256", "checksum": "6e54b93beaddd05e86b071eb43833845bfc76a841b2780e3e1059f6d661cd238"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.616768, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"payment_line_data\""}, "seed.quickbooks_integration_tests.vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_data.csv", "original_file_path": "seeds/vendor_data.csv", "name": "vendor_data", "alias": "vendor_data", "checksum": {"name": "sha256", "checksum": "98ce313c6a3acf1262de91d25905b85fe760227a534703d9c6bc0e4149b055b5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676347363.6184251, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"vendor_data\""}, "seed.quickbooks_integration_tests.address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "address_data"], "unique_id": "seed.quickbooks_integration_tests.address_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "address_data.csv", "original_file_path": "seeds/address_data.csv", "name": "address_data", "alias": "address_data", "checksum": {"name": "sha256", "checksum": "2b7bfb3f76e41e3fee0443c10a939053b0edb31b9f4be1bcd0af8d4b686da7b0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6199229, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"address_data\""}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_bundle_data.csv", "original_file_path": "seeds/invoice_line_bundle_data.csv", "name": "invoice_line_bundle_data", "alias": "invoice_line_bundle_data", "checksum": {"name": "sha256", "checksum": "f1cdc81c2fb1ec4f76c5226e2f5e4ed6f17f7b446cb53cfa539d8caafb252a5c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.621366, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_integration_tests.invoice_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_data.csv", "original_file_path": "seeds/invoice_data.csv", "name": "invoice_data", "alias": "invoice_data", "checksum": {"name": "sha256", "checksum": "db4f065992372097a09aec08d7b346381eb542e8ee2668d7d664564262c60b55"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6228201, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"invoice_data\""}, "seed.quickbooks_integration_tests.payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_integration_tests.payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_data.csv", "original_file_path": "seeds/payment_data.csv", "name": "payment_data", "alias": "payment_data", "checksum": {"name": "sha256", "checksum": "8c2df9d7db2b4668ddbd1e1e3635cbaf40c798e19be2a83f65e09988771ebb38"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.624423, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"payment_data\""}, "seed.quickbooks_integration_tests.invoice_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_data.csv", "original_file_path": "seeds/invoice_line_data.csv", "name": "invoice_line_data", "alias": "invoice_line_data", "checksum": {"name": "sha256", "checksum": "4318a37462107eb6c0548adfba95908611dd94a7ad816ef366524a9eaa4dc4da"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.625864, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"invoice_line_data\""}, "seed.quickbooks_integration_tests.deposit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"deposit_account_id": "bigint", "deposit_class_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_line_data.csv", "original_file_path": "seeds/deposit_line_data.csv", "name": "deposit_line_data", "alias": "deposit_line_data", "checksum": {"name": "sha256", "checksum": "43cf2e49d2ccc28c38ba7db60582b36e46c0ec96827b475e145975fdf8bf9d4e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deposit_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "deposit_class_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676347363.6273391, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"deposit_line_data\""}, "seed.quickbooks_integration_tests.estimate_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_line_data.csv", "original_file_path": "seeds/estimate_line_data.csv", "name": "estimate_line_data", "alias": "estimate_line_data", "checksum": {"name": "sha256", "checksum": "cff0f0d902a16e9ab0b877d174dd67536537fc669c16505c2efadb0721ce6c26"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.628993, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"estimate_line_data\""}, "seed.quickbooks_integration_tests.purchase_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"credit": "bool"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_data.csv", "original_file_path": "seeds/purchase_data.csv", "name": "purchase_data", "alias": "purchase_data", "checksum": {"name": "sha256", "checksum": "b66de1a5aaf428b1f208ecb9edccd6394086db485d6fc7dde7b152862f03eac9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"credit": "{{ 'boolean' if target.name == 'snowflake' else 'bool' }}"}}, "created_at": 1676347363.630463, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"purchase_data\""}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_line_data.csv", "original_file_path": "seeds/refund_receipt_line_data.csv", "name": "refund_receipt_line_data", "alias": "refund_receipt_line_data", "checksum": {"name": "sha256", "checksum": "8a67266f87e49dda0de57a6d66b4c1a053af545a6c8d394f8df6470b98cd31c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.631941, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_line_data.csv", "original_file_path": "seeds/credit_memo_line_data.csv", "name": "credit_memo_line_data", "alias": "credit_memo_line_data", "checksum": {"name": "sha256", "checksum": "01898bc6786c3c48ebf5aa4170ea54257dd66e6fc38931067c9012bc639f6994"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6336188, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_integration_tests.bill_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_integration_tests.bill_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_data.csv", "original_file_path": "seeds/bill_data.csv", "name": "bill_data", "alias": "bill_data", "checksum": {"name": "sha256", "checksum": "af6dcdb238e4819003cc182dc5f39a82a61ab19d1299752afc90d49578cfc79b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6352808, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bill_data\""}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_linked_txn_data.csv", "original_file_path": "seeds/bill_linked_txn_data.csv", "name": "bill_linked_txn_data", "alias": "bill_linked_txn_data", "checksum": {"name": "sha256", "checksum": "14f88fc0716d3c253043a68af9b026ab54a93a33784c682b6ec700671f1e03c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6367419, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_integration_tests.vendor_credit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_data.csv", "original_file_path": "seeds/vendor_credit_data.csv", "name": "vendor_credit_data", "alias": "vendor_credit_data", "checksum": {"name": "sha256", "checksum": "ccc4a1ca3967e3eb7f61d2831242f07b1e5a77006dd4312a17fd36e7ea008bea"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.638222, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"vendor_credit_data\""}, "seed.quickbooks_integration_tests.customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_integration_tests.customer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "customer_data.csv", "original_file_path": "seeds/customer_data.csv", "name": "customer_data", "alias": "customer_data", "checksum": {"name": "sha256", "checksum": "2b72eabf58923823033e461d1960295c156b31bf5ace046fc388c336fd96a29d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.639704, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"customer_data\""}, "seed.quickbooks_integration_tests.estimate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_data.csv", "original_file_path": "seeds/estimate_data.csv", "name": "estimate_data", "alias": "estimate_data", "checksum": {"name": "sha256", "checksum": "06ca472200a91b5758a0e9530e6c810a09e466cbf1aa7fbac215fee8a9f4d737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.641688, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"estimate_data\""}, "seed.quickbooks_integration_tests.purchase_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_line_data.csv", "original_file_path": "seeds/purchase_line_data.csv", "name": "purchase_line_data", "alias": "purchase_line_data", "checksum": {"name": "sha256", "checksum": "33355dd453e68ac5a5afa2f71e3c515dc414cdd55a489c65d2c2c4fa06fd18e7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676347363.6431959, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"purchase_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_line_data.csv", "original_file_path": "seeds/journal_entry_line_data.csv", "name": "journal_entry_line_data", "alias": "journal_entry_line_data", "checksum": {"name": "sha256", "checksum": "76d98c0fe816cb2d3790e1c63b61c0b6128de39e3175a231b98dbd640ba13cd4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.644688, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_data.csv", "original_file_path": "seeds/journal_entry_data.csv", "name": "journal_entry_data", "alias": "journal_entry_data", "checksum": {"name": "sha256", "checksum": "6f717632a6fe0901786fbdfed63db69af1c928331ed9cb83f9fd389fe2b9ab83"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.646122, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"journal_entry_data\""}, "seed.quickbooks_integration_tests.bill_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_line_data.csv", "original_file_path": "seeds/bill_line_data.csv", "name": "bill_line_data", "alias": "bill_line_data", "checksum": {"name": "sha256", "checksum": "df882ab43a0bd79aed13e13dee1934269989ae1bea9d3672ed7cc9840c14d073"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1676347363.647766, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bill_line_data\""}, "seed.quickbooks_integration_tests.bundle_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_item_data.csv", "original_file_path": "seeds/bundle_item_data.csv", "name": "bundle_item_data", "alias": "bundle_item_data", "checksum": {"name": "sha256", "checksum": "69218d4dc89cf8da55d1a5aab12bbe45129b48377fa7615f0030616d8c34fe9d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6492538, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"bundle_item_data\""}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_linked_txn_data.csv", "original_file_path": "seeds/invoice_linked_txn_data.csv", "name": "invoice_linked_txn_data", "alias": "invoice_linked_txn_data", "checksum": {"name": "sha256", "checksum": "88dda316adf9a5921231dbe5bd5d0c425391ccf9b72a7d6c937155d67b3b45ba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.650696, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_integration_tests.account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "account_data"], "unique_id": "seed.quickbooks_integration_tests.account_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "account_data.csv", "original_file_path": "seeds/account_data.csv", "name": "account_data", "alias": "account_data", "checksum": {"name": "sha256", "checksum": "82ea90640018b00ad075d5bc1f78bdf38e05b0359fda1b40f4dd249efe1d85d9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6523058, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"account_data\""}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_line_data.csv", "original_file_path": "seeds/purchase_order_line_data.csv", "name": "purchase_order_line_data", "alias": "purchase_order_line_data", "checksum": {"name": "sha256", "checksum": "39d5f88917f7d5d8ec70465d8569a38bd19d72bfb26bc495f3231b3e6599c945"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.653746, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_integration_tests.transfer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_integration_tests.transfer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "transfer_data.csv", "original_file_path": "seeds/transfer_data.csv", "name": "transfer_data", "alias": "transfer_data", "checksum": {"name": "sha256", "checksum": "8301e8b1cbaa430f338d9b589570efb442969ab67a24a92e615b08e3440431ce"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.65518, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"transfer_data\""}, "seed.quickbooks_integration_tests.purchase_order_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_data.csv", "original_file_path": "seeds/purchase_order_data.csv", "name": "purchase_order_data", "alias": "purchase_order_data", "checksum": {"name": "sha256", "checksum": "41146f57f7697001a690027ea7182ef76dd5d591bb5dce7438edefb3e5fd0101"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.656682, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"purchase_order_data\""}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_line_data.csv", "original_file_path": "seeds/sales_receipt_line_data.csv", "name": "sales_receipt_line_data", "alias": "sales_receipt_line_data", "checksum": {"name": "sha256", "checksum": "19895ca1cfb2ebe0a4e8ef0e5c5ef9c0dbb505053cc4b98bb06de8bd3ead523f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.658426, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_line_data.csv", "original_file_path": "seeds/vendor_credit_line_data.csv", "name": "vendor_credit_line_data", "alias": "vendor_credit_line_data", "checksum": {"name": "sha256", "checksum": "8c60276eb72f29fcd60b6aff2615648b71ce47e0b738331b54f86c988a979737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1676347363.6599412, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_card_payment_txn_data"], "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_card_payment_txn_data.csv", "original_file_path": "seeds/credit_card_payment_txn_data.csv", "name": "credit_card_payment_txn_data", "alias": "credit_card_payment_txn_data", "checksum": {"name": "sha256", "checksum": "df04fb5f0ab05dd015e6476d647f9564edf6f015cd1d429ceded40e9bfd915b9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6614661, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"credit_card_payment_txn_data\""}, "seed.quickbooks_integration_tests.credit_memo_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_data.csv", "original_file_path": "seeds/credit_memo_data.csv", "name": "credit_memo_data", "alias": "credit_memo_data", "checksum": {"name": "sha256", "checksum": "3cef678ada5ab1119a096e5f6bea67c6680466ff2a21807512f1a4dba83b6139"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6629272, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"credit_memo_data\""}, "seed.quickbooks_integration_tests.department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "department_data"], "unique_id": "seed.quickbooks_integration_tests.department_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "department_data.csv", "original_file_path": "seeds/department_data.csv", "name": "department_data", "alias": "department_data", "checksum": {"name": "sha256", "checksum": "079a79543e6cfcdac83eeeeb9672451756cc6c48e7d4c572d9f761b9314b18d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.664522, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"department_data\""}, "seed.quickbooks_integration_tests.item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "item_data"], "unique_id": "seed.quickbooks_integration_tests.item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "item_data.csv", "original_file_path": "seeds/item_data.csv", "name": "item_data", "alias": "item_data", "checksum": {"name": "sha256", "checksum": "8057771cc5c837c6193ad423e6a52f7058f6001550eaa0c15098857415aee7d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.665982, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"item_data\""}, "seed.quickbooks_integration_tests.sales_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_data.csv", "original_file_path": "seeds/sales_receipt_data.csv", "name": "sales_receipt_data", "alias": "sales_receipt_data", "checksum": {"name": "sha256", "checksum": "2ac15faf0cdff7d71155fc20bb86e69d0a67d25f2172f220dbe850d45738230b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1676347363.66747, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"sales_receipt_data\""}, "seed.quickbooks_integration_tests.deposit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_data.csv", "original_file_path": "seeds/deposit_data.csv", "name": "deposit_data", "alias": "deposit_data", "checksum": {"name": "sha256", "checksum": "e0e4299672423dbdf3d63d050ecd34c29580b5a368b64307053a635e7dd9286e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676347363.6689658, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"deposit_data\""}, "seed.quickbooks_integration_tests.refund_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_data.csv", "original_file_path": "seeds/refund_receipt_data.csv", "name": "refund_receipt_data", "alias": "refund_receipt_data", "checksum": {"name": "sha256", "checksum": "0bfb44ee366239221dfee9e985b0c66d5a7cbc6d0bb8c18cf02acba7616c135d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1676347363.6705978, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests\".\"refund_receipt_data\""}, "model.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__balance_sheet"], "unique_id": "model.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__balance_sheet.sql", "original_file_path": "models/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2dfcdf44d9e54e45aad4ba6e1857e20aff338846ce16fc2e059774d1496ca222"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all asset, liability, and equity account classes by calendar year and month enriched with account type, class, and parent information.\n", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total ending period balance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.037337, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__balance_sheet\""}, "model.quickbooks.quickbooks__general_ledger_by_period": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger_by_period"], "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nretained_earnings as (\n\n select *\n from {{ ref('int_quickbooks__retained_earnings') }}\n),\n\n{% if var('financial_statement_ordinal') %}\nordinals as ( \n\n select \n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n ordinal\n from {{ var('financial_statement_ordinal') }}\n),\n{% endif %}\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n {% if var('financial_statement_ordinal') %}\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as account_ordinal\n {% else %}\n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n {% endif %}\n from balances_earnings_unioned\n {% if var('financial_statement_ordinal') %}\n left join ordinals as account_number_ordinal\n on balances_earnings_unioned.account_number = account_number_ordinal.account_number\n left join ordinals as account_sub_type_ordinal\n on balances_earnings_unioned.account_sub_type = account_sub_type_ordinal.account_sub_type\n left join ordinals as account_type_ordinal\n on balances_earnings_unioned.account_type = account_type_ordinal.account_type\n left join ordinals as account_class_ordinal\n on balances_earnings_unioned.account_class = account_class_ordinal.account_class\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger_by_period.sql", "original_file_path": "models/quickbooks__general_ledger_by_period.sql", "name": "quickbooks__general_ledger_by_period", "alias": "quickbooks__general_ledger_by_period", "checksum": {"name": "sha256", "checksum": "81b71ad880e03e46825645b549c5459da037d29b07524c66547764201690f1d9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"], ["int_quickbooks__retained_earnings"]], "sources": [], "metrics": [], "description": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year.", "columns": {"account_id": {"name": "account_id", "description": "The identifier of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account. with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Helper field identifying whether the account impacts the balances sheet or income statement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_year": {"name": "date_year", "description": "Timestamp of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_first_day": {"name": "period_first_day", "description": "Timestamp of the first date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_last_day": {"name": "period_last_day", "description": "Timestamp of the last date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_net_change": {"name": "period_net_change", "description": "Account balance difference from the beginning and ending of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_beginning_balance": {"name": "period_beginning_balance", "description": "Balance of the account as of the first date of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_ending_balance": {"name": "period_ending_balance", "description": "Sum of all transaction line adjusted_balances of the account for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger_by_period.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0320199, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nretained_earnings as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\"\n),\n\n\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n \n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n \n from balances_earnings_unioned\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\""}, "model.quickbooks.quickbooks__general_ledger": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks.get_enabled_unioned_models", "macro.dbt_utils.union_relations", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger"], "unique_id": "model.quickbooks.quickbooks__general_ledger", "raw_code": "with unioned_models as (\n\n {{ dbt_utils.union_relations(get_enabled_unioned_models()) }}\n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n),\n\n\nadjusted_gl as (\n \n select\n {{ dbt_utils.generate_surrogate_key(['gl_union.transaction_id', 'gl_union.index', 'gl_union.account_id', ' gl_union.transaction_type', 'gl_union.transaction_source']) }} as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger.sql", "original_file_path": "models/quickbooks__general_ledger.sql", "name": "quickbooks__general_ledger", "alias": "quickbooks__general_ledger", "checksum": {"name": "sha256", "checksum": "b1c31176369acc7045e2d328f3603cbe99c014621e59c82d7f281a4521310e6c"}, "tags": [], "refs": [["int_quickbooks__purchase_double_entry"], ["int_quickbooks__bill_double_entry"], ["int_quickbooks__credit_memo_double_entry"], ["int_quickbooks__deposit_double_entry"], ["int_quickbooks__invoice_double_entry"], ["int_quickbooks__journal_entry_double_entry"], ["int_quickbooks__payment_double_entry"], ["int_quickbooks__refund_receipt_double_entry"], ["int_quickbooks__sales_receipt_double_entry"], ["int_quickbooks__transfer_double_entry"], ["int_quickbooks__vendor_credit_double_entry"], ["int_quickbooks__bill_payment_double_entry"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction.", "columns": {"unique_id": {"name": "unique_id", "description": "Unique identifier of the general ledger line, dependent on `transaction_id`, `transaction_index`, `account_id`, `transaction_type`, `transaction_source`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction. Each transaction will have an offsetting debit and credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_index": {"name": "transaction_index", "description": "Unique identifier of the individual debit and credit records of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Either 'balance sheet' or 'income statement' and is used to determine that financial statement the account impacts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_current_balance": {"name": "account_current_balance", "description": "Total current balance of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the transaction line. Will be one of 'Expense', 'Revenue', 'Asset', 'Liability', and 'Equity'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Identifier of whether the transaction is a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_source": {"name": "transaction_source", "description": "Field signifying the source of transaction (eg. Bill, Invoice, Deposit, Journal Entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_transaction_type": {"name": "account_transaction_type", "description": "Identifier of whether the account is increased by either a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjusted_amount": {"name": "adjusted_amount", "description": "The amount that impacts the account. If the transaction_type = account_transaction_type then the impact will increase, otherwise it will decrease the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "running_balance": {"name": "running_balance", "description": "The running balance of the account by each individual day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.028053, "compiled_code": "with unioned_models as (\n\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"\n\n \n )\n\n \n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n),\n\n\nadjusted_gl as (\n \n select\n \n \nmd5(cast(coalesce(cast(gl_union.transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast( gl_union.transaction_type as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.transaction_source as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger\""}, "model.quickbooks.quickbooks__profit_and_loss": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__profit_and_loss"], "unique_id": "model.quickbooks.quickbooks__profit_and_loss", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__profit_and_loss.sql", "original_file_path": "models/quickbooks__profit_and_loss.sql", "name": "quickbooks__profit_and_loss", "alias": "quickbooks__profit_and_loss", "checksum": {"name": "sha256", "checksum": "20c36e05d01bfc1acee632ee45fe2861296d19a4dbf6826b0a3dcee5a7933bdd"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information.", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total period net change for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__profit_and_loss.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.034451, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\""}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true"], "nodes": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__expenses_sales_enhanced"], "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced", "raw_code": "with expenses as (\n\n select *\n from {{ ref('int_quickbooks__expenses_union') }}\n),\n\n{% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\nsales as (\n\n select *\n from {{ ref('int_quickbooks__sales_union') }}\n),\n{% endif %}\n\nfinal as (\n \n select *\n from expenses\n\n {% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from sales\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__expenses_sales_enhanced.sql", "original_file_path": "models/quickbooks__expenses_sales_enhanced.sql", "name": "quickbooks__expenses_sales_enhanced", "alias": "quickbooks__expenses_sales_enhanced", "checksum": {"name": "sha256", "checksum": "14dc301b814cc78cbd136971e534e3611271de7a4b36bf8f1d5f8af5ed1947c1"}, "tags": [], "refs": [["int_quickbooks__expenses_union"], ["int_quickbooks__sales_union"]], "sources": [], "metrics": [], "description": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records.", "columns": {"transaction_source": {"name": "transaction_source", "description": "Set to 'expense' if the transaction type is an expense and 'sale' if the transaction type is a sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Specifies the expense or sale transaction type (ie. invoice, sales_receipt, deposit, journal entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Unique identifier of the item included in a sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Quantity of items included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_unit_price": {"name": "item_unit_price", "description": "Unit price of the item included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_name": {"name": "customer_name", "description": "Name of the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_website": {"name": "customer_website", "description": "The website url of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_name": {"name": "vendor_name", "description": "Name of the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status indicating whether the expense or sale is billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description given to either the expense or sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__expenses_sales_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.023453, "compiled_code": "with expenses as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\"\n),\n\n\nsales as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__sales_union\"\n),\n\n\nfinal as (\n \n select *\n from expenses\n\n \n union all\n\n select *\n from sales\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\""}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.datediff"], "nodes": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__ap_ar_enhanced"], "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_join as (\n\n select *\n from {{ref('int_quickbooks__bill_join')}}\n),\n\n{% if var('using_invoice', True) %}\ninvoice_join as (\n\n select *\n from {{ref('int_quickbooks__invoice_join')}}\n),\n{% endif %}\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\n{% if var('using_address', True) %}\naddresses as (\n\n select *\n from {{ref('stg_quickbooks__address')}}\n),\n{% endif %}\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as {{ dbt.type_string() }}) as estimate_id, \n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n \n vendors.web_url as customer_vendor_website,\n cast(null as {{ dbt.type_string() }}) as delivery_type,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n bill_join.total_amount,\n cast(null as {{ dbt.type_numeric() }}) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n {% if var('using_department', True) %}\n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n {% endif %}\n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n {% if var('using_address', True) %}\n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n {% endif %}\n \n {% if var('using_invoice', True) %}\n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n {% if var('using_department', True) %}\n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n {% endif %}\n\n {% if var('using_address', True) %}\n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n {% endif %}\n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n {% endif %}\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__ap_ar_enhanced.sql", "original_file_path": "models/quickbooks__ap_ar_enhanced.sql", "name": "quickbooks__ap_ar_enhanced", "alias": "quickbooks__ap_ar_enhanced", "checksum": {"name": "sha256", "checksum": "a46a57fcf6a2966d9bba092f18cc5f3c39404ad382dab921ba31caef80b49417"}, "tags": [], "refs": [["int_quickbooks__bill_join"], ["int_quickbooks__invoice_join"], ["stg_quickbooks__department"], ["stg_quickbooks__address"], ["stg_quickbooks__customer"], ["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time.", "columns": {"transaction_type": {"name": "transaction_type", "description": "Set to 'bill' of the transaction is a bill and 'invoice' if the transaction is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_with": {"name": "transaction_with", "description": "Set to 'vendor' if the transaction type is a bill and 'customer' if the transaction type is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_name": {"name": "customer_vendor_name", "description": "Full name of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_balance": {"name": "customer_vendor_balance", "description": "Total current account balance of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_city": {"name": "customer_vendor_address_city", "description": "City of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_country": {"name": "customer_vendor_address_country", "description": "Country of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_line": {"name": "customer_vendor_address_line", "description": "Address line of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_website": {"name": "customer_vendor_website", "description": "The website url of the customer or vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice was delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_status": {"name": "estimate_status", "description": "The status of the invoice estimate (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The total monetary amount of the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_amount": {"name": "estimate_amount", "description": "The total amount estimated of the bill or invoice (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_balance": {"name": "current_balance", "description": "The bill or invoice defined remaining balance of the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_current_payment": {"name": "total_current_payment", "description": "Sum of all total payments made towards the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the due date for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_overdue": {"name": "is_overdue", "description": "Boolean indicating whether the bill or invoice full payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "days_overdue": {"name": "days_overdue", "description": "The recent payment minus the due date to show the total days the total payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "initial_payment_date": {"name": "initial_payment_date", "description": "The first date a payment was provided for the bill or invoice", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recent_payment_date": {"name": "recent_payment_date", "description": "The last date a payment was provided for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__ap_ar_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.0142112, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith bill_join as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__bill_join\"\n),\n\n\ninvoice_join as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\"\n),\n\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\n\naddresses as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n),\n\n\ncustomers as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\nvendors as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as TEXT) as estimate_id, \n\n \n departments.fully_qualified_name as department_name,\n \n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n \n vendors.web_url as customer_vendor_website,\n cast(null as TEXT) as delivery_type,\n cast(null as TEXT) as estimate_status,\n bill_join.total_amount,\n cast(null as numeric(28,6)) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n \n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n \n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n \n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n \n \n \n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n \n departments.fully_qualified_name as department_name,\n \n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n \n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n \n\n \n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n \n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\""}, "model.quickbooks.quickbooks__cash_flow_statement": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__cash_flow_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__cash_flow_statement"], "unique_id": "model.quickbooks.quickbooks__cash_flow_statement", "raw_code": "with cash_flow_classifications as (\n \n select *\n from {{ ref('int_quickbooks__cash_flow_classifications') }}\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__cash_flow_statement.sql", "original_file_path": "models/quickbooks__cash_flow_statement.sql", "name": "quickbooks__cash_flow_statement", "alias": "quickbooks__cash_flow_statement", "checksum": {"name": "sha256", "checksum": "08755f384d8c772516c9ee251fe73ceda61e54f61a0db87d7514347247d54ef7"}, "tags": [], "refs": [["int_quickbooks__cash_flow_classifications"]], "sources": [], "metrics": [], "description": "Table that provides all line items necessary to construct a cash flow statement.", "columns": {"account_unique_id": {"name": "account_unique_id", "description": "Unique identifier of the cash flow statement account line, dependent on account_id, class_id, source_relation and calendar_date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_period": {"name": "cash_flow_period", "description": "Timestamp of the first date for the cash flow period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_type": {"name": "cash_flow_type", "description": "The type of cash flow (Defaults are Cash or Cash Equivalents, Investing, Operating, Financing). The customer can also configure the cash flow type; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_ordinal": {"name": "cash_flow_ordinal", "description": "Integer value to order the account within final cash flow statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_ending_period": {"name": "cash_ending_period", "description": "The total ending period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_beginning_period": {"name": "cash_beginning_period", "description": "The total beginning period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_net_period": {"name": "cash_net_period", "description": "The net cash change from the beginning to the end of the period for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__cash_flow_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0185, "compiled_code": "with cash_flow_classifications as (\n \n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\"\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\""}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__transfer_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry", "raw_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith transfers as (\n\n select *\n from {{ ref('stg_quickbooks__transfer') }}\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "name": "int_quickbooks__transfer_double_entry", "alias": "int_quickbooks__transfer_double_entry", "checksum": {"name": "sha256", "checksum": "08b6fc8e3b028b3ff6f5f7b2ca25776e1531ef90e62bc71c95a7c3bad16710ed"}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the receiving account and a credit record to the sending account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.004608, "compiled_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith transfers as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\""}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_memo_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry", "raw_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "name": "int_quickbooks__credit_memo_double_entry", "alias": "int_quickbooks__credit_memo_double_entry", "checksum": {"name": "sha256", "checksum": "e0d97e4dccb230ea8aa258b5cb258e43881fe5de6ded72058163645cc705d3ea"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.00224, "compiled_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\""}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__refund_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "name": "int_quickbooks__refund_receipt_double_entry", "alias": "int_quickbooks__refund_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "8324e59e150115fdea6272a77fc9868ff3343f9d6768236f654d670ee7b02e5e"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified asset account and a credit record the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.004089, "compiled_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__journal_entry_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry", "raw_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "name": "int_quickbooks__journal_entry_double_entry", "alias": "int_quickbooks__journal_entry_double_entry", "checksum": {"name": "sha256", "checksum": "5a1a31080d550c5cea879594f8ac10b70b52dd0d3403ec150a50c3375bd8560e"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that provides the debit and credit records of a journal entry transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.003304, "compiled_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\""}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "name": "int_quickbooks__bill_payment_double_entry", "alias": "int_quickbooks__bill_payment_double_entry", "checksum": {"name": "sha256", "checksum": "7681540e1b8b756efaf589a11195020a1300b6ed9f70d52546a5871054c29b95"}, "tags": [], "refs": [["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts payable and a credit record to the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.001962, "compiled_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith bill_payments as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\""}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__deposit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n\n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "name": "int_quickbooks__deposit_double_entry", "alias": "int_quickbooks__deposit_double_entry", "checksum": {"name": "sha256", "checksum": "9f702e78f5e48d8771a24b5e372b77bfb41fa9e78fed48c4123fdc3770b40296"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to either undeposited funds or a specific other account indicated in the deposit line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.0027788, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\""}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__purchase_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry", "raw_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\npurchase_lines as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "name": "int_quickbooks__purchase_double_entry", "alias": "int_quickbooks__purchase_double_entry", "checksum": {"name": "sha256", "checksum": "6928b3fc773e3881f03746c0e7c86e9edb1169d5bf456c219694efc2eaefcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__purchase_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to a specified expense account and a credit record to the payment account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate"}, "created_at": 1676347365.00383, "compiled_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\npurchase_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\""}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__sales_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "name": "int_quickbooks__sales_receipt_double_entry", "alias": "int_quickbooks__sales_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "b2e5219c2adae8a87d3d6e813730f3344cbae070efdec77f2fc16e63abdcc857"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to the specified asset account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.00435, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__vendor_credit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "raw_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "name": "int_quickbooks__vendor_credit_double_entry", "alias": "int_quickbooks__vendor_credit_double_entry", "checksum": {"name": "sha256", "checksum": "d5b5913d12d2880d19f2b17f6a3fd395a84ea8b7d2a5e965a25cf04ba9534236"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to payable account and a credit record to the expense account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.004975, "compiled_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\""}, "model.quickbooks.int_quickbooks__bill_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "name": "int_quickbooks__bill_double_entry", "alias": "int_quickbooks__bill_double_entry", "checksum": {"name": "sha256", "checksum": "95a197d82bcd77753581efdd590be8ad9652f318837a2380dd9e7b50d9b812a9"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.001653, "compiled_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\""}, "model.quickbooks.int_quickbooks__payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry", "raw_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith payments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "name": "int_quickbooks__payment_double_entry", "alias": "int_quickbooks__payment_double_entry", "checksum": {"name": "sha256", "checksum": "c8e70c76ebc6641a9817adca7d113a3997d9c3376df1b29ca25201c32cdb33ec"}, "tags": [], "refs": [["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.0035641, "compiled_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith payments as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__invoice_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\n\n{% if var('using_invoice_bundle', True) %}\n\ninvoice_bundles as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line_bundle') }}\n),\n\nbundles as (\n\n select *\n from {{ ref('stg_quickbooks__bundle') }}\n),\n\nbundle_items as (\n\n select *\n from {{ ref('stg_quickbooks__bundle_item') }}\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n{% endif %}\n\nar_accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n {% if var('using_invoice_bundle', True) %}\n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n {% else %}\n coalesce(invoice_lines.account_id, items.income_account_id) as account_id,\n {% endif %}\n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n {% if var('using_invoice_bundle', True) %}\n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n {% else %}\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id) is not null \n\n {% endif %}\n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "name": "int_quickbooks__invoice_double_entry", "alias": "int_quickbooks__invoice_double_entry", "checksum": {"name": "sha256", "checksum": "ff00ba3d0bd575bb253363bfd2fbcd791cedc27c83d757af54d0e5adbccda142"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"], ["stg_quickbooks__account"], ["stg_quickbooks__invoice_line_bundle"], ["stg_quickbooks__bundle"], ["stg_quickbooks__bundle_item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676347365.003042, "compiled_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\n\n\n\ninvoice_bundles as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n),\n\nbundles as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n),\n\nbundle_items as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n\n\nar_accounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n \n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n \n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n \n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n \n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__invoice_transactions"], "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__invoice_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__invoice_transactions.sql", "name": "int_quickbooks__invoice_transactions", "alias": "int_quickbooks__invoice_transactions", "checksum": {"name": "sha256", "checksum": "e02921a0f4ebbd0d0bfeee8cc7ed8136497c3d7e2cb5826922c2fc2f164e01b9"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__invoice_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347363.838797, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\""}, "model.quickbooks.int_quickbooks__bill_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__bill_transactions"], "unique_id": "model.quickbooks.int_quickbooks__bill_transactions", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }} \n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__bill_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__bill_transactions.sql", "name": "int_quickbooks__bill_transactions", "alias": "int_quickbooks__bill_transactions", "checksum": {"name": "sha256", "checksum": "42a5c76a8c69ea3b6f162addd1c69d225b8ff912543b8d5502712ae76b506ae2"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the bill and corresponding bill lines into a single bill transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__bill_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.005236, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\" \n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\""}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__journal_entry_transactions"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as {{ dbt.type_string() }}) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__journal_entry_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "name": "int_quickbooks__journal_entry_transactions", "alias": "int_quickbooks__journal_entry_transactions", "checksum": {"name": "sha256", "checksum": "5df763182668b5667cc91f518169b228c9726c03a97626e4bb7ae5a710602bf7"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that joins the journal entry and corresponding journal entry lines into a single journal entry transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.006002, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as TEXT) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\""}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__refund_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "name": "int_quickbooks__refund_receipt_transactions", "alias": "int_quickbooks__refund_receipt_transactions", "checksum": {"name": "sha256", "checksum": "097df40c7a3b5554bec4b1f96af80c7065d5ed99f9a3877f5b8c639263c3a35d"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the refund receipt and corresponding refund receipt lines into a single refund receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.006523, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\""}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__vendor_credit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n \n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "name": "int_quickbooks__vendor_credit_transactions", "alias": "int_quickbooks__vendor_credit_transactions", "checksum": {"name": "sha256", "checksum": "15380e78bc581c3192a7370b6c62f9805accc3b5bda2f200f68aa066db4785b0"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the vendor credit and corresponding vendor credit lines into a single vendor credit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.007031, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n \n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\""}, "model.quickbooks.int_quickbooks__purchase_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__purchase_transactions"], "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions", "raw_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_purchase', True)) }}\n\nwith purchases as (\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\npurchase_lines as (\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__purchase_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__purchase_transactions.sql", "name": "int_quickbooks__purchase_transactions", "alias": "int_quickbooks__purchase_transactions", "checksum": {"name": "sha256", "checksum": "bead953d0576140a7d67c3764c62993abf6809d601ccd20000aa5ea7a73c7172"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__item"], ["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "Table that joins the purchase and corresponding purchase lines into a single purchase transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__purchase_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.00626, "compiled_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n\n\nwith purchases as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\nitems as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\npurchase_lines as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\""}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__sales_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions", "raw_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "name": "int_quickbooks__sales_receipt_transactions", "alias": "int_quickbooks__sales_receipt_transactions", "checksum": {"name": "sha256", "checksum": "2e01630bf25cd736b93b07ec7b98887fbe62d8f9f34fd4fed820862a44d1c68d"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the sales receipt and corresponding sales receipt lines into a single sales receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.006779, "compiled_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\""}, "model.quickbooks.int_quickbooks__deposit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__deposit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n \n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as {{ dbt.type_string() }}) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__deposit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__deposit_transactions.sql", "name": "int_quickbooks__deposit_transactions", "alias": "int_quickbooks__deposit_transactions", "checksum": {"name": "sha256", "checksum": "750c679ea708e917039ddcc2502e672fb77f769a9370028c77f7beef15868fc6"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "Table that joins the deposit and corresponding deposit lines into a single deposit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__deposit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.005748, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n \n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as TEXT) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\""}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__credit_memo_transactions"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__credit_memo_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "name": "int_quickbooks__credit_memo_transactions", "alias": "int_quickbooks__credit_memo_transactions", "checksum": {"name": "sha256", "checksum": "e671668964b67084e2953c82076642f09a1cf6055a3366b15fc9eec8a77222ae"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the credit memo and credit memo lines into a single credit memo transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.005494, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\""}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__cash_flow_classifications"], "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications", "raw_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n {{ dbt_utils.generate_surrogate_key(['account_id', 'source_relation', 'calendar_date', 'class_id']) }} as account_unique_id\n from {{ ref('quickbooks__balance_sheet') }}\n),\n \n{% if var('cash_flow_statement_type_ordinal') %}\nordinals as (\n \n select\n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n cast(cash_flow_type as {{ dbt.type_string() }}) as cash_flow_type,\n ordinal\n from {{ var('cash_flow_statement_type_ordinal') }}\n),\n{% endif %}\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n {% if var('cash_flow_statement_type_ordinal') %}\n coalesce(account_number_ordinal.cash_flow_type, account_sub_type_ordinal.cash_flow_type, account_type_ordinal.cash_flow_type, account_class_ordinal.cash_flow_type) as cash_flow_type,\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as cash_flow_ordinal \n {% else %}\n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n {% endif %}\n\n from cash_flow_key\n \n {% if var('cash_flow_statement_type_ordinal') %}\n\n {% set cash_flow_type_fields = ['account_number', 'account_sub_type', 'account_type', 'account_class'] %}\n \n {% for cash_flow_type_field in cash_flow_type_fields %} \n left join ordinals as {{ cash_flow_type_field }}_ordinal\n on cash_flow_key.{{ cash_flow_type_field }} = {{ cash_flow_type_field }}_ordinal.{{ cash_flow_type_field }}\n {% endfor %}\n \n {% endif %}\n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__cash_flow_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__cash_flow_classifications.sql", "name": "int_quickbooks__cash_flow_classifications", "alias": "int_quickbooks__cash_flow_classifications", "checksum": {"name": "sha256", "checksum": "c76ef90529e969f875f192f8a236430430ab2c9d2dbf52885875ee854a1a3886"}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "Table that provides additional classifications necessary for the cash flow statement, like the cash flow type and ordinals.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__cash_flow_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.009401, "compiled_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n \n \nmd5(cast(coalesce(cast(account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(calendar_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(class_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as account_unique_id\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n),\n \n\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n \n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n \n\n from cash_flow_key\n \n \n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\""}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.int_quickbooks__general_ledger_date_spine"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_balances"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances", "raw_code": "with general_ledger as (\n\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ngl_accounting_periods as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_date_spine') }}\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast({{ dbt.date_trunc(\"year\", \"transaction_date\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"transaction_date\") }} as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n {{ dbt_utils.group_by(14) }}\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_balances.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_balances.sql", "name": "int_quickbooks__general_ledger_balances", "alias": "int_quickbooks__general_ledger_balances", "checksum": {"name": "sha256", "checksum": "23b725ae7388455419b95572539a4ceb3b7fdaf0d7ee77154d11acedae1f118c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["int_quickbooks__general_ledger_date_spine"]], "sources": [], "metrics": [], "description": "Table that aggregates quickbooks__general_ledger account level transactions per period into a period_beginning_balance, period_ending_balance, and period_net_change for each period through the use of the int_quickbooks__general_ledger_date_spine model. Further, period balances are only applied to balance sheet accounts while income statement accounts do not have a persisting balance rather a period net change. Please note, a period equates to one month. \n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_balances.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0081332, "compiled_code": "with general_ledger as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ngl_accounting_periods as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\"\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast(date_trunc('year', transaction_date) as date) as date_year,\n cast(date_trunc('month', transaction_date) as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\""}, "model.quickbooks.int_quickbooks__account_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__account_classifications"], "unique_id": "model.quickbooks.int_quickbooks__account_classifications", "raw_code": "with accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__account_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__account_classifications.sql", "name": "int_quickbooks__account_classifications", "alias": "int_quickbooks__account_classifications", "checksum": {"name": "sha256", "checksum": "757b4fa3587f332bcccc9e1b7a494c99166bbd77f93a3be09bd1d027e73315f4"}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that adds missing detail to the account table. This table adds the following:\nA financial statement helper field that specifies the account as either a balance sheet or income statement account.\nAdds a transaction type to the specified account. The transaction type (debit or credit) is the type of transaction that increases the account.\nAdds a multiplier of -1 to Liability and Equity accounts to offset the account balance so liability and equity accounts do not show up as negative balances.\nCreates a new classification field that fills in the gaps if classifications were incorrectly set on certain s. For more information on how these classifications were determined you can refer to the [QuickBooks API Docs](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account) that was used as reference.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__account_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.007284, "compiled_code": "with accounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\""}, "model.quickbooks.int_quickbooks__expenses_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric"], "nodes": ["model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__expenses_union"], "unique_id": "model.quickbooks.int_quickbooks__expenses_union", "raw_code": "with expense_union as (\n\n select *\n from {{ ref('int_quickbooks__purchase_transactions') }}\n\n {% if var('using_bill', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__bill_transactions') }}\n {% endif %} \n\n {% if var('using_journal_entry', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__journal_entry_transactions')}}\n {% endif %} \n\n {% if var('using_deposit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__deposit_transactions')}}\n {% endif %} \n\n {% if var('using_vendor_credit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__vendor_credit_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nexpense_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as {{ dbt.type_string() }}) as item_id,\n cast(null as {{ dbt.type_numeric() }}) as item_quantity,\n cast(null as {{ dbt.type_numeric() }}) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__expenses_union.sql", "original_file_path": "models/intermediate/int_quickbooks__expenses_union.sql", "name": "int_quickbooks__expenses_union", "alias": "int_quickbooks__expenses_union", "checksum": {"name": "sha256", "checksum": "1281caef70631920ac2b25aef0d702c469f4641eb0b173e49c244aa064bf1d34"}, "tags": [], "refs": [["int_quickbooks__purchase_transactions"], ["int_quickbooks__bill_transactions"], ["int_quickbooks__journal_entry_transactions"], ["int_quickbooks__deposit_transactions"], ["int_quickbooks__vendor_credit_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of an expense. The expense transactional tables included are: int_quickbooks__purchase_transactions, int_quickbooks__bill_transactions, int_quickbooks_journal_entry_transactions, int_quickbooks__deposit_transactions, int_quickbooks__vendor_credit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-expense transactions an inner join on accounts with the sub_type equal to Expense is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__expenses_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0077922, "compiled_code": "with expense_union as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\"\n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nexpense_accounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as TEXT) as item_id,\n cast(null as numeric(28,6)) as item_quantity,\n cast(null as numeric(28,6)) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n \n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\""}, "model.quickbooks.int_quickbooks__invoice_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__invoice_join"], "unique_id": "model.quickbooks.int_quickbooks__invoice_join", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice')) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_linked as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_linked_txn') }}\n),\n\n{% if var('using_estimate', True) %}\nestimates as (\n\n select *\n from {{ ref('stg_quickbooks__estimate') }}\n),\n{% endif %}\n\npayments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines_payment as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as {{ dbt.type_string() }}) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n {% if var('using_estimate', True) %}\n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n {% else %}\n cast(null as {{ dbt.type_numeric() }}) as estimate_total_amount,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n\n {% endif %}\n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n {% if var('using_estimate', True) %}\n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n {% endif %}\n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n {{ dbt_utils.group_by(15) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__invoice_join.sql", "original_file_path": "models/intermediate/int_quickbooks__invoice_join.sql", "name": "int_quickbooks__invoice_join", "alias": "int_quickbooks__invoice_join", "checksum": {"name": "sha256", "checksum": "541d06a75aca5faa32943aaf2e74935402d051e7fdfd0887badea48b38ae62c1"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_linked_txn"], ["stg_quickbooks__estimate"], ["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single invoice transactions with the corresponding payment (if paid) and corresponding estimate (if provided).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__invoice_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.008642, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_linked as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\n),\n\n\nestimates as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n),\n\n\npayments as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines_payment as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as TEXT) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n \n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n \n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n \n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n \n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\""}, "model.quickbooks.int_quickbooks__retained_earnings": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.group_by", "macro.dbt.type_string", "macro.dbt.date_trunc", "macro.dbt.last_day"], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__retained_earnings"], "unique_id": "model.quickbooks.int_quickbooks__retained_earnings", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as {{ dbt.type_string() }}) as account_id,\n source_relation,\n cast('9999-00' as {{ dbt.type_string() }}) as account_number,\n cast('Net Income Adjustment' as {{ dbt.type_string() }}) as account_name,\n false as is_sub_account,\n cast(null as {{ dbt.type_string() }}) as parent_account_number,\n cast(null as {{ dbt.type_string() }}) as parent_account_name,\n cast('Equity' as {{ dbt.type_string() }}) as account_type,\n cast('RetainedEarnings' as {{ dbt.type_string() }}) as account_sub_type,\n cast('Equity' as {{ dbt.type_string() }}) as account_class,\n cast(null as {{ dbt.type_string() }}) as class_id,\n cast('balance_sheet' as {{ dbt.type_string() }}) as financial_statement_helper,\n cast({{ dbt.date_trunc(\"year\", \"period_first_day\") }} as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n {{ dbt.last_day(\"period_first_day\", \"month\") }} as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__retained_earnings.sql", "original_file_path": "models/intermediate/int_quickbooks__retained_earnings.sql", "name": "int_quickbooks__retained_earnings", "alias": "int_quickbooks__retained_earnings", "checksum": {"name": "sha256", "checksum": "bc108322a5b746dbee6f3ac5d80bee9f601f55568e9f5547780bf107d3d549a9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"]], "sources": [], "metrics": [], "description": "Table that creates an adjusting entry for retained earnings each month. The retained earnings account is created as account_id 9999 and is listed as an Equity class. This table generates the retained earnings period beginning balance, ending balance, and net change by adding the period revenues and subtracting by the period expenses. This total is set as the period ending balance. From the period ending balance the net change and beginning balances are calculated. This is table is then unioned with in_quickbooks__general_ledger_balances.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__retained_earnings.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0091488, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n group by 1,2 \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n group by 1,2 \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as TEXT) as account_id,\n source_relation,\n cast('9999-00' as TEXT) as account_number,\n cast('Net Income Adjustment' as TEXT) as account_name,\n false as is_sub_account,\n cast(null as TEXT) as parent_account_number,\n cast(null as TEXT) as parent_account_name,\n cast('Equity' as TEXT) as account_type,\n cast('RetainedEarnings' as TEXT) as account_sub_type,\n cast('Equity' as TEXT) as account_class,\n cast(null as TEXT) as class_id,\n cast('balance_sheet' as TEXT) as financial_statement_helper,\n cast(date_trunc('year', period_first_day) as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', period_first_day) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\""}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt.date_trunc", "macro.dbt.last_day", "macro.dbt.run_query"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_date_spine"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine", "raw_code": "-- depends_on: {{ ref('quickbooks__general_ledger') }}\n\nwith spine as (\n\n {% if execute %}\n {% set first_date_query %}\n select min( transaction_date ) as min_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n {% set first_date = run_query(first_date_query).columns[0][0]|string %}\n \n {% if target.type == 'postgres' %}\n {% set first_date_adjust = \"cast('\" ~ first_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set first_date_adjust = \"'\" ~ first_date[0:10] ~ \"'\" %}\n\n {% endif %}\n\n {% else %} {% set first_date_adjust = \"'2000-01-01'\" %}\n {% endif %}\n\n {% if execute %}\n {% set last_date_query %}\n select max( transaction_date ) as max_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n\n {% set current_date_query %}\n select current_date\n {% endset %}\n\n {% if run_query(current_date_query).columns[0][0]|string < run_query(last_date_query).columns[0][0]|string %}\n\n {% set last_date = run_query(last_date_query).columns[0][0]|string %}\n\n {% else %} {% set last_date = run_query(current_date_query).columns[0][0]|string %}\n {% endif %}\n \n {% if target.type == 'postgres' %}\n {% set last_date_adjust = \"cast('\" ~ last_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set last_date_adjust = \"'\" ~ last_date[0:10] ~ \"'\" %}\n\n {% endif %}\n {% endif %}\n\n {{ dbt_utils.date_spine(\n datepart=\"month\",\n start_date=first_date_adjust,\n end_date=dbt.dateadd(\"month\", 1, last_date_adjust)\n )\n }}\n),\n\ngeneral_ledger as (\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ndate_spine as (\n select\n cast({{ dbt.date_trunc(\"year\", \"date_month\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date) as period_first_day,\n {{ dbt.last_day(\"date_month\", \"month\") }} as period_last_day,\n row_number() over (order by cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_date_spine.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "name": "int_quickbooks__general_ledger_date_spine", "alias": "int_quickbooks__general_ledger_date_spine", "checksum": {"name": "sha256", "checksum": "aaf951b7837338c61415eb69d5d4518f45fbf6f5a78c0781833a64a1f08a596c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "Table that creates a date spine by month with the first date being the minimum transaction date from the quickbooks__general_ledger model and the last date being one month after the last transaction date from the quickbooks__general_ledger model.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347365.0083892, "compiled_code": "-- depends_on: \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n\nwith spine as (\n\n \n \n \n \n \n \n\n \n\n \n\n \n \n\n \n\n \n \n \n \n \n\n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 50.0\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-02' as date) + ((interval '1 month') * (row_number() over (order by 1) - 1))\n\n\n ) as date_month\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_month <= \n\n cast('2023-02-14' as date) + ((interval '1 month') * (1))\n\n\n\n)\n\nselect * from filtered\n\n\n),\n\ngeneral_ledger as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ndate_spine as (\n select\n cast(date_trunc('year', date_month) as date) as date_year,\n cast(date_trunc('month', date_month) as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', date_month) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n row_number() over (order by cast(date_trunc('month', date_month) as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\""}, "model.quickbooks.int_quickbooks__bill_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__bill_join"], "unique_id": "model.quickbooks.int_quickbooks__bill_join", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nbills_linked as (\n\n select *\n from {{ ref('stg_quickbooks__bill_linked_txn') }}\n),\n\nbill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as {{ dbt.type_string() }}) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n {{ dbt_utils.group_by(10) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__bill_join.sql", "original_file_path": "models/intermediate/int_quickbooks__bill_join.sql", "name": "int_quickbooks__bill_join", "alias": "int_quickbooks__bill_join", "checksum": {"name": "sha256", "checksum": "26e2ff679cccf1e52083b6e91f4587982d85a6d1f2747ba4733e135992d53f26"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__bill_linked_txn"], ["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single bill transaction with the corresponding bill payment (if paid).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__bill_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.0075378, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nbills_linked as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\n),\n\nbill_payments as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as TEXT) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n group by 1,2,3,4,5,6,7,8,9,10 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__bill_join\""}, "model.quickbooks.int_quickbooks__sales_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true", "macro.fivetran_utils.enabled_vars"], "nodes": ["model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__sales_union"], "unique_id": "model.quickbooks.int_quickbooks__sales_union", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice'])) }}\n\nwith sales_union as (\n\n {% if var('using_sales_receipt', True) %}\n select *\n from {{ ref('int_quickbooks__sales_receipt_transactions') }}\n {% endif %}\n\n {% if fivetran_utils.enabled_vars(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n\n {% else %}\n\n {% if var('using_invoice', True) %}\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n {% endif %} \n \n {% endif %}\n\n {% if var('using_refund_receipt', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__refund_receipt_transactions') }}\n {% endif %}\n\n {% if var('using_credit_memo', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__credit_memo_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nincome_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__sales_union.sql", "original_file_path": "models/intermediate/int_quickbooks__sales_union.sql", "name": "int_quickbooks__sales_union", "alias": "int_quickbooks__sales_union", "checksum": {"name": "sha256", "checksum": "e8efad88f641adc4d0e72e7bbb6334dc2af414b98b31c8b570dce3ca8bc4a917"}, "tags": [], "refs": [["int_quickbooks__sales_receipt_transactions"], ["int_quickbooks__invoice_transactions"], ["int_quickbooks__refund_receipt_transactions"], ["int_quickbooks__credit_memo_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of a sale. The sale transactional tables are: int_quickbooks__sales_receipt_transactions int_quickbooks__invoice_transactions, int_quickbooks__credit_memo_transactions, int_quickbooks__refund_receipt_transactions, int_quickbooks__journal_entry_transactions, int_quickbooks__deposit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-income transactions an inner join on accounts with the sub_type equal to Income is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__sales_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676347365.008894, "compiled_code": "\n\nwith sales_union as (\n\n \n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\"\n\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nincome_accounts as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n \n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks\".\"int_quickbooks__sales_union\""}, "analysis.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__balance_sheet"], "unique_id": "analysis.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__balance_sheet.sql", "original_file_path": "analysis/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2d430f9f0571cf16e08e31820360dbb610c24d5fdc1ab38bd2943b4b7161bbda"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347363.984533, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "analysis.quickbooks.quickbooks__income_statement": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__income_statement"], "unique_id": "analysis.quickbooks.quickbooks__income_statement", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__income_statement.sql", "original_file_path": "analysis/quickbooks__income_statement.sql", "name": "quickbooks__income_statement", "alias": "quickbooks__income_statement", "checksum": {"name": "sha256", "checksum": "6a2926427516128d537ff107ec14a2338f89f3f2dec1d861ec7daab31fd2c87e"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__income_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676347363.9880059, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__journal_entry_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_line_tmp')),\n staging_columns=get_journal_entry_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry_line.sql", "original_file_path": "models/stg_quickbooks__journal_entry_line.sql", "name": "stg_quickbooks__journal_entry_line", "alias": "stg_quickbooks__journal_entry_line", "checksum": {"name": "sha256", "checksum": "4a44ae6affd5281ee7cc64e05384fdb7ad18b15c18185cc970f9bd639bdf7a34"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Account id of the account which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.134965, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n billable_status\n \n as \n \n billable_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n posting_type\n \n as \n \n posting_type\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_applicable_on\n \n as \n \n tax_applicable_on\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as TEXT) as journal_entry_id,\n index,\n cast(account_id as TEXT) as account_id,\n amount,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as TEXT) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__transfer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__transfer_tmp')),\n staging_columns=get_transfer_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__transfer.sql", "original_file_path": "models/stg_quickbooks__transfer.sql", "name": "stg_quickbooks__transfer", "alias": "stg_quickbooks__transfer", "checksum": {"name": "sha256", "checksum": "2e5aeff4520b116401c48251bf9a3f2db443857c8c8f7c07aaf5b41286878746"}, "tags": [], "refs": [["stg_quickbooks__transfer_tmp"], ["stg_quickbooks__transfer_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"transfer_id": {"name": "transfer_id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "Account id of the account which the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "Account id of the account which the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__transfer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.167346, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n from_account_id\n \n as \n \n from_account_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n to_account_id\n \n as \n \n to_account_id\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as transfer_id,\n amount,\n cast(from_account_id as TEXT) as from_account_id,\n cast(to_account_id as TEXT) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_line_tmp')),\n staging_columns=get_bill_payment_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment_line.sql", "original_file_path": "models/stg_quickbooks__bill_payment_line.sql", "name": "stg_quickbooks__bill_payment_line", "alias": "stg_quickbooks__bill_payment_line", "checksum": {"name": "sha256", "checksum": "e0de0b712f688b7f8628fa17430dc3d700042e37a53783d3e8fc7ee0272a71db"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.0885792, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_credit_card_id\n \n as \n \n bill_payment_credit_card_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n linked_bill_payment_id\n \n as \n \n linked_bill_payment_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as TEXT) as bill_payment_id,\n index,\n amount,\n cast(bill_id as TEXT) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_line_tmp')),\n staging_columns=get_payment_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment_line.sql", "original_file_path": "models/stg_quickbooks__payment_line.sql", "name": "stg_quickbooks__payment_line", "alias": "stg_quickbooks__payment_line", "checksum": {"name": "sha256", "checksum": "62737fcbdd45af89bc14370b70f36cfbd94391602da7a6afb4dd97e4a1120429"}, "tags": [], "refs": [["stg_quickbooks__payment_line_tmp"], ["stg_quickbooks__payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.138983, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as TEXT) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as TEXT) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_tmp')),\n staging_columns=get_vendor_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor.sql", "original_file_path": "models/stg_quickbooks__vendor.sql", "name": "stg_quickbooks__vendor", "alias": "stg_quickbooks__vendor", "checksum": {"name": "sha256", "checksum": "6b6d5e653208581f032f6850766879795733912c64f11163419584210d386970"}, "tags": [], "refs": [["stg_quickbooks__vendor_tmp"], ["stg_quickbooks__vendor_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"vendor_id": {"name": "vendor_id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_vendor_1099": {"name": "is_vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.176354, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone\n \n as \n \n alternate_phone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n other_contacts\n \n as \n \n other_contacts\n \n, \n \n \n primary_phone\n \n as \n \n primary_phone\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_identifier\n \n as \n \n tax_identifier\n \n, \n \n \n term_id\n \n as \n \n term_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_1099\n \n as \n \n vendor_1099\n \n, \n \n \n web_url\n \n as \n \n web_url\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as TEXT) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_tmp')),\n staging_columns=get_invoice_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line.sql", "original_file_path": "models/stg_quickbooks__invoice_line.sql", "name": "stg_quickbooks__invoice_line", "alias": "stg_quickbooks__invoice_line", "checksum": {"name": "sha256", "checksum": "acc22a519a861cd717e417884b61bc191432e1c46a31ea8ebde689e6f4223177"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_tmp"], ["stg_quickbooks__invoice_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.122988, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as TEXT) as bundle_id,\n cast(account_id as TEXT) as account_id,\n cast(item_id as TEXT) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_tmp') }}\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_tmp')),\n staging_columns=get_estimate_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as estimate_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate.sql", "original_file_path": "models/stg_quickbooks__estimate.sql", "name": "stg_quickbooks__estimate", "alias": "stg_quickbooks__estimate", "checksum": {"name": "sha256", "checksum": "501fe174a3a77c1f92407b060600528ce9e3b198e143ab2985f5a0f0e9c95c70"}, "tags": [], "refs": [["stg_quickbooks__estimate_tmp"], ["stg_quickbooks__estimate_tmp"]], "sources": [], "metrics": [], "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the estimate was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.115406, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\"\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepted_by\n \n as \n \n accepted_by\n \n, \n \n \n accepted_date\n \n as \n \n accepted_date\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n expiration_date\n \n as \n \n expiration_date\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as estimate_id,\n cast(class_id as TEXT) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_line_tmp')),\n staging_columns=get_credit_memo_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo_line.sql", "original_file_path": "models/stg_quickbooks__credit_memo_line.sql", "name": "stg_quickbooks__credit_memo_line", "alias": "stg_quickbooks__credit_memo_line", "checksum": {"name": "sha256", "checksum": "b7cf6d56a640a9f0700a3620a94fc61a422c8db6dfdbcbbb5939e0fd80c5a3b7"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line_tmp"], ["stg_quickbooks__credit_memo_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1017249, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as TEXT) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_tmp')),\n staging_columns=get_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle.sql", "original_file_path": "models/stg_quickbooks__bundle.sql", "name": "stg_quickbooks__bundle", "alias": "stg_quickbooks__bundle", "checksum": {"name": "sha256", "checksum": "8e3f27ad4f72eb020a1c32b3654e9306ef2f878a0c52ac8356b695a0c03c2611"}, "tags": [], "refs": [["stg_quickbooks__bundle_tmp"], ["stg_quickbooks__bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the bundle was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.096843, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n print_grouped_items\n \n as \n \n print_grouped_items\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__department_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__department_tmp')),\n staging_columns=get_department_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__department.sql", "original_file_path": "models/stg_quickbooks__department.sql", "name": "stg_quickbooks__department", "alias": "stg_quickbooks__department", "checksum": {"name": "sha256", "checksum": "61c0a5d8287b3e73bbee2986e1d0914da2cdc67a88534bd2be26264eb6e29a67"}, "tags": [], "refs": [["stg_quickbooks__department_tmp"], ["stg_quickbooks__department_tmp"]], "sources": [], "metrics": [], "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"department_id": {"name": "department_id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the department was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_department": {"name": "is_sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if is_sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__department.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.108834, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_department_id\n \n as \n \n parent_department_id\n \n, \n \n \n sub_department\n \n as \n \n sub_department\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "raw_code": "with base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_line_tmp')),\n staging_columns=get_purchase_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_line.sql", "original_file_path": "models/stg_quickbooks__purchase_line.sql", "name": "stg_quickbooks__purchase_line", "alias": "stg_quickbooks__purchase_line", "checksum": {"name": "sha256", "checksum": "1ffe50688ea656d1019565cd7238adef008dc1e1e7e97ba2048bb6c4628f873d"}, "tags": [], "refs": [["stg_quickbooks__purchase_line_tmp"], ["stg_quickbooks__purchase_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based expense purchase line", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.144147, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as TEXT) as purchase_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__purchase_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_tmp')),\n staging_columns=get_purchase_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase.sql", "original_file_path": "models/stg_quickbooks__purchase.sql", "name": "stg_quickbooks__purchase", "alias": "stg_quickbooks__purchase", "checksum": {"name": "sha256", "checksum": "cde15943157fb1be413075f3aa62e1670fb0e6bb5118ca59ea5f75f816487d4a"}, "tags": [], "refs": [["stg_quickbooks__purchase_tmp"], ["stg_quickbooks__purchase_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of purchase expenses.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Specifies the account reference to which this purchase is applied based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.147252, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remit_to_address_id\n \n as \n \n remit_to_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as purchase_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n cast(vendor_id as TEXT) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_line_tmp')),\n staging_columns=get_refund_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id, \n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt_line.sql", "original_file_path": "models/stg_quickbooks__refund_receipt_line.sql", "name": "stg_quickbooks__refund_receipt_line", "alias": "stg_quickbooks__refund_receipt_line", "checksum": {"name": "sha256", "checksum": "6e468b38cb9d0067dad366c52ec5e366a4455ed5158fc38d6502f1520529cfe9"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line_tmp"], ["stg_quickbooks__refund_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account which the refund is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.157214, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as TEXT) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id, \n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_item_tmp')),\n staging_columns=get_bundle_item_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle_item.sql", "original_file_path": "models/stg_quickbooks__bundle_item.sql", "name": "stg_quickbooks__bundle_item", "alias": "stg_quickbooks__bundle_item", "checksum": {"name": "sha256", "checksum": "c5e85a89debd33e5f789ef58fa05a1bf931b63a0451c0ab7d8f6b0b565895a4d"}, "tags": [], "refs": [["stg_quickbooks__bundle_item_tmp"], ["stg_quickbooks__bundle_item_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing all bundle and item combinations.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bunlde and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle_item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.095532, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n item_quantity\n \n as \n \n item_quantity\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as TEXT) as bundle_id,\n cast(item_id as TEXT) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_tmp')),\n staging_columns=get_credit_memo_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo.sql", "original_file_path": "models/stg_quickbooks__credit_memo.sql", "name": "stg_quickbooks__credit_memo", "alias": "stg_quickbooks__credit_memo", "checksum": {"name": "sha256", "checksum": "3757765d000c8762afea93869ab1ba6c3d5f22574c7b3d90cd91f4ecb894f85d"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_tmp"], ["stg_quickbooks__credit_memo_tmp"]], "sources": [], "metrics": [], "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier for a credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.104243, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remaining_credit\n \n as \n \n remaining_credit\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as credit_memo_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as TEXT) as class_id,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_line_tmp')),\n staging_columns=get_sales_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt_line.sql", "original_file_path": "models/stg_quickbooks__sales_receipt_line.sql", "name": "stg_quickbooks__sales_receipt_line", "alias": "stg_quickbooks__sales_receipt_line", "checksum": {"name": "sha256", "checksum": "050d2104a9f5c48e73b726f52bc9472987b3581193a9694bc6744324ba43b82b"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line_tmp"], ["stg_quickbooks__sales_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.16286, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as TEXT) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_tmp')),\n staging_columns=get_sales_receipt_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt.sql", "original_file_path": "models/stg_quickbooks__sales_receipt.sql", "name": "stg_quickbooks__sales_receipt", "alias": "stg_quickbooks__sales_receipt", "checksum": {"name": "sha256", "checksum": "42e250594a269ed1d23ffcce0276c23ce7304ebaf20e55336607dcda12c46dae"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_tmp"], ["stg_quickbooks__sales_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account to which payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the sale was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the sold to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.165838, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as sales_receipt_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_linked_txn_tmp')),\n staging_columns=get_invoice_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_linked_txn.sql", "original_file_path": "models/stg_quickbooks__invoice_linked_txn.sql", "name": "stg_quickbooks__invoice_linked_txn", "alias": "stg_quickbooks__invoice_linked_txn", "checksum": {"name": "sha256", "checksum": "f2b779facddf42a3e62603a1254b1503c2b8a8f52dd69a27ed8a14625c1c5953"}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn_tmp"], ["stg_quickbooks__invoice_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1194692, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n charge_credit_id\n \n as \n \n charge_credit_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n reimburse_charge_id\n \n as \n \n reimburse_charge_id\n \n, \n \n \n statement_charge_id\n \n as \n \n statement_charge_id\n \n, \n \n \n time_activity_id\n \n as \n \n time_activity_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n cast(payment_id as TEXT) as payment_id,\n cast(estimate_id as TEXT) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_tmp')),\n staging_columns=get_invoice_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice.sql", "original_file_path": "models/stg_quickbooks__invoice.sql", "name": "stg_quickbooks__invoice", "alias": "stg_quickbooks__invoice", "checksum": {"name": "sha256", "checksum": "6d5a6ee2afa37a3567700cccf5831e3f27446303711dfaab707579d6c3ae4082"}, "tags": [], "refs": [["stg_quickbooks__invoice_tmp"], ["stg_quickbooks__invoice_tmp"]], "sources": [], "metrics": [], "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer reference is associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class to which the invoice is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1292648, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allow_ipnpayment\n \n as \n \n allow_ipnpayment\n \n, \n \n \n allow_online_achpayment\n \n as \n \n allow_online_achpayment\n \n, \n \n \n allow_online_credit_card_payment\n \n as \n \n allow_online_credit_card_payment\n \n, \n \n \n allow_online_payment\n \n as \n \n allow_online_payment\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n billing_bcc_email\n \n as \n \n billing_bcc_email\n \n, \n \n \n billing_cc_email\n \n as \n \n billing_cc_email\n \n, \n \n \n billing_email\n \n as \n \n billing_email\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n custom_sales_rep\n \n as \n \n custom_sales_rep\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit\n \n as \n \n deposit\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as invoice_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n cast(billing_address_id as TEXT) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as TEXT) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_tmp')),\n staging_columns=get_bill_payment_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment.sql", "original_file_path": "models/stg_quickbooks__bill_payment.sql", "name": "stg_quickbooks__bill_payment", "alias": "stg_quickbooks__bill_payment", "checksum": {"name": "sha256", "checksum": "20561d9a7ab619d2b9872cdb42a90fc7ac99f8eb10715a5ab068f9856fbeb3b5"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_tmp"], ["stg_quickbooks__bill_payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to a Department object specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.0913112, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n check_bank_account_id\n \n as \n \n check_bank_account_id\n \n, \n \n \n check_print_status\n \n as \n \n check_print_status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_account_id\n \n as \n \n credit_card_account_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n pay_type\n \n as \n \n pay_type\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_bill_payment\n \n as \n \n process_bill_payment\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bill_payment_id,\n cast(check_bank_account_id as TEXT) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as TEXT) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_bundle_tmp')),\n staging_columns=get_invoice_line_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line_bundle.sql", "original_file_path": "models/stg_quickbooks__invoice_line_bundle.sql", "name": "stg_quickbooks__invoice_line_bundle", "alias": "stg_quickbooks__invoice_line_bundle", "checksum": {"name": "sha256", "checksum": "0f971477ce0e36654a8571afaa3c4de0ca048b529a182bd4d63aa79874676719"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle_tmp"], ["stg_quickbooks__invoice_line_bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line_bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.125773, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n discount_amount\n \n as \n \n discount_amount\n \n, \n \n \n discount_rate\n \n as \n \n discount_rate\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n invoice_line_index\n \n as \n \n invoice_line_index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n line_num\n \n as \n \n line_num\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n service_date\n \n as \n \n service_date\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n cast(class_id as TEXT) as class_id,\n description,\n amount,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(item_id as TEXT) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as TEXT) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "raw_code": "with base as (\n select *\n from {{ ref('stg_quickbooks__account_tmp') }}\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as account_id,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt.type_string() }}) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__account.sql", "original_file_path": "models/stg_quickbooks__account.sql", "name": "stg_quickbooks__account", "alias": "stg_quickbooks__account", "checksum": {"name": "sha256", "checksum": "c363c2c2ed0bd1cdb52064560957c75ad004c3e727f72b5b1bc361e9d8ccf37a"}, "tags": [], "refs": [["stg_quickbooks__account_tmp"], ["stg_quickbooks__account_tmp"]], "sources": [], "metrics": [], "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"account_id": {"name": "account_id", "description": "Unique identifier for an account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__account.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.080798, "compiled_code": "with base as (\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\"\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n account_sub_type\n \n as \n \n account_sub_type\n \n, \n \n \n account_type\n \n as \n \n account_type\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_sub_accounts\n \n as \n \n balance_with_sub_accounts\n \n, \n \n \n classification\n \n as \n \n classification\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_account_id\n \n as \n \n parent_account_id\n \n, \n \n \n sub_account\n \n as \n \n sub_account\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as account_id,\n cast(account_number as TEXT) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as TEXT) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_tmp')),\n staging_columns=get_payment_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment.sql", "original_file_path": "models/stg_quickbooks__payment.sql", "name": "stg_quickbooks__payment", "alias": "stg_quickbooks__payment", "checksum": {"name": "sha256", "checksum": "f8b0ad9217d505ec03b1868643d078257992cf4dc4a1b524cab1bc454aeb4a27"}, "tags": [], "refs": [["stg_quickbooks__payment_tmp"], ["stg_quickbooks__payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "Identifies the account for obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to a customer or job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1413279, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_payment\n \n as \n \n process_payment\n \n, \n \n \n receivable_account_id\n \n as \n \n receivable_account_id\n \n, \n \n \n reference_number\n \n as \n \n reference_number\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n unapplied_amount\n \n as \n \n unapplied_amount\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as TEXT) as receivable_account_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_line_tmp')),\n staging_columns=get_estimate_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate_line.sql", "original_file_path": "models/stg_quickbooks__estimate_line.sql", "name": "stg_quickbooks__estimate_line", "alias": "stg_quickbooks__estimate_line", "checksum": {"name": "sha256", "checksum": "08e406854edfa3b633a1c7b434b2ee9e010a4e6c1bc49de7a37ef44c8d277451"}, "tags": [], "refs": [["stg_quickbooks__estimate_line_tmp"], ["stg_quickbooks__estimate_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Reference to the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.118377, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as TEXT) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_linked_txn_tmp')),\n staging_columns=get_bill_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_linked_txn.sql", "original_file_path": "models/stg_quickbooks__bill_linked_txn.sql", "name": "stg_quickbooks__bill_linked_txn", "alias": "stg_quickbooks__bill_linked_txn", "checksum": {"name": "sha256", "checksum": "aa0410b4e6baafc2e21269e6857ef88e84961b061e5007b0a7bb117c314f682d"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment id record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.086398, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(bill_payment_id as TEXT) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__address_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__address_tmp')),\n staging_columns=get_address_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__address.sql", "original_file_path": "models/stg_quickbooks__address.sql", "name": "stg_quickbooks__address", "alias": "stg_quickbooks__address", "checksum": {"name": "sha256", "checksum": "df30cdfedd8bc9f3eb2e7e7e62f55f3c1d4e1ac0a53012e4e2b567c8d4f34d63"}, "tags": [], "refs": [["stg_quickbooks__address_tmp"], ["stg_quickbooks__address_tmp"]], "sources": [], "metrics": [], "description": "Table containing address details.", "columns": {"address_id": {"name": "address_id", "description": "Unique identifier for an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_1": {"name": "address_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_2": {"name": "address_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__address.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.082495, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_sub_division_code\n \n as \n \n country_sub_division_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n line_1\n \n as \n \n line_1\n \n, \n \n \n line_2\n \n as \n \n line_2\n \n, \n \n \n line_3\n \n as \n \n line_3\n \n, \n \n \n line_4\n \n as \n \n line_4\n \n, \n \n \n line_5\n \n as \n \n line_5\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n postal_code\n \n as \n \n postal_code\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_tmp')),\n staging_columns=get_bill_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill.sql", "original_file_path": "models/stg_quickbooks__bill.sql", "name": "stg_quickbooks__bill", "alias": "stg_quickbooks__bill", "checksum": {"name": "sha256", "checksum": "fc4dc80f5295a1755ea41bcfd621db97343c27e09c1646d98c1d04c2cc30f418"}, "tags": [], "refs": [["stg_quickbooks__bill_tmp"], ["stg_quickbooks__bill_tmp"]], "sources": [], "metrics": [], "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of all bill line items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id of the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.094614, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as TEXT) as bill_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as TEXT) as payable_account_id,\n total_amount,\n cast(vendor_id as TEXT) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_line_tmp')),\n staging_columns=get_bill_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_line.sql", "original_file_path": "models/stg_quickbooks__bill_line.sql", "name": "stg_quickbooks__bill_line", "alias": "stg_quickbooks__bill_line", "checksum": {"name": "sha256", "checksum": "d541cef41b0a6505a9ac44d9317a77d9b6addf43cb083219fb9c92a2c793f401"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The id of the account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.0854661, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_tmp')),\n staging_columns=get_journal_entry_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry.sql", "original_file_path": "models/stg_quickbooks__journal_entry.sql", "name": "stg_quickbooks__journal_entry", "alias": "stg_quickbooks__journal_entry", "checksum": {"name": "sha256", "checksum": "4f62753998ceb5f5764a9fba39a9fbd9fb87a16abf35090e50f2dd18eac58346"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_tmp"], ["stg_quickbooks__journal_entry_tmp"]], "sources": [], "metrics": [], "description": "Table containing journal entry transactions.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the journal entry was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1372008, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select *\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adjustment\n \n as \n \n adjustment\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as TEXT) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_tmp')),\n staging_columns=get_refund_receipt_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt.sql", "original_file_path": "models/stg_quickbooks__refund_receipt.sql", "name": "stg_quickbooks__refund_receipt", "alias": "stg_quickbooks__refund_receipt", "checksum": {"name": "sha256", "checksum": "5cd054048b45bd2245f33de53658e58c23bf8eabb8e4cfdcc096c915a977a834"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_tmp"], ["stg_quickbooks__refund_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account from which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1601331, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n check_payment_account_number\n \n as \n \n check_payment_account_number\n \n, \n \n \n check_payment_bank_name\n \n as \n \n check_payment_bank_name\n \n, \n \n \n check_payment_check_number\n \n as \n \n check_payment_check_number\n \n, \n \n \n check_payment_name_on_account\n \n as \n \n check_payment_name_on_account\n \n, \n \n \n check_payment_status\n \n as \n \n check_payment_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as refund_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(class_id as TEXT) as class_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_line_tmp')),\n staging_columns=get_deposit_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt.type_string() }}) as deposit_account_id,\n cast(deposit_class_id as {{ dbt.type_string() }}) as deposit_class_id,\n cast(deposit_customer_id as {{ dbt.type_string() }}) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit_line.sql", "original_file_path": "models/stg_quickbooks__deposit_line.sql", "name": "stg_quickbooks__deposit_line", "alias": "stg_quickbooks__deposit_line", "checksum": {"name": "sha256", "checksum": "f2f457f0503a22ec51d606aab2156f7534091b31840927c84bb5fc7a2d34c838"}, "tags": [], "refs": [["stg_quickbooks__deposit_line_tmp"], ["stg_quickbooks__deposit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class which the deposit line record is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "Account id of the account which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Customer id of the customer which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.1105652, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n deposit_account_id\n \n as \n \n deposit_account_id\n \n, \n \n \n deposit_check_number\n \n as \n \n deposit_check_number\n \n, \n \n \n deposit_class_id\n \n as \n \n deposit_class_id\n \n, \n \n \n deposit_customer_id\n \n as \n \n deposit_customer_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n deposit_payment_method_id\n \n as \n \n deposit_payment_method_id\n \n, \n \n \n deposit_tax_applicable_on\n \n as \n \n deposit_tax_applicable_on\n \n, \n \n \n deposit_tax_code_id\n \n as \n \n deposit_tax_code_id\n \n, \n \n \n deposit_transaction_type\n \n as \n \n deposit_transaction_type\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n detail_type\n \n as \n \n detail_type\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n, \n \n \n refund_receipt_id\n \n as \n \n refund_receipt_id\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n transfer_id\n \n as \n \n transfer_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as TEXT) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as TEXT) as deposit_account_id,\n cast(deposit_class_id as TEXT) as deposit_class_id,\n cast(deposit_customer_id as TEXT) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_tmp')),\n staging_columns=get_vendor_credit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit.sql", "original_file_path": "models/stg_quickbooks__vendor_credit.sql", "name": "stg_quickbooks__vendor_credit", "alias": "stg_quickbooks__vendor_credit", "checksum": {"name": "sha256", "checksum": "bd2e5efc709f19666acabd4fdd2483c1013d05078dca5ff4ffb8a1975a4a9978"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_tmp"], ["stg_quickbooks__vendor_credit_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the vendor credit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Specifies to which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.17364, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_credit_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as TEXT) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_line_tmp')),\n staging_columns=get_vendor_credit_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit_line.sql", "original_file_path": "models/stg_quickbooks__vendor_credit_line.sql", "name": "stg_quickbooks__vendor_credit_line", "alias": "stg_quickbooks__vendor_credit_line", "checksum": {"name": "sha256", "checksum": "44764c7cbfb920e4b4c187299856d960ffdb9408d2e8dabc29c326c4c5e9f3c9"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line_tmp"], ["stg_quickbooks__vendor_credit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": [], "test": ["not_null"]}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account credited for the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Customer reference for the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Customer reference for the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.170759, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as TEXT) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_tmp')),\n staging_columns=get_deposit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit.sql", "original_file_path": "models/stg_quickbooks__deposit.sql", "name": "stg_quickbooks__deposit", "alias": "stg_quickbooks__deposit", "checksum": {"name": "sha256", "checksum": "3a8f91dd22dbe918fccedae73ae5a3e2db38a6344ac0a39d885ef49b149c89ce"}, "tags": [], "refs": [["stg_quickbooks__deposit_tmp"], ["stg_quickbooks__deposit_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifies the account to be used for this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the deposit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676347365.112784, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n cash_back_account_id\n \n as \n \n cash_back_account_id\n \n, \n \n \n cash_back_amount\n \n as \n \n cash_back_amount\n \n, \n \n \n cash_back_memo\n \n as \n \n cash_back_memo\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as deposit_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__item_tmp')),\n staging_columns=get_item_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt.type_string() }}) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as {{ dbt.type_string() }}) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__item.sql", "original_file_path": "models/stg_quickbooks__item.sql", "name": "stg_quickbooks__item", "alias": "stg_quickbooks__item", "checksum": {"name": "sha256", "checksum": "049dfdf58d6ee3ac495bb7f41562a880562a55f818a0fdfda3a14574f8dfc7ce"}, "tags": [], "refs": [["stg_quickbooks__item_tmp"], ["stg_quickbooks__item_tmp"]], "sources": [], "metrics": [], "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"item_id": {"name": "item_id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the item was created within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the posting account, that is, the account that records the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the Inventory Asset account that tracks the current value of the inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.132222, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n asset_account_id\n \n as \n \n asset_account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n \n \n inventory_start_date\n \n as \n \n inventory_start_date\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_item_id\n \n as \n \n parent_item_id\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n purchase_description\n \n as \n \n purchase_description\n \n, \n \n \n purchase_tax_code_id\n \n as \n \n purchase_tax_code_id\n \n, \n \n \n purchase_tax_included\n \n as \n \n purchase_tax_included\n \n, \n \n \n quantity_on_hand\n \n as \n \n quantity_on_hand\n \n, \n \n \n sales_tax_code_id\n \n as \n \n sales_tax_code_id\n \n, \n \n \n sales_tax_included\n \n as \n \n sales_tax_included\n \n, \n \n \n stock_keeping_unit\n \n as \n \n stock_keeping_unit\n \n, \n \n \n sub_item\n \n as \n \n sub_item\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n track_quantity_on_hand\n \n as \n \n track_quantity_on_hand\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as TEXT) as income_account_id,\n cast(asset_account_id as TEXT) as asset_account_id,\n cast(expense_account_id as TEXT) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as TEXT) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__customer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__customer.sql", "original_file_path": "models/stg_quickbooks__customer.sql", "name": "stg_quickbooks__customer", "alias": "stg_quickbooks__customer", "checksum": {"name": "sha256", "checksum": "b896108565ae7c6d917878e5c8c6dd77f3fa89e61e4bda773ab8f06dc77ad7f3"}, "tags": [], "refs": [["stg_quickbooks__customer_tmp"], ["stg_quickbooks__customer_tmp"]], "sources": [], "metrics": [], "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__customer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676347365.1066759, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone_number\n \n as \n \n alternate_phone_number\n \n, \n \n \n ar_account_id\n \n as \n \n ar_account_id\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_jobs\n \n as \n \n balance_with_jobs\n \n, \n \n \n bill_address_id\n \n as \n \n bill_address_id\n \n, \n \n \n bill_with_parent\n \n as \n \n bill_with_parent\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n default_tax_code_id\n \n as \n \n default_tax_code_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job\n \n as \n \n job\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_number\n \n as \n \n mobile_number\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n open_balance_date\n \n as \n \n open_balance_date\n \n, \n \n \n parent_customer_id\n \n as \n \n parent_customer_id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n phone_number\n \n as \n \n phone_number\n \n, \n \n \n preferred_delivery_method\n \n as \n \n preferred_delivery_method\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n resale_number\n \n as \n \n resale_number\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_exemption_reason_id\n \n as \n \n tax_exemption_reason_id\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n website\n \n as \n \n website\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "name": "stg_quickbooks__vendor_credit_tmp", "alias": "stg_quickbooks__vendor_credit_tmp", "checksum": {"name": "sha256", "checksum": "135d5b0865e271c5d29187680f97b226b40b1c6c1e618f9d0818f0b7122dcfe6"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.73245, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "name": "stg_quickbooks__refund_receipt_line_tmp", "alias": "stg_quickbooks__refund_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "b35b79d236200ea1e2d71df28d1d32dbc3d8ce93eb0c97fc2d502997e133055e"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.748851, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_line_tmp.sql", "name": "stg_quickbooks__estimate_line_tmp", "alias": "stg_quickbooks__estimate_line_tmp", "checksum": {"name": "sha256", "checksum": "e6b43f9598030c138d67898959d3bcc06d4b571b16bd790974c5bda4e90dfe18"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.7540312, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "name": "stg_quickbooks__credit_memo_line_tmp", "alias": "stg_quickbooks__credit_memo_line_tmp", "checksum": {"name": "sha256", "checksum": "877429c46bb2ccc5558c8577eda2444270a82e5e7717aec418fba450db743924"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.7643762, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_tmp.sql", "name": "stg_quickbooks__journal_entry_tmp", "alias": "stg_quickbooks__journal_entry_tmp", "checksum": {"name": "sha256", "checksum": "4cc1a32910c8e5255f3d3bbe4578fb9f562e3f2fb56eff69e22f7f69b11fa32e"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.769537, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line_bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line_bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "name": "stg_quickbooks__invoice_line_bundle_tmp", "alias": "stg_quickbooks__invoice_line_bundle_tmp", "checksum": {"name": "sha256", "checksum": "a2dc8302a76014fdede73acb185944cb3901457f568da00b9400dbadd61a4781"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line_bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.7748108, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_tmp.sql", "name": "stg_quickbooks__payment_tmp", "alias": "stg_quickbooks__payment_tmp", "checksum": {"name": "sha256", "checksum": "afe62d4646d63e7fc44dbe73ad04eb3af6f94e1fd98953cfdd5a5fae5464818f"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.780826, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_tmp.sql", "name": "stg_quickbooks__invoice_line_tmp", "alias": "stg_quickbooks__invoice_line_tmp", "checksum": {"name": "sha256", "checksum": "ec89045532e817aed8e8dc0a09e66f53a2c88aba038c7dcbbb51f6875d044f5d"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.785996, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_line_tmp.sql", "name": "stg_quickbooks__deposit_line_tmp", "alias": "stg_quickbooks__deposit_line_tmp", "checksum": {"name": "sha256", "checksum": "2a560b4173366349cc88aa5c091b2f10c61f60c0bfe73b3b0f673877627002a4"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.7910862, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.customer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='customer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='customer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__customer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__customer_tmp.sql", "name": "stg_quickbooks__customer_tmp", "alias": "stg_quickbooks__customer_tmp", "checksum": {"name": "sha256", "checksum": "2125a8e00af7bd53a1c2d0b414a756fa128457d4ecda78c77f813ba133a81325"}, "tags": [], "refs": [], "sources": [["quickbooks", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__customer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.7961862, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_line_tmp.sql", "name": "stg_quickbooks__bill_line_tmp", "alias": "stg_quickbooks__bill_line_tmp", "checksum": {"name": "sha256", "checksum": "8f06919fa5048f09e127332ef0675a7fac11b3d0787e6672612010db4a7f6193"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8010461, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__item_tmp.sql", "name": "stg_quickbooks__item_tmp", "alias": "stg_quickbooks__item_tmp", "checksum": {"name": "sha256", "checksum": "0db4c37e6bea881ee6f85348bc069b1ba7d74ce4fd550ed0ac643d4ef780ab79"}, "tags": [], "refs": [], "sources": [["quickbooks", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.806184, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='account', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='account',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__account_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__account_tmp.sql", "name": "stg_quickbooks__account_tmp", "alias": "stg_quickbooks__account_tmp", "checksum": {"name": "sha256", "checksum": "1157f7c518bf6f5e15bd9080fe829b06b7e3ddf59ea3e3a06164fe453e0def85"}, "tags": [], "refs": [], "sources": [["quickbooks", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__account_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.811719, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"account_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "name": "stg_quickbooks__vendor_credit_line_tmp", "alias": "stg_quickbooks__vendor_credit_line_tmp", "checksum": {"name": "sha256", "checksum": "38b9e05b27c7db52aa41fa740caa437895743d5de562b476917f75b55277debc"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.821858, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.department"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='department', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='department',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__department_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__department_tmp.sql", "name": "stg_quickbooks__department_tmp", "alias": "stg_quickbooks__department_tmp", "checksum": {"name": "sha256", "checksum": "ea310c765f23c51e6a2ef7bef84749f2a3fa89ac06b768173788080096354a00"}, "tags": [], "refs": [], "sources": [["quickbooks", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__department_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8269598, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"department_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_tmp.sql", "name": "stg_quickbooks__bundle_tmp", "alias": "stg_quickbooks__bundle_tmp", "checksum": {"name": "sha256", "checksum": "722d0a1b955a8c123522a87f6b97c8770d00365b98d1fc057d1724e9c5c06667"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.832099, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle_item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle_item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_item_tmp.sql", "name": "stg_quickbooks__bundle_item_tmp", "alias": "stg_quickbooks__bundle_item_tmp", "checksum": {"name": "sha256", "checksum": "29e60e9dfb0da56786a41a51e1f1d441ae47d0e7b43727f8a31af463d6daf588"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle_item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.837323, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "name": "stg_quickbooks__bill_payment_line_tmp", "alias": "stg_quickbooks__bill_payment_line_tmp", "checksum": {"name": "sha256", "checksum": "914efeefeb70efc2b64e7bae87b298f93f419a08b170e06c3efb825f8eca1968"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.848387, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_tmp.sql", "name": "stg_quickbooks__estimate_tmp", "alias": "stg_quickbooks__estimate_tmp", "checksum": {"name": "sha256", "checksum": "bd7a335748a13aae584ae7ee6a45b8565299cf7a48a0495be863920c797d83c6"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8534982, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_tmp.sql", "name": "stg_quickbooks__purchase_tmp", "alias": "stg_quickbooks__purchase_tmp", "checksum": {"name": "sha256", "checksum": "1ad34ab2fb967805e5387b4dcf01716431d1008430faee53027f043466c3896d"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.858777, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_tmp.sql", "name": "stg_quickbooks__credit_memo_tmp", "alias": "stg_quickbooks__credit_memo_tmp", "checksum": {"name": "sha256", "checksum": "1bbda612f739f980fcf68562c4efbd39bbae1e1a37713c7bd5c4deecc24660f0"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8636632, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_tmp.sql", "name": "stg_quickbooks__bill_tmp", "alias": "stg_quickbooks__bill_tmp", "checksum": {"name": "sha256", "checksum": "b579ba85c94cfa32fdb6fe9e65c2ee8e804c21417af340278c7370a7b9a31f2c"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8688262, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='transfer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='transfer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__transfer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__transfer_tmp.sql", "name": "stg_quickbooks__transfer_tmp", "alias": "stg_quickbooks__transfer_tmp", "checksum": {"name": "sha256", "checksum": "e46216a5c817a4e27af2ac9a936e7e21dc89127c20a0775d7e21c63cbdb4e173"}, "tags": [], "refs": [], "sources": [["quickbooks", "transfer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__transfer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.8748858, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='vendor', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_tmp.sql", "name": "stg_quickbooks__vendor_tmp", "alias": "stg_quickbooks__vendor_tmp", "checksum": {"name": "sha256", "checksum": "e106f714c2f307d3d50e99e8bd61cd4c03e96002006ce67191e182f2e1b19f7a"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.880088, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_line_tmp.sql", "name": "stg_quickbooks__purchase_line_tmp", "alias": "stg_quickbooks__purchase_line_tmp", "checksum": {"name": "sha256", "checksum": "39c7787a6481961b9d80bf3173afd5ece106fdb67bad2edbd69d436c6bbc3aca"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676347364.8849869, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.address"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='address', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='address',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__address_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__address_tmp.sql", "name": "stg_quickbooks__address_tmp", "alias": "stg_quickbooks__address_tmp", "checksum": {"name": "sha256", "checksum": "39a9820afa24c94b220f35fa72a0452806f5cdb828e5eb70583cded4ceb71454"}, "tags": [], "refs": [], "sources": [["quickbooks", "address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.889693, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"address_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_line_tmp.sql", "name": "stg_quickbooks__payment_line_tmp", "alias": "stg_quickbooks__payment_line_tmp", "checksum": {"name": "sha256", "checksum": "333d6ce9e2621c99b011bfbb668c38c1fe20d45a9e155278371ad1c5c19fffa3"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.894773, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "name": "stg_quickbooks__refund_receipt_tmp", "alias": "stg_quickbooks__refund_receipt_tmp", "checksum": {"name": "sha256", "checksum": "274dbd883a2adaf7559f8bc8812a558a95b52329f18218fe5494c63b7abcf7a5"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.900699, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "name": "stg_quickbooks__sales_receipt_tmp", "alias": "stg_quickbooks__sales_receipt_tmp", "checksum": {"name": "sha256", "checksum": "bb64ce4afbe0e70f70d7c9dae8a57423d5ee7dc2326107fa4c5d4371ca911fce"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.905857, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_tmp.sql", "name": "stg_quickbooks__bill_payment_tmp", "alias": "stg_quickbooks__bill_payment_tmp", "checksum": {"name": "sha256", "checksum": "f956078b3ec8d833f517f431c67509fe75f494b11a6fa4a735b85d232453dba4"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.910955, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "name": "stg_quickbooks__journal_entry_line_tmp", "alias": "stg_quickbooks__journal_entry_line_tmp", "checksum": {"name": "sha256", "checksum": "bcba66ad0358646e9993b39ecdd17c69130874858cb027ed198364bb77a3d283"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.9160728, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_tmp.sql", "name": "stg_quickbooks__deposit_tmp", "alias": "stg_quickbooks__deposit_tmp", "checksum": {"name": "sha256", "checksum": "e1f40c890b39fe0dd1bcec03c90b403c4e77015c805426b90ca3c3b1c93eb3b2"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.9212558, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "name": "stg_quickbooks__bill_linked_txn_tmp", "alias": "stg_quickbooks__bill_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "2583068246d6617f1e99a3b11589211fb7cb90f66035526cee17be299ba826ec"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.9264052, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "name": "stg_quickbooks__invoice_linked_txn_tmp", "alias": "stg_quickbooks__invoice_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "813acd5c2445c8886b2aa20afb05c5dc8165b9d38b3081b12a879e67abc67520"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.932374, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "name": "stg_quickbooks__sales_receipt_line_tmp", "alias": "stg_quickbooks__sales_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "87037987bd00e48e0a7fe6300511bcf7c80031e6fe4ba3b77902a7baa5752132"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.965997, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_tmp.sql", "name": "stg_quickbooks__invoice_tmp", "alias": "stg_quickbooks__invoice_tmp", "checksum": {"name": "sha256", "checksum": "c901088fa713bc1e59f7299c7c7d6ac7aea71b7c97e5a2821fd8efd33214bfc1"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676347364.976361, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "estimate_id"], "model": "{{ get_where_subquery(ref('quickbooks__ap_ar_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__ap_ar_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id", "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__ap_ar_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d"}, "created_at": 1676347365.04293, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, estimate_id\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\"\n group by transaction_id, source_relation, estimate_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__ap_ar_enhanced"}, "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "unique_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "unique_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "unique_quickbooks__cash_flow_statement_account_unique_id", "alias": "unique_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/unique_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.0523598, "compiled_code": "\n \n \n\nselect\n account_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is not null\ngroup by account_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "not_null_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "not_null_quickbooks__cash_flow_statement_account_unique_id", "alias": "not_null_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.053729, "compiled_code": "\n \n \n\n\n\nselect account_unique_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "transaction_line_id", "item_id"], "model": "{{ get_where_subquery(ref('quickbooks__expenses_sales_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__expenses_sales_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id", "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__expenses_sales_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938"}, "created_at": 1676347365.054986, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, transaction_line_id, item_id\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\"\n group by transaction_id, source_relation, transaction_line_id, item_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__expenses_sales_enhanced"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["unique_id", "source_relation"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation", "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0"}, "created_at": 1676347365.058957, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n unique_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n group by unique_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "period_first_day"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger_by_period')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day", "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782"}, "created_at": 1676347365.0624309, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, period_first_day\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n group by account_id, class_id, source_relation, period_first_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger_by_period"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "calendar_date"], "model": "{{ get_where_subquery(ref('quickbooks__profit_and_loss')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__profit_and_loss"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date", "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__profit_and_loss"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381"}, "created_at": 1676347365.066544, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, calendar_date\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\"\n group by account_id, class_id, source_relation, calendar_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__profit_and_loss"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation", "calendar_date", "class_id"], "model": "{{ get_where_subquery(ref('quickbooks__balance_sheet')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id", "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827"}, "created_at": 1676347365.070385, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation, calendar_date, class_id\n from \"postgres\".\"jira_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n group by account_id, source_relation, calendar_date, class_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__balance_sheet"}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__account_account_id", "alias": "not_null_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.176936, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Asset", "Equity", "Expense", "Liability", "Revenue"], "column_name": "classification", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9"}, "created_at": 1676347365.1782532, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n classification as value_field,\n count(*) as n_records\n\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by classification\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Asset','Equity','Expense','Liability','Revenue'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "classification", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29"}, "created_at": 1676347365.184777, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by account_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "address_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__address_address_id", "alias": "not_null_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__address_address_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.188212, "compiled_code": "\n \n \n\n\n\nselect address_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\nwhere address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id", "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["address_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation", "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772"}, "created_at": 1676347365.189452, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n address_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n group by address_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_line_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_line_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_line_bill_id", "alias": "not_null_stg_quickbooks__bill_line_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_line_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.192884, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1"}, "created_at": 1676347365.194122, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n group by bill_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.1977558, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.199147, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_line_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.2003899, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614"}, "created_at": 1676347365.201615, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n group by bill_payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.2053142, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec"}, "created_at": 1676347365.206552, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n group by bill_payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_bill_id", "alias": "not_null_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.20998, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation", "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4"}, "created_at": 1676347365.211205, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n group by bill_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle_item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_item_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_item_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_item_bundle_id", "alias": "not_null_stg_quickbooks__bundle_item_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle_item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_item_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.2146199, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle_item"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_bundle_id", "alias": "not_null_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.215967, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bundle_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation", "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727"}, "created_at": 1676347365.2174249, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bundle_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n group by bundle_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_line_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.220793, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858"}, "created_at": 1676347365.2221801, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n group by credit_memo_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.225832, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation", "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083"}, "created_at": 1676347365.2271621, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n group by credit_memo_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__customer_customer_id", "alias": "not_null_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__customer_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.2311912, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation", "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a"}, "created_at": 1676347365.232469, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n group by customer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_line_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_line_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_line_deposit_id", "alias": "not_null_stg_quickbooks__deposit_line_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_line_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.235979, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b"}, "created_at": 1676347365.237222, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n group by deposit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_deposit_id", "alias": "not_null_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.240866, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation", "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb"}, "created_at": 1676347365.242093, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n group by deposit_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_estimate_id", "alias": "not_null_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.245518, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation", "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68"}, "created_at": 1676347365.24676, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n group by estimate_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_line_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_line_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_line_estimate_id", "alias": "not_null_stg_quickbooks__estimate_line_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_line_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.250328, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a"}, "created_at": 1676347365.251573, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\n group by estimate_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "alias": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.255237, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.256617, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0"}, "created_at": 1676347365.257925, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n group by invoice_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.261628, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "invoice_line_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation", "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a"}, "created_at": 1676347365.2628732, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, invoice_line_index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n group by invoice_id, index, invoice_line_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_invoice_id", "alias": "not_null_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.266728, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation", "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c"}, "created_at": 1676347365.2679749, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n group by invoice_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__item_item_id", "alias": "not_null_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__item_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.27142, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation", "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5"}, "created_at": 1676347365.272655, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n item_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n group by item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_line_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.276302, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Credit", "Debit"], "column_name": "posting_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55"}, "created_at": 1676347365.277546, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n posting_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by posting_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Credit','Debit'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "posting_type", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["journal_entry_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee"}, "created_at": 1676347365.2810152, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n journal_entry_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by journal_entry_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.285046, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_line_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_line_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_line_payment_id", "alias": "not_null_stg_quickbooks__payment_line_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_line_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.28628, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625"}, "created_at": 1676347365.287673, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n group by payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_payment_id", "alias": "not_null_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.291162, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557"}, "created_at": 1676347365.292539, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n group by payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_line_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_line_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_line_purchase_id", "alias": "not_null_stg_quickbooks__purchase_line_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_line_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.295958, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153"}, "created_at": 1676347365.297207, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n group by purchase_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_purchase_id", "alias": "not_null_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.300949, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Cash", "Check", "CreditCard"], "column_name": "payment_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216"}, "created_at": 1676347365.3022022, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n payment_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by payment_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Cash','Check','CreditCard'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_type", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation", "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563"}, "created_at": 1676347365.305855, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by purchase_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_line_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.309298, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943"}, "created_at": 1676347365.31055, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_linked_txn')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1"}, "created_at": 1676347365.31421, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.315496, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Open", "Closed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614"}, "created_at": 1676347365.3169122, "column_name": "status", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation", "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d"}, "created_at": 1676347365.320235, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_line_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.323679, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576"}, "created_at": 1676347365.3249228, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n group by refund_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.328558, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation", "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605"}, "created_at": 1676347365.329963, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n group by refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.333338, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899"}, "created_at": 1676347365.335049, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n group by sales_receipt_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.338685, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation", "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d"}, "created_at": 1676347365.3399308, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n group by sales_receipt_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transfer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__transfer_transfer_id", "alias": "not_null_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__transfer_transfer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.343343, "compiled_code": "\n \n \n\n\n\nselect transfer_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\nwhere transfer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id", "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transfer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233"}, "created_at": 1676347365.344586, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transfer_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n group by transfer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_credit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b"}, "created_at": 1676347365.348029, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_credit_id, index, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n group by vendor_credit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor_credit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "alias": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.3516521, "compiled_code": "\n \n \n\n\n\nselect vendor_credit_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\nwhere vendor_credit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id", "file_key_name": "models.stg_quickbooks__vendor_credit"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_vendor_id", "alias": "not_null_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676347365.352884, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_quickbooks__vendor"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "jira_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation", "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4"}, "created_at": 1676347365.354111, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_id, source_relation\n from \"postgres\".\"jira_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n group by vendor_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "account", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "account_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"id": {"name": "id", "description": "Unique identifier of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_account": {"name": "sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"account_data\"", "created_at": 1676347365.472203}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "address", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing address details.", "columns": {"id": {"name": "id", "description": "Unique identifier of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_1": {"name": "line_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_2": {"name": "line_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"address_data\"", "created_at": 1676347365.4723148}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"", "created_at": 1676347365.4724119}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The \"Unique identifier of the bill payment id record.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"", "created_at": 1676347365.47249}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"", "created_at": 1676347365.472575}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"", "created_at": 1676347365.472665}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total \"Monetary amount of all bill line items.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"", "created_at": 1676347365.472797}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle_item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing all bundle and item combinations", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bundle and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"", "created_at": 1676347365.4729018}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"", "created_at": 1676347365.472996}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"fqn": ["quickbooks_source", "quickbooks", "credit_card_payment_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_card_payment_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_card_payment_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all credit card payment transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "The identifier of the account associated with the bank which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credit card which the payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_card_payment_txn_data\"", "created_at": 1676347365.473089}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"", "created_at": 1676347365.473183}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"", "created_at": 1676347365.4732711}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "customer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "customer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website url associated with the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"", "created_at": 1676347365.4733598}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "department", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "department_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_department": {"name": "sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"department_data\"", "created_at": 1676347365.473442}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class associated the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "The identifier of the account associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Reference to the customer associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"", "created_at": 1676347365.473523}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"id": {"name": "id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"", "created_at": 1676347365.4736052}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"id": {"name": "id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"", "created_at": 1676347365.4737558}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"", "created_at": 1676347365.473845}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"", "created_at": 1676347365.473923}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"", "created_at": 1676347365.474014}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line_bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for sales on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"", "created_at": 1676347365.474102}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"id": {"name": "id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"", "created_at": 1676347365.4741929}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the item within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "The identifier of the account associated with the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "The identifier of the account associated with the inventory asset that tracks its current value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "The identifier of the account associated used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"item_data\"", "created_at": 1676347365.474281}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"", "created_at": 1676347365.474365}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing journal entry transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjustment": {"name": "adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"", "created_at": 1676347365.474447}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"", "created_at": 1676347365.474527}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"id": {"name": "id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "The identifier of the account associated with obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with the deposit to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"", "created_at": 1676347365.474609}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"", "created_at": 1676347365.4746938}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase expenses.", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the applied purchase based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"", "created_at": 1676347365.474782}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase order.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_line_data\"", "created_at": 1676347365.4748979}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for purchase order records to respective bill and purchase objects.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_linked_txn_data\"", "created_at": 1676347365.4749749}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase orders (PO).", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_customer_type": {"name": "custom_customer_type", "description": "Custom field for customer type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "A message for the vendor. This text appears on the purchase order object sent to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction. This note does not appear on the purchase order to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_data\"", "created_at": 1676347365.475071}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"", "created_at": 1676347365.475156}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"id": {"name": "id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the refund receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"", "created_at": 1676347365.475244}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"", "created_at": 1676347365.475329}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"id": {"name": "id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with where payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated sales receipt to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"", "created_at": 1676347365.475414}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "transfer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "transfer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"id": {"name": "id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "The identifier of the account associated with where the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "The identifier of the account associated with where the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"", "created_at": 1676347365.475494}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"", "created_at": 1676347365.475583}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"", "created_at": 1676347365.47567}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_1099": {"name": "vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"", "created_at": 1676347365.475753}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.684476, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.68483, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6849852, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6851368, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6853151, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.687022, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.688022, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.695651, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.69637, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.696825, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6972659, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.697948, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.698482, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6987221, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.6992939, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.700007, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.701248, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.701525, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.701968, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7023501, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.702945, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.703259, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.704094, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.704375, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.704531, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.705224, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7062762, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.70666, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.707575, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.712071, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.71237, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7131362, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.71378, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.715332, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.715616, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.715818, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.716008, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.716199, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.716779, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.717197, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.717623, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.718278, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7186491, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.723297, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7235599, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.723927, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.724986, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.725237, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7254899, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.727505, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.729573, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.734882, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.73529, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7355251, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7356439, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.735847, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.736002, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.736296, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.737521, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.737779, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.738126, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.738718, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7470348, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.749928, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.750619, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.751043, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.751629, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7521532, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.754273, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7550452, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.755968, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7562969, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.757389, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.763215, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.765494, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7658298, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.76688, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.767246, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.768146, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7691069, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.770336, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.770663, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.77092, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.77129, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.771544, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7719119, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.772175, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7725492, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.772815, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7730381, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.773507, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.780373, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7875211, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.789213, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.79088, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.7920482, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.79557, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.796321, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.796575, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.797169, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.797739, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.801314, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8018298, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8021388, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.804255, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.804818, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.805043, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8052962, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.805656, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8101509, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.816637, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8179379, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8182669, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8189309, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.819221, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.819402, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8196008, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.81976, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.819983, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8201458, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.820812, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8210719, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8228638, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8235252, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.823839, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8246112, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.824973, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8253849, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.825999, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.826408, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8269708, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.827469, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8278852, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.828734, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.830802, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8317308, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.832157, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.834591, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.836234, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.837298, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.837621, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.83802, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.838122, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.838648, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.838872, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.839284, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8394492, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.839873, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8400168, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8406038, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.840839, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.84127, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.841378, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8418272, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8420238, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.842508, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8427851, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.843699, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.844259, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.844794, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8450181, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.845483, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.845672, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.846101, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.846323, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.846739, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8469539, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.847371, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8475142, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8479922, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.848209, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.848632, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.848773, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8500538, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.850272, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.850579, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.850786, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8510048, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.851212, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.85143, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.851674, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8518999, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.852106, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.852324, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8525188, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8527339, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8529348, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.853394, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.853575, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8539891, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.854132, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.854666, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.855028, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.855235, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.855996, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.856229, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.856682, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.857166, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.857342, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.85793, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.858264, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.858732, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.858913, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.859482, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.859738, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.859958, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8602061, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.860914, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.861121, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.861313, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8614552, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.861687, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.861793, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8620238, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.862247, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.862922, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8631942, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.863413, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.863965, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.868206, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.868437, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.868746, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.869153, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.869502, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.869955, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.870213, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.870503, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.870757, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.870974, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.871257, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.871661, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.872004, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.872802, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8732002, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.873395, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8736708, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.874341, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.874929, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.877144, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.877305, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.877534, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.87769, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.878161, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.878419, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8785548, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.878866, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.879124, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.879452, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.879713, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.880029, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.880977, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.881506, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.881858, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.882174, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.883733, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8846972, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.884932, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8852081, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.885438, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.885807, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.886482, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.888444, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8887959, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.88906, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.889271, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.889518, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.889859, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.890143, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.890552, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.890806, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8910332, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8932521, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.893555, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8939872, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.894239, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8947031, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.895023, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.895849, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.8962078, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.897281, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.899286, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.89996, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.900589, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9011562, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9012501, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.902032, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.902349, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.902751, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.903133, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.903687, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9043882, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.905107, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.906122, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9066298, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.907087, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9085262, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.909945, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.911135, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9126358, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9135659, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.914042, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9151192, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.916343, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9170501, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.917683, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.918566, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.919231, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9200351, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.920578, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.921261, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.921987, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.92289, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.923787, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9245682, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.925048, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.925674, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.926172, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9270778, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9282272, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9294631, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.930751, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.931851, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.933105, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"unique_id": "macro.dbt_utils.test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.933888, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"unique_id": "macro.dbt_utils.default__test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9343019, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9386828, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.940904, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.94138, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.941617, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9423108, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.942774, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.943054, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9434829, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9437199, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.944642, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9458508, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9468338, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9476612, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.947992, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.948521, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.949033, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.949516, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.95051, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.951818, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.952969, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.953548, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9538078, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.954528, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.955515, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9567192, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.957363, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.957758, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.959466, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.961487, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.963294, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.965651, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"unique_id": "macro.dbt_utils.safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.966151, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"unique_id": "macro.dbt_utils.default__safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.966335, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.970474, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.97542, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.975934, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.976288, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9773178, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9776158, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.977895, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9781609, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9783869, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9786198, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.979229, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.979556, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.980148, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9809039, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.981438, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.981898, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.984194, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.984703, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9857879, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.986491, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9880419, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.99014, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.991628, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.992796, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9935, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.994509, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9964411, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.997083, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.99772, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.997993, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.9986482, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347362.99948, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"unique_id": "macro.dbt_utils.generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0001888, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"unique_id": "macro.dbt_utils.default__generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.00111, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.00172, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.00191, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.002097, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"unique_id": "macro.dbt_utils.get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.002856, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"unique_id": "macro.dbt_utils.default__get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.003971, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.005413, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0057988, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.006597, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.00772, "supported_languages": null}, "macro.quickbooks.get_enabled_unioned_models": {"unique_id": "macro.quickbooks.get_enabled_unioned_models", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "macros/get_enabled_unioned_models.sql", "original_file_path": "macros/get_enabled_unioned_models.sql", "name": "get_enabled_unioned_models", "macro_sql": "{% macro get_enabled_unioned_models(unioned_models = [ \n 'bill',\n 'credit_memo',\n 'deposit',\n 'invoice',\n 'journal_entry',\n 'payment',\n 'refund_receipt',\n 'sales_receipt',\n 'transfer',\n 'vendor_credit']) %} \n\n{% set enabled_unioned_models = [] %}\n\n{{ enabled_unioned_models.append(ref('int_quickbooks__purchase_double_entry')) }}\n\n{% for unioned_model in unioned_models %} \n {% if var('using_' ~ unioned_model, True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__' ~ unioned_model ~ '_double_entry')) }}\n {% endif %}\n {% endfor %} \n \n{% if var('using_bill', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__bill_payment_double_entry')) }}\n{% endif %}\n\n{% if var('using_credit_card_payment_txn', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__credit_card_pymt_double_entry')) }}\n{% endif %}\n\n{{ return(enabled_unioned_models) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "This macro takes models from the `double_entry_transactions` folder and appends them together in an array of relations if these models are enabled. This will then be unioned together using `dbt_utils.union_relations` in the `quickbooks__general_ledger` model. `int_quickbooks__purchase_double_entry` is included by default. `int_quickbooks__bill_payment_double_entry` and `int_quickbooks__credit_card_pymt_double_entry` are appended separately because their `using_` variables do not match up like the other variables, which can't be modified.\n", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://macros/quickbooks_macros.yml", "arguments": [{"name": "unioned_models", "type": "list", "description": "List of strings referring to particular models to then be appended and eventually unioned if enabled."}, {"name": "enabled_unioned_models", "type": "list", "description": "List of relations of models that are enabled to eventually be unioned into a general ledger model."}], "created_at": 1676347364.999434, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0100741, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.011353, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0115788, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.011798, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.012025, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.01222, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0124428, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.013616, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.014575, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0160809, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.016431, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.016785, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.017202, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.017528, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0178921, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.018262, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0187788, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.018922, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.019058, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0191932, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0197701, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.020643, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.021779, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0224771, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.022658, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.02284, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.02302, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.023205, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.027051, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.027283, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0275111, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.027724, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.030178, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0313659, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.031569, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0319638, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.032365, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.032541, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.032714, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.032886, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.033622, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.034419, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0351648, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.035446, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0357492, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.036183, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.037809, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.043496, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.044, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.044599, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.046824, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0475898, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0484118, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.048626, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0488791, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.049124, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.04934, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.049549, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.050566, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.051934, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.052942, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.053165, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0533829, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.053601, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0538182, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.054057, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0544791, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0546181, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.054842, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.055796, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.057726, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.06112, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0632162, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.063671, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0638149, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0639539, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.064597, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.065234, "supported_languages": null}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_line_columns.sql", "original_file_path": "macros/get_deposit_line_columns.sql", "name": "get_deposit_line_columns", "macro_sql": "{% macro get_deposit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.068984, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_line_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_line_columns.sql", "original_file_path": "macros/get_vendor_credit_line_columns.sql", "name": "get_vendor_credit_line_columns", "macro_sql": "{% macro get_vendor_credit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0719628, "supported_languages": null}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "name": "get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.074978, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_linked_txn_columns.sql", "original_file_path": "macros/get_purchase_order_linked_txn_columns.sql", "name": "get_purchase_order_linked_txn_columns", "macro_sql": "{% macro get_purchase_order_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.076176, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_line_columns.sql", "original_file_path": "macros/get_sales_receipt_line_columns.sql", "name": "get_sales_receipt_line_columns", "macro_sql": "{% macro get_sales_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0799181, "supported_languages": null}, "macro.quickbooks_source.get_bill_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_bill_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_linked_txn_columns.sql", "original_file_path": "macros/get_bill_linked_txn_columns.sql", "name": "get_bill_linked_txn_columns", "macro_sql": "{% macro get_bill_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.080823, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_line_columns.sql", "original_file_path": "macros/get_bill_payment_line_columns.sql", "name": "get_bill_payment_line_columns", "macro_sql": "{% macro get_bill_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.083067, "supported_languages": null}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_transfer_columns.sql", "original_file_path": "macros/get_transfer_columns.sql", "name": "get_transfer_columns", "macro_sql": "{% macro get_transfer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.084844, "supported_languages": null}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_columns.sql", "original_file_path": "macros/get_purchase_columns.sql", "name": "get_purchase_columns", "macro_sql": "{% macro get_purchase_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.088763, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_line_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_line_columns.sql", "original_file_path": "macros/get_journal_entry_line_columns.sql", "name": "get_journal_entry_line_columns", "macro_sql": "{% macro get_journal_entry_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0915542, "supported_languages": null}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_columns.sql", "original_file_path": "macros/get_deposit_columns.sql", "name": "get_deposit_columns", "macro_sql": "{% macro get_deposit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.094462, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_columns.sql", "original_file_path": "macros/get_purchase_order_columns.sql", "name": "get_purchase_order_columns", "macro_sql": "{% macro get_purchase_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.0985239, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_line_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_line_columns.sql", "original_file_path": "macros/get_credit_memo_line_columns.sql", "name": "get_credit_memo_line_columns", "macro_sql": "{% macro get_credit_memo_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.102273, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_columns.sql", "original_file_path": "macros/get_journal_entry_columns.sql", "name": "get_journal_entry_columns", "macro_sql": "{% macro get_journal_entry_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.104749, "supported_languages": null}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_columns.sql", "original_file_path": "macros/get_vendor_columns.sql", "name": "get_vendor_columns", "macro_sql": "{% macro get_vendor_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.109011, "supported_languages": null}, "macro.quickbooks_source.get_invoice_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_invoice_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_linked_txn_columns.sql", "original_file_path": "macros/get_invoice_linked_txn_columns.sql", "name": "get_invoice_linked_txn_columns", "macro_sql": "{% macro get_invoice_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.110579, "supported_languages": null}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_item_columns.sql", "original_file_path": "macros/get_item_columns.sql", "name": "get_item_columns", "macro_sql": "{% macro get_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.114723, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_columns.sql", "original_file_path": "macros/get_credit_memo_columns.sql", "name": "get_credit_memo_columns", "macro_sql": "{% macro get_credit_memo_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.119602, "supported_languages": null}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_item_columns.sql", "original_file_path": "macros/get_bundle_item_columns.sql", "name": "get_bundle_item_columns", "macro_sql": "{% macro get_bundle_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1205351, "supported_languages": null}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_columns.sql", "original_file_path": "macros/get_payment_columns.sql", "name": "get_payment_columns", "macro_sql": "{% macro get_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1254709, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_columns.sql", "original_file_path": "macros/get_vendor_credit_columns.sql", "name": "get_vendor_credit_columns", "macro_sql": "{% macro get_vendor_credit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.128122, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_columns.sql", "original_file_path": "macros/get_refund_receipt_columns.sql", "name": "get_refund_receipt_columns", "macro_sql": "{% macro get_refund_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.135981, "supported_languages": null}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_columns.sql", "original_file_path": "macros/get_bill_columns.sql", "name": "get_bill_columns", "macro_sql": "{% macro get_bill_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.139061, "supported_languages": null}, "macro.quickbooks_source.get_credit_card_payment_txn_columns": {"unique_id": "macro.quickbooks_source.get_credit_card_payment_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_card_payment_txn_columns.sql", "original_file_path": "macros/get_credit_card_payment_txn_columns.sql", "name": "get_credit_card_payment_txn_columns", "macro_sql": "{% macro get_credit_card_payment_txn_columns() %}\n\n{% set columns = [ \t\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.140875, "supported_languages": null}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_line_columns.sql", "original_file_path": "macros/get_bill_line_columns.sql", "name": "get_bill_line_columns", "macro_sql": "{% macro get_bill_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1437151, "supported_languages": null}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "name": "get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.149858, "supported_languages": null}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_columns.sql", "original_file_path": "macros/get_invoice_columns.sql", "name": "get_invoice_columns", "macro_sql": "{% macro get_invoice_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allow_ipnpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_achpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_credit_card_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1568892, "supported_languages": null}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_line_columns.sql", "original_file_path": "macros/get_payment_line_columns.sql", "name": "get_payment_line_columns", "macro_sql": "{% macro get_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.158926, "supported_languages": null}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_department_columns.sql", "original_file_path": "macros/get_department_columns.sql", "name": "get_department_columns", "macro_sql": "{% macro get_department_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.160596, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_columns.sql", "original_file_path": "macros/get_invoice_line_columns.sql", "name": "get_invoice_line_columns", "macro_sql": "{% macro get_invoice_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.164903, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_line_columns.sql", "original_file_path": "macros/get_purchase_order_line_columns.sql", "name": "get_purchase_order_line_columns", "macro_sql": "{% macro get_purchase_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.167753, "supported_languages": null}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_line_columns.sql", "original_file_path": "macros/get_purchase_line_columns.sql", "name": "get_purchase_line_columns", "macro_sql": "{% macro get_purchase_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.170659, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_line_columns.sql", "original_file_path": "macros/get_refund_receipt_line_columns.sql", "name": "get_refund_receipt_line_columns", "macro_sql": "{% macro get_refund_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1744561, "supported_languages": null}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_columns.sql", "original_file_path": "macros/get_estimate_columns.sql", "name": "get_estimate_columns", "macro_sql": "{% macro get_estimate_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.180321, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_columns.sql", "original_file_path": "macros/get_bill_payment_columns.sql", "name": "get_bill_payment_columns", "macro_sql": "{% macro get_bill_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.183533, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_columns.sql", "original_file_path": "macros/get_sales_receipt_columns.sql", "name": "get_sales_receipt_columns", "macro_sql": "{% macro get_sales_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.1915252, "supported_languages": null}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_columns.sql", "original_file_path": "macros/get_bundle_columns.sql", "name": "get_bundle_columns", "macro_sql": "{% macro get_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.193834, "supported_languages": null}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_line_columns.sql", "original_file_path": "macros/get_estimate_line_columns.sql", "name": "get_estimate_line_columns", "macro_sql": "{% macro get_estimate_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.19836, "supported_languages": null}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_address_columns.sql", "original_file_path": "macros/get_address_columns.sql", "name": "get_address_columns", "macro_sql": "{% macro get_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.200617, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_bundle_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_bundle_columns.sql", "original_file_path": "macros/get_invoice_line_bundle_columns.sql", "name": "get_invoice_line_bundle_columns", "macro_sql": "{% macro get_invoice_line_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676347363.203894, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "quickbooks.ap_ar_enhanced_table": {"unique_id": "quickbooks.ap_ar_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ap_ar_enhanced_table", "block_contents": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time."}, "quickbooks.cash_flow_statement_table": {"unique_id": "quickbooks.cash_flow_statement_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "cash_flow_statement_table", "block_contents": "Table that provides all line items necessary to construct a cash flow statement."}, "quickbooks.expenses_sales_enhanced_table": {"unique_id": "quickbooks.expenses_sales_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "expenses_sales_enhanced_table", "block_contents": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records."}, "quickbooks.general_ledger_table": {"unique_id": "quickbooks.general_ledger_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_table", "block_contents": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction."}, "quickbooks.general_ledger_by_period_table": {"unique_id": "quickbooks.general_ledger_by_period_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_by_period_table", "block_contents": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year."}, "quickbooks.profit_and_loss_table": {"unique_id": "quickbooks.profit_and_loss_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "profit_and_loss_table", "block_contents": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information."}, "quickbooks.account_class": {"unique_id": "quickbooks.account_class", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_class", "block_contents": "Class of the account associated"}, "quickbooks.account_name": {"unique_id": "quickbooks.account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "Name of the account associated"}, "quickbooks.account_number": {"unique_id": "quickbooks.account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_number", "block_contents": "User defined number of the account."}, "quickbooks.account_ordinal": {"unique_id": "quickbooks.account_ordinal", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_ordinal", "block_contents": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)"}, "quickbooks.account_sub_type": {"unique_id": "quickbooks.account_sub_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_sub_type", "block_contents": "Sub type of the account associated"}, "quickbooks.account_type": {"unique_id": "quickbooks.account_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_type", "block_contents": "The type of account associated"}, "quickbooks.calendar_date": {"unique_id": "quickbooks.calendar_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "calendar_date", "block_contents": "Timestamp of the first calendar date of the month."}, "quickbooks.is_sub_account": {"unique_id": "quickbooks.is_sub_account", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_sub_account", "block_contents": "Boolean indicating whether the account is a sub account (true) or a parent account (false)."}, "quickbooks.parent_account_name": {"unique_id": "quickbooks.parent_account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_name", "block_contents": "The parent account name. If the account is the parent account then the account name is recorded."}, "quickbooks.parent_account_number": {"unique_id": "quickbooks.parent_account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_number", "block_contents": "The parent account number. If the account is the parent account then the account number is recorded."}, "quickbooks.transaction_date": {"unique_id": "quickbooks.transaction_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_date", "block_contents": "Timestamp of the date that the transaction occurred."}, "quickbooks.transaction_id": {"unique_id": "quickbooks.transaction_id", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_id", "block_contents": "Unique identifier of the transaction"}, "quickbooks_source.account_table": {"unique_id": "quickbooks_source.account_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_table", "block_contents": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity."}, "quickbooks_source.address_table": {"unique_id": "quickbooks_source.address_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "address_table", "block_contents": "Table containing address details."}, "quickbooks_source.bill_line_table": {"unique_id": "quickbooks_source.bill_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_line_table", "block_contents": "Table containing distinct line items from bills within the `bill` table."}, "quickbooks_source.bill_linked_txn_table": {"unique_id": "quickbooks_source.bill_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_linked_txn_table", "block_contents": "Mapping table containing bill payment transactions linked to a bill."}, "quickbooks_source.bill_payment_line_table": {"unique_id": "quickbooks_source.bill_payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_line_table", "block_contents": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table."}, "quickbooks_source.bill_payment_table": {"unique_id": "quickbooks_source.bill_payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_table", "block_contents": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor."}, "quickbooks_source.bill_table": {"unique_id": "quickbooks_source.bill_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_table", "block_contents": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both."}, "quickbooks_source.bundle_item_table": {"unique_id": "quickbooks_source.bundle_item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_item_table", "block_contents": "Mapping table containing all bundle and item combinations."}, "quickbooks_source.bundle_table": {"unique_id": "quickbooks_source.bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_table", "block_contents": "Table containing all bundles possible to be used within an invoice."}, "quickbooks_source.credit_card_payment_txn_table": {"unique_id": "quickbooks_source.credit_card_payment_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_card_payment_txn_table", "block_contents": "Table containing all credit card payment transactions."}, "quickbooks_source.credit_memo_line_table": {"unique_id": "quickbooks_source.credit_memo_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_line_table", "block_contents": "Table containing individual records of credit memos."}, "quickbooks_source.credit_memo_table": {"unique_id": "quickbooks_source.credit_memo_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_table", "block_contents": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold."}, "quickbooks_source.customer_table": {"unique_id": "quickbooks_source.customer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_table", "block_contents": "Table containing customers of which are consumers of the service or product that your business offers."}, "quickbooks_source.department_table": {"unique_id": "quickbooks_source.department_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_table", "block_contents": "Table containing records representing physical locations such as stores, and sales regions."}, "quickbooks_source.deposit_line_table": {"unique_id": "quickbooks_source.deposit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_line_table", "block_contents": "Table containing individual line items comprising the deposit."}, "quickbooks_source.deposit_table": {"unique_id": "quickbooks_source.deposit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_table", "block_contents": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit."}, "quickbooks_source.estimate_line_table": {"unique_id": "quickbooks_source.estimate_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_line_table", "block_contents": "Table containing line item records of an estimate."}, "quickbooks_source.estimate_table": {"unique_id": "quickbooks_source.estimate_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_table", "block_contents": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing."}, "quickbooks_source.invoice_line_bundle_table": {"unique_id": "quickbooks_source.invoice_line_bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_bundle_table", "block_contents": "Table containing lines of an invoice which were bundled."}, "quickbooks_source.invoice_line_table": {"unique_id": "quickbooks_source.invoice_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_table", "block_contents": "Table containing individual records from invoices."}, "quickbooks_source.invoice_linked_txn_table": {"unique_id": "quickbooks_source.invoice_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_linked_txn_table", "block_contents": "Mapping table for invoices records to respective estimate and payment objects."}, "quickbooks_source.invoice_table": {"unique_id": "quickbooks_source.invoice_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_table", "block_contents": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later."}, "quickbooks_source.item_table": {"unique_id": "quickbooks_source.item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_table", "block_contents": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services."}, "quickbooks_source.journal_entry_line_table": {"unique_id": "quickbooks_source.journal_entry_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_line_table", "block_contents": "Table containing individual line items of a transaction associated with a journal entry."}, "quickbooks_source.journal_entry_table": {"unique_id": "quickbooks_source.journal_entry_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_table", "block_contents": "Table containing journal entry transactions."}, "quickbooks_source.payment_line_table": {"unique_id": "quickbooks_source.payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_line_table", "block_contents": "Table containing individual line items recorded within a payment."}, "quickbooks_source.payment_table": {"unique_id": "quickbooks_source.payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_table", "block_contents": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount."}, "quickbooks_source.purchase_line_table": {"unique_id": "quickbooks_source.purchase_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase."}, "quickbooks_source.purchase_order_line_table": {"unique_id": "quickbooks_source.purchase_order_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase order."}, "quickbooks_source.purchase_order_linked_txn_table": {"unique_id": "quickbooks_source.purchase_order_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_linked_txn_table", "block_contents": "Mapping table for purchase order records to respective bill and purchase objects."}, "quickbooks_source.purchase_order_table": {"unique_id": "quickbooks_source.purchase_order_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_table", "block_contents": "Table containing records of purchase orders (PO)."}, "quickbooks_source.purchase_table": {"unique_id": "quickbooks_source.purchase_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_table", "block_contents": "Table containing records of purchase expenses."}, "quickbooks_source.refund_receipt_line_table": {"unique_id": "quickbooks_source.refund_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_line_table", "block_contents": "Table containing individual line items of a refund transaction."}, "quickbooks_source.refund_receipt_table": {"unique_id": "quickbooks_source.refund_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_table", "block_contents": "Table containing refunds to the customer for a product or service that was provided."}, "quickbooks_source.sales_receipt_line_table": {"unique_id": "quickbooks_source.sales_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_line_table", "block_contents": "Table containing individual line items of a sales transaction."}, "quickbooks_source.sales_receipt_table": {"unique_id": "quickbooks_source.sales_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_table", "block_contents": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited."}, "quickbooks_source.transfer_table": {"unique_id": "quickbooks_source.transfer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transfer_table", "block_contents": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts."}, "quickbooks_source.vendor_credit_line_table": {"unique_id": "quickbooks_source.vendor_credit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_line_table", "block_contents": "Table containing individual vendor credit line items."}, "quickbooks_source.vendor_credit_table": {"unique_id": "quickbooks_source.vendor_credit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_table", "block_contents": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services."}, "quickbooks_source.vendor_table": {"unique_id": "quickbooks_source.vendor_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product."}, "quickbooks_source.account_id": {"unique_id": "quickbooks_source.account_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The identifier of the account associated"}, "quickbooks_source.amount": {"unique_id": "quickbooks_source.amount", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "amount", "block_contents": "Monetary amount of"}, "quickbooks_source.class_id": {"unique_id": "quickbooks_source.class_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "Reference to the class associated"}, "quickbooks_source.created_at": {"unique_id": "quickbooks_source.created_at", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of the creation date"}, "quickbooks_source.currency_id": {"unique_id": "quickbooks_source.currency_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "Reference to the currency"}, "quickbooks_source.customer_id": {"unique_id": "quickbooks_source.customer_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Reference to the customer associated"}, "quickbooks_source.department_id": {"unique_id": "quickbooks_source.department_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "Reference to the department"}, "quickbooks_source.id": {"unique_id": "quickbooks_source.id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "id", "block_contents": "Unique identifier of the"}, "quickbooks_source.item_id": {"unique_id": "quickbooks_source.item_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "Reference to the item"}, "quickbooks_source._fivetran_deleted": {"unique_id": "quickbooks_source._fivetran_deleted", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {"model.quickbooks.int_quickbooks__credit_card_pymt_double_entry": [{"resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_card_pymt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_card_pymt_double_entry", "raw_code": "/*\nTable that creates a debit record to the associated bank account and a credit record to the specified credit card account.\n*/\n\n--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith credit_card_payments as (\n \n select *\n from {{ ref('stg_quickbooks__credit_card_payment_txn') }}\n where is_most_recent_record\n),\n\ncredit_card_payment_prep as (\n\n select\n credit_card_payments.credit_card_payment_id as transaction_id,\n credit_card_payments.source_relation,\n row_number() over (partition by credit_card_payments.credit_card_payment_id order by credit_card_payments.transaction_date) - 1 as index,\n credit_card_payments.transaction_date,\n credit_card_payments.amount,\n credit_card_payments.bank_account_id,\n credit_card_payments.credit_card_account_id,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as class_id\n from credit_card_payments\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount, \n cast(bank_account_id as {{ dbt.type_string() }}) as account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as account_id,\n class_id, \n 'debit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "name": "int_quickbooks__credit_card_pymt_double_entry", "alias": "int_quickbooks__credit_card_pymt_double_entry", "checksum": {"name": "sha256", "checksum": "b0b069fdb6c61a9cccf3f4ab656a9afb040568c0a0d9262943d2fce376b70e57"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to credit card payment transactions.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": false}, "created_at": 1676347365.002514, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_card_payment_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_card_payment_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn", "raw_code": "--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_card_payment_txn_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_card_payment_txn_tmp')),\n staging_columns=get_credit_card_payment_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_card_payment_id,\n amount,\n bank_account_id,\n credit_card_account_id,\n created_at,\n updated_at,\n currency_id,\n transaction_date,\n _fivetran_deleted,\n row_number() over (partition by id, updated_at order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_card_payment_txn.sql", "original_file_path": "models/stg_quickbooks__credit_card_payment_txn.sql", "name": "stg_quickbooks__credit_card_payment_txn", "alias": "stg_quickbooks__credit_card_payment_txn", "checksum": {"name": "sha256", "checksum": "a8274053455a19f46f54111bac914dd48d1365ce550d73b051c8b22f9fafef0b"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn_tmp"], ["stg_quickbooks__credit_card_payment_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('credit_card_payment_txn_table') }}", "columns": {"credit_card_payment_id": {"name": "credit_card_payment_id", "description": "{{ doc('id') }} credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "Reference to the bank account which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Reference to the credit card account which the credit card payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating if the record is the most recent updated version of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676347365.0991669, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_tmp')),\n staging_columns=get_purchase_order_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order.sql", "original_file_path": "models/stg_quickbooks__purchase_order.sql", "name": "stg_quickbooks__purchase_order", "alias": "stg_quickbooks__purchase_order", "checksum": {"name": "sha256", "checksum": "697ef46b9a8ee1073daf25c393eca18697b1c95b1b57914e5a9cef8bd8adcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676347365.154416, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_line_tmp')),\n staging_columns=get_purchase_order_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_line.sql", "original_file_path": "models/stg_quickbooks__purchase_order_line.sql", "name": "stg_quickbooks__purchase_order_line", "alias": "stg_quickbooks__purchase_order_line", "checksum": {"name": "sha256", "checksum": "a2b4b3ba47604cb6f1391043643e49168328c1ab7df52754f699748f11fa8888"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_line_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase order is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676347365.150151, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_linked_txn_tmp')),\n staging_columns=get_purchase_order_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_linked_txn.sql", "original_file_path": "models/stg_quickbooks__purchase_order_linked_txn.sql", "name": "stg_quickbooks__purchase_order_linked_txn", "alias": "stg_quickbooks__purchase_order_linked_txn", "checksum": {"name": "sha256", "checksum": "3e9cbee58cb2dab37c5798fd7a97954b3eae45670cc0288ce232394180fd1605"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_linked_txn_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676347365.151566, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "name": "stg_quickbooks__purchase_order_line_tmp", "alias": "stg_quickbooks__purchase_order_line_tmp", "checksum": {"name": "sha256", "checksum": "be4cdef26ee4b271e7c425130b4c3b80be45214b5be926af060d32331badcc0f"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676347364.759237, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_card_payment_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp", "raw_code": "--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_card_payment_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_card_payment_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "name": "stg_quickbooks__credit_card_payment_txn_tmp", "alias": "stg_quickbooks__credit_card_payment_txn_tmp", "checksum": {"name": "sha256", "checksum": "b1910ce2b3a9463b6c4b232fa24e807de5c899a1d03dde1feef6bc43dbe8b3d6"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_card_payment_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676347364.816572, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_tmp.sql", "name": "stg_quickbooks__purchase_order_tmp", "alias": "stg_quickbooks__purchase_order_tmp", "checksum": {"name": "sha256", "checksum": "a14f234fcfdc6777fe2bb8898ce79b14b45590d19bd6eab25d33ee95cc899bbd"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676347364.843283, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "jira_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "alias": "stg_quickbooks__purchase_order_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "926409c011fa67fdcd598c4c0c21b87fb5dabe8654d46f0ee7caac0a028d5d99"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676347364.9710872, "config_call_dict": {"enabled": false}}]}, "parent_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__general_ledger_by_period": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry"], "model.quickbooks.quickbooks__profit_and_loss": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.quickbooks__cash_flow_statement": ["model.quickbooks.int_quickbooks__cash_flow_classifications"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__balance_sheet"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "analysis.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "analysis.quickbooks.quickbooks__income_statement": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["source.quickbooks_source.quickbooks.vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["source.quickbooks_source.quickbooks.refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["source.quickbooks_source.quickbooks.estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["source.quickbooks_source.quickbooks.credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["source.quickbooks_source.quickbooks.journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["source.quickbooks_source.quickbooks.invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["source.quickbooks_source.quickbooks.payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["source.quickbooks_source.quickbooks.invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["source.quickbooks_source.quickbooks.deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["source.quickbooks_source.quickbooks.customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["source.quickbooks_source.quickbooks.bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["source.quickbooks_source.quickbooks.item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["source.quickbooks_source.quickbooks.account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["source.quickbooks_source.quickbooks.vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["source.quickbooks_source.quickbooks.department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["source.quickbooks_source.quickbooks.bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["source.quickbooks_source.quickbooks.bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["source.quickbooks_source.quickbooks.bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["source.quickbooks_source.quickbooks.estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["source.quickbooks_source.quickbooks.purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["source.quickbooks_source.quickbooks.credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["source.quickbooks_source.quickbooks.bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["source.quickbooks_source.quickbooks.transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["source.quickbooks_source.quickbooks.vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["source.quickbooks_source.quickbooks.purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["source.quickbooks_source.quickbooks.address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["source.quickbooks_source.quickbooks.payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["source.quickbooks_source.quickbooks.refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["source.quickbooks_source.quickbooks.sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["source.quickbooks_source.quickbooks.bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["source.quickbooks_source.quickbooks.journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["source.quickbooks_source.quickbooks.deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["source.quickbooks_source.quickbooks.bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["source.quickbooks_source.quickbooks.invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["source.quickbooks_source.quickbooks.sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["source.quickbooks_source.quickbooks.invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": ["model.quickbooks.quickbooks__general_ledger"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": ["model.quickbooks.quickbooks__general_ledger_by_period"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": ["model.quickbooks.quickbooks__profit_and_loss"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": ["model.quickbooks.quickbooks__balance_sheet"], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": ["model.quickbooks_source.stg_quickbooks__bundle_item"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": ["model.quickbooks_source.stg_quickbooks__vendor"], "source.quickbooks_source.quickbooks.account": [], "source.quickbooks_source.quickbooks.address": [], "source.quickbooks_source.quickbooks.bill_line": [], "source.quickbooks_source.quickbooks.bill_linked_txn": [], "source.quickbooks_source.quickbooks.bill_payment_line": [], "source.quickbooks_source.quickbooks.bill_payment": [], "source.quickbooks_source.quickbooks.bill": [], "source.quickbooks_source.quickbooks.bundle_item": [], "source.quickbooks_source.quickbooks.bundle": [], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": [], "source.quickbooks_source.quickbooks.credit_memo": [], "source.quickbooks_source.quickbooks.customer": [], "source.quickbooks_source.quickbooks.department": [], "source.quickbooks_source.quickbooks.deposit_line": [], "source.quickbooks_source.quickbooks.deposit": [], "source.quickbooks_source.quickbooks.estimate": [], "source.quickbooks_source.quickbooks.estimate_line": [], "source.quickbooks_source.quickbooks.invoice_linked_txn": [], "source.quickbooks_source.quickbooks.invoice_line": [], "source.quickbooks_source.quickbooks.invoice_line_bundle": [], "source.quickbooks_source.quickbooks.invoice": [], "source.quickbooks_source.quickbooks.item": [], "source.quickbooks_source.quickbooks.journal_entry_line": [], "source.quickbooks_source.quickbooks.journal_entry": [], "source.quickbooks_source.quickbooks.payment_line": [], "source.quickbooks_source.quickbooks.payment": [], "source.quickbooks_source.quickbooks.purchase_line": [], "source.quickbooks_source.quickbooks.purchase": [], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": [], "source.quickbooks_source.quickbooks.refund_receipt": [], "source.quickbooks_source.quickbooks.sales_receipt_line": [], "source.quickbooks_source.quickbooks.sales_receipt": [], "source.quickbooks_source.quickbooks.transfer": [], "source.quickbooks_source.quickbooks.vendor_credit_line": [], "source.quickbooks_source.quickbooks.vendor_credit": [], "source.quickbooks_source.quickbooks.vendor": []}, "child_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.int_quickbooks__cash_flow_classifications", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"], "model.quickbooks.quickbooks__general_ledger_by_period": ["analysis.quickbooks.quickbooks__balance_sheet", "analysis.quickbooks.quickbooks__income_statement", "model.quickbooks.quickbooks__balance_sheet", "model.quickbooks.quickbooks__profit_and_loss", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"], "model.quickbooks.quickbooks__profit_and_loss": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"], "model.quickbooks.quickbooks__cash_flow_statement": ["test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__cash_flow_statement"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__retained_earnings", "model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "analysis.quickbooks.quickbooks__balance_sheet": [], "analysis.quickbooks.quickbooks__income_statement": [], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks.int_quickbooks__transfer_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks.int_quickbooks__bill_join", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["model.quickbooks_source.stg_quickbooks__estimate_line", "model.quickbooks_source.stg_quickbooks__estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["model.quickbooks_source.stg_quickbooks__transfer", "model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry_line", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": [], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": [], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": [], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": [], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": [], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": [], "source.quickbooks_source.quickbooks.account": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "source.quickbooks_source.quickbooks.address": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "source.quickbooks_source.quickbooks.bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "source.quickbooks_source.quickbooks.bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "source.quickbooks_source.quickbooks.bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "source.quickbooks_source.quickbooks.bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "source.quickbooks_source.quickbooks.bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "source.quickbooks_source.quickbooks.bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "source.quickbooks_source.quickbooks.bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "source.quickbooks_source.quickbooks.credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "source.quickbooks_source.quickbooks.customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "source.quickbooks_source.quickbooks.department": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "source.quickbooks_source.quickbooks.deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "source.quickbooks_source.quickbooks.deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "source.quickbooks_source.quickbooks.estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "source.quickbooks_source.quickbooks.estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "source.quickbooks_source.quickbooks.invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "source.quickbooks_source.quickbooks.invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "source.quickbooks_source.quickbooks.invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "source.quickbooks_source.quickbooks.invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "source.quickbooks_source.quickbooks.item": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "source.quickbooks_source.quickbooks.journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "source.quickbooks_source.quickbooks.journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "source.quickbooks_source.quickbooks.payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "source.quickbooks_source.quickbooks.payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "source.quickbooks_source.quickbooks.purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "source.quickbooks_source.quickbooks.purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "source.quickbooks_source.quickbooks.refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "source.quickbooks_source.quickbooks.sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "source.quickbooks_source.quickbooks.sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "source.quickbooks_source.quickbooks.transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "source.quickbooks_source.quickbooks.vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "source.quickbooks_source.quickbooks.vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "source.quickbooks_source.quickbooks.vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"]}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T19:08:57.263722Z", "invocation_id": "740b6cd8-3bf3-4a2b-99f7-4f7af9e39f64", "env": {}, "project_id": "fb1a7b9ce88ce39cb54ba2ec5c0aaab3", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_integration_tests.bill_payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_data.csv", "original_file_path": "seeds/bill_payment_data.csv", "name": "bill_payment_data", "alias": "bill_payment_data", "checksum": {"name": "sha256", "checksum": "654e27fe99f7891483ba67ae67202f00a166df46c6463965f831bd47d3bc53cf"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.154881, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_data\""}, "seed.quickbooks_integration_tests.bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_data.csv", "original_file_path": "seeds/bundle_data.csv", "name": "bundle_data", "alias": "bundle_data", "checksum": {"name": "sha256", "checksum": "090d802f05c558f45f05a760b5fb1fa879dfeb26c737e6356dcf6bfcb9fbbefb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.162453, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_data\""}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_line_data.csv", "original_file_path": "seeds/bill_payment_line_data.csv", "name": "bill_payment_line_data", "alias": "bill_payment_line_data", "checksum": {"name": "sha256", "checksum": "ae8e7b58ddb78ecbcb7facd257a29f27db08cb69e4014ee40e3a07d02e7ea51a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.163966, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_integration_tests.payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_line_data.csv", "original_file_path": "seeds/payment_line_data.csv", "name": "payment_line_data", "alias": "payment_line_data", "checksum": {"name": "sha256", "checksum": "6e54b93beaddd05e86b071eb43833845bfc76a841b2780e3e1059f6d661cd238"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.1654348, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_line_data\""}, "seed.quickbooks_integration_tests.vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_data.csv", "original_file_path": "seeds/vendor_data.csv", "name": "vendor_data", "alias": "vendor_data", "checksum": {"name": "sha256", "checksum": "98ce313c6a3acf1262de91d25905b85fe760227a534703d9c6bc0e4149b055b5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676401663.167092, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_data\""}, "seed.quickbooks_integration_tests.address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "address_data"], "unique_id": "seed.quickbooks_integration_tests.address_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "address_data.csv", "original_file_path": "seeds/address_data.csv", "name": "address_data", "alias": "address_data", "checksum": {"name": "sha256", "checksum": "2b7bfb3f76e41e3fee0443c10a939053b0edb31b9f4be1bcd0af8d4b686da7b0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.168598, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"address_data\""}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_bundle_data.csv", "original_file_path": "seeds/invoice_line_bundle_data.csv", "name": "invoice_line_bundle_data", "alias": "invoice_line_bundle_data", "checksum": {"name": "sha256", "checksum": "f1cdc81c2fb1ec4f76c5226e2f5e4ed6f17f7b446cb53cfa539d8caafb252a5c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.1701272, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_integration_tests.invoice_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_data.csv", "original_file_path": "seeds/invoice_data.csv", "name": "invoice_data", "alias": "invoice_data", "checksum": {"name": "sha256", "checksum": "db4f065992372097a09aec08d7b346381eb542e8ee2668d7d664564262c60b55"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.171693, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_data\""}, "seed.quickbooks_integration_tests.payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_integration_tests.payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_data.csv", "original_file_path": "seeds/payment_data.csv", "name": "payment_data", "alias": "payment_data", "checksum": {"name": "sha256", "checksum": "8c2df9d7db2b4668ddbd1e1e3635cbaf40c798e19be2a83f65e09988771ebb38"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.173315, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_data\""}, "seed.quickbooks_integration_tests.invoice_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_data.csv", "original_file_path": "seeds/invoice_line_data.csv", "name": "invoice_line_data", "alias": "invoice_line_data", "checksum": {"name": "sha256", "checksum": "4318a37462107eb6c0548adfba95908611dd94a7ad816ef366524a9eaa4dc4da"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.174814, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_data\""}, "seed.quickbooks_integration_tests.deposit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"deposit_account_id": "bigint", "deposit_class_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_line_data.csv", "original_file_path": "seeds/deposit_line_data.csv", "name": "deposit_line_data", "alias": "deposit_line_data", "checksum": {"name": "sha256", "checksum": "43cf2e49d2ccc28c38ba7db60582b36e46c0ec96827b475e145975fdf8bf9d4e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deposit_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "deposit_class_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676401663.176335, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_line_data\""}, "seed.quickbooks_integration_tests.estimate_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_line_data.csv", "original_file_path": "seeds/estimate_line_data.csv", "name": "estimate_line_data", "alias": "estimate_line_data", "checksum": {"name": "sha256", "checksum": "cff0f0d902a16e9ab0b877d174dd67536537fc669c16505c2efadb0721ce6c26"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.178028, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_line_data\""}, "seed.quickbooks_integration_tests.purchase_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"credit": "bool"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_data.csv", "original_file_path": "seeds/purchase_data.csv", "name": "purchase_data", "alias": "purchase_data", "checksum": {"name": "sha256", "checksum": "b66de1a5aaf428b1f208ecb9edccd6394086db485d6fc7dde7b152862f03eac9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"credit": "{{ 'boolean' if target.name == 'snowflake' else 'bool' }}"}}, "created_at": 1676401663.1795552, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_data\""}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_line_data.csv", "original_file_path": "seeds/refund_receipt_line_data.csv", "name": "refund_receipt_line_data", "alias": "refund_receipt_line_data", "checksum": {"name": "sha256", "checksum": "8a67266f87e49dda0de57a6d66b4c1a053af545a6c8d394f8df6470b98cd31c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.181033, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_line_data.csv", "original_file_path": "seeds/credit_memo_line_data.csv", "name": "credit_memo_line_data", "alias": "credit_memo_line_data", "checksum": {"name": "sha256", "checksum": "01898bc6786c3c48ebf5aa4170ea54257dd66e6fc38931067c9012bc639f6994"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.182467, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_integration_tests.bill_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_integration_tests.bill_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_data.csv", "original_file_path": "seeds/bill_data.csv", "name": "bill_data", "alias": "bill_data", "checksum": {"name": "sha256", "checksum": "af6dcdb238e4819003cc182dc5f39a82a61ab19d1299752afc90d49578cfc79b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.184052, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_data\""}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_linked_txn_data.csv", "original_file_path": "seeds/bill_linked_txn_data.csv", "name": "bill_linked_txn_data", "alias": "bill_linked_txn_data", "checksum": {"name": "sha256", "checksum": "14f88fc0716d3c253043a68af9b026ab54a93a33784c682b6ec700671f1e03c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.1855009, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_integration_tests.vendor_credit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_data.csv", "original_file_path": "seeds/vendor_credit_data.csv", "name": "vendor_credit_data", "alias": "vendor_credit_data", "checksum": {"name": "sha256", "checksum": "ccc4a1ca3967e3eb7f61d2831242f07b1e5a77006dd4312a17fd36e7ea008bea"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.186955, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_data\""}, "seed.quickbooks_integration_tests.customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_integration_tests.customer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "customer_data.csv", "original_file_path": "seeds/customer_data.csv", "name": "customer_data", "alias": "customer_data", "checksum": {"name": "sha256", "checksum": "2b72eabf58923823033e461d1960295c156b31bf5ace046fc388c336fd96a29d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.188391, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"customer_data\""}, "seed.quickbooks_integration_tests.estimate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_data.csv", "original_file_path": "seeds/estimate_data.csv", "name": "estimate_data", "alias": "estimate_data", "checksum": {"name": "sha256", "checksum": "06ca472200a91b5758a0e9530e6c810a09e466cbf1aa7fbac215fee8a9f4d737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.19035, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_data\""}, "seed.quickbooks_integration_tests.purchase_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_line_data.csv", "original_file_path": "seeds/purchase_line_data.csv", "name": "purchase_line_data", "alias": "purchase_line_data", "checksum": {"name": "sha256", "checksum": "33355dd453e68ac5a5afa2f71e3c515dc414cdd55a489c65d2c2c4fa06fd18e7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676401663.1918468, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_line_data.csv", "original_file_path": "seeds/journal_entry_line_data.csv", "name": "journal_entry_line_data", "alias": "journal_entry_line_data", "checksum": {"name": "sha256", "checksum": "76d98c0fe816cb2d3790e1c63b61c0b6128de39e3175a231b98dbd640ba13cd4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.1933372, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_data.csv", "original_file_path": "seeds/journal_entry_data.csv", "name": "journal_entry_data", "alias": "journal_entry_data", "checksum": {"name": "sha256", "checksum": "6f717632a6fe0901786fbdfed63db69af1c928331ed9cb83f9fd389fe2b9ab83"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.194779, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_data\""}, "seed.quickbooks_integration_tests.bill_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_line_data.csv", "original_file_path": "seeds/bill_line_data.csv", "name": "bill_line_data", "alias": "bill_line_data", "checksum": {"name": "sha256", "checksum": "df882ab43a0bd79aed13e13dee1934269989ae1bea9d3672ed7cc9840c14d073"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1676401663.196643, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_line_data\""}, "seed.quickbooks_integration_tests.bundle_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_item_data.csv", "original_file_path": "seeds/bundle_item_data.csv", "name": "bundle_item_data", "alias": "bundle_item_data", "checksum": {"name": "sha256", "checksum": "69218d4dc89cf8da55d1a5aab12bbe45129b48377fa7615f0030616d8c34fe9d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.1981928, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_item_data\""}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_linked_txn_data.csv", "original_file_path": "seeds/invoice_linked_txn_data.csv", "name": "invoice_linked_txn_data", "alias": "invoice_linked_txn_data", "checksum": {"name": "sha256", "checksum": "88dda316adf9a5921231dbe5bd5d0c425391ccf9b72a7d6c937155d67b3b45ba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.199677, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_integration_tests.account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "account_data"], "unique_id": "seed.quickbooks_integration_tests.account_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "account_data.csv", "original_file_path": "seeds/account_data.csv", "name": "account_data", "alias": "account_data", "checksum": {"name": "sha256", "checksum": "82ea90640018b00ad075d5bc1f78bdf38e05b0359fda1b40f4dd249efe1d85d9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.201322, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"account_data\""}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_line_data.csv", "original_file_path": "seeds/purchase_order_line_data.csv", "name": "purchase_order_line_data", "alias": "purchase_order_line_data", "checksum": {"name": "sha256", "checksum": "39d5f88917f7d5d8ec70465d8569a38bd19d72bfb26bc495f3231b3e6599c945"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.202772, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_integration_tests.transfer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_integration_tests.transfer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "transfer_data.csv", "original_file_path": "seeds/transfer_data.csv", "name": "transfer_data", "alias": "transfer_data", "checksum": {"name": "sha256", "checksum": "8301e8b1cbaa430f338d9b589570efb442969ab67a24a92e615b08e3440431ce"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.2042189, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"transfer_data\""}, "seed.quickbooks_integration_tests.purchase_order_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_data.csv", "original_file_path": "seeds/purchase_order_data.csv", "name": "purchase_order_data", "alias": "purchase_order_data", "checksum": {"name": "sha256", "checksum": "41146f57f7697001a690027ea7182ef76dd5d591bb5dce7438edefb3e5fd0101"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.205662, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_data\""}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_line_data.csv", "original_file_path": "seeds/sales_receipt_line_data.csv", "name": "sales_receipt_line_data", "alias": "sales_receipt_line_data", "checksum": {"name": "sha256", "checksum": "19895ca1cfb2ebe0a4e8ef0e5c5ef9c0dbb505053cc4b98bb06de8bd3ead523f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.207247, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_line_data.csv", "original_file_path": "seeds/vendor_credit_line_data.csv", "name": "vendor_credit_line_data", "alias": "vendor_credit_line_data", "checksum": {"name": "sha256", "checksum": "8c60276eb72f29fcd60b6aff2615648b71ce47e0b738331b54f86c988a979737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1676401663.208718, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_card_payment_txn_data"], "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_card_payment_txn_data.csv", "original_file_path": "seeds/credit_card_payment_txn_data.csv", "name": "credit_card_payment_txn_data", "alias": "credit_card_payment_txn_data", "checksum": {"name": "sha256", "checksum": "df04fb5f0ab05dd015e6476d647f9564edf6f015cd1d429ceded40e9bfd915b9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.210191, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_card_payment_txn_data\""}, "seed.quickbooks_integration_tests.credit_memo_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_data.csv", "original_file_path": "seeds/credit_memo_data.csv", "name": "credit_memo_data", "alias": "credit_memo_data", "checksum": {"name": "sha256", "checksum": "3cef678ada5ab1119a096e5f6bea67c6680466ff2a21807512f1a4dba83b6139"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.211627, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_data\""}, "seed.quickbooks_integration_tests.department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "department_data"], "unique_id": "seed.quickbooks_integration_tests.department_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "department_data.csv", "original_file_path": "seeds/department_data.csv", "name": "department_data", "alias": "department_data", "checksum": {"name": "sha256", "checksum": "079a79543e6cfcdac83eeeeb9672451756cc6c48e7d4c572d9f761b9314b18d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.213197, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"department_data\""}, "seed.quickbooks_integration_tests.item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "item_data"], "unique_id": "seed.quickbooks_integration_tests.item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "item_data.csv", "original_file_path": "seeds/item_data.csv", "name": "item_data", "alias": "item_data", "checksum": {"name": "sha256", "checksum": "8057771cc5c837c6193ad423e6a52f7058f6001550eaa0c15098857415aee7d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.2146308, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"item_data\""}, "seed.quickbooks_integration_tests.sales_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_data.csv", "original_file_path": "seeds/sales_receipt_data.csv", "name": "sales_receipt_data", "alias": "sales_receipt_data", "checksum": {"name": "sha256", "checksum": "2ac15faf0cdff7d71155fc20bb86e69d0a67d25f2172f220dbe850d45738230b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1676401663.216107, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_data\""}, "seed.quickbooks_integration_tests.deposit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_data.csv", "original_file_path": "seeds/deposit_data.csv", "name": "deposit_data", "alias": "deposit_data", "checksum": {"name": "sha256", "checksum": "e0e4299672423dbdf3d63d050ecd34c29580b5a368b64307053a635e7dd9286e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.2175932, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_data\""}, "seed.quickbooks_integration_tests.refund_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_data.csv", "original_file_path": "seeds/refund_receipt_data.csv", "name": "refund_receipt_data", "alias": "refund_receipt_data", "checksum": {"name": "sha256", "checksum": "0bfb44ee366239221dfee9e985b0c66d5a7cbc6d0bb8c18cf02acba7616c135d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1676401663.219201, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_data\""}, "model.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__balance_sheet"], "unique_id": "model.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__balance_sheet.sql", "original_file_path": "models/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2dfcdf44d9e54e45aad4ba6e1857e20aff338846ce16fc2e059774d1496ca222"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all asset, liability, and equity account classes by calendar year and month enriched with account type, class, and parent information.\n", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total ending period balance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.5970519, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\""}, "model.quickbooks.quickbooks__general_ledger_by_period": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger_by_period"], "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nretained_earnings as (\n\n select *\n from {{ ref('int_quickbooks__retained_earnings') }}\n),\n\n{% if var('financial_statement_ordinal') %}\nordinals as ( \n\n select \n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n ordinal\n from {{ var('financial_statement_ordinal') }}\n),\n{% endif %}\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n {% if var('financial_statement_ordinal') %}\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as account_ordinal\n {% else %}\n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n {% endif %}\n from balances_earnings_unioned\n {% if var('financial_statement_ordinal') %}\n left join ordinals as account_number_ordinal\n on balances_earnings_unioned.account_number = account_number_ordinal.account_number\n left join ordinals as account_sub_type_ordinal\n on balances_earnings_unioned.account_sub_type = account_sub_type_ordinal.account_sub_type\n left join ordinals as account_type_ordinal\n on balances_earnings_unioned.account_type = account_type_ordinal.account_type\n left join ordinals as account_class_ordinal\n on balances_earnings_unioned.account_class = account_class_ordinal.account_class\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger_by_period.sql", "original_file_path": "models/quickbooks__general_ledger_by_period.sql", "name": "quickbooks__general_ledger_by_period", "alias": "quickbooks__general_ledger_by_period", "checksum": {"name": "sha256", "checksum": "81b71ad880e03e46825645b549c5459da037d29b07524c66547764201690f1d9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"], ["int_quickbooks__retained_earnings"]], "sources": [], "metrics": [], "description": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year.", "columns": {"account_id": {"name": "account_id", "description": "The identifier of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account. with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Helper field identifying whether the account impacts the balances sheet or income statement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_year": {"name": "date_year", "description": "Timestamp of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_first_day": {"name": "period_first_day", "description": "Timestamp of the first date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_last_day": {"name": "period_last_day", "description": "Timestamp of the last date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_net_change": {"name": "period_net_change", "description": "Account balance difference from the beginning and ending of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_beginning_balance": {"name": "period_beginning_balance", "description": "Balance of the account as of the first date of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_ending_balance": {"name": "period_ending_balance", "description": "Sum of all transaction line adjusted_balances of the account for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger_by_period.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.591443, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nretained_earnings as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\"\n),\n\n\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n \n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n \n from balances_earnings_unioned\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\""}, "model.quickbooks.quickbooks__general_ledger": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks.get_enabled_unioned_models", "macro.dbt_utils.union_relations", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger"], "unique_id": "model.quickbooks.quickbooks__general_ledger", "raw_code": "with unioned_models as (\n\n {{ dbt_utils.union_relations(get_enabled_unioned_models()) }}\n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n),\n\n\nadjusted_gl as (\n \n select\n {{ dbt_utils.generate_surrogate_key(['gl_union.transaction_id', 'gl_union.index', 'gl_union.account_id', ' gl_union.transaction_type', 'gl_union.transaction_source']) }} as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger.sql", "original_file_path": "models/quickbooks__general_ledger.sql", "name": "quickbooks__general_ledger", "alias": "quickbooks__general_ledger", "checksum": {"name": "sha256", "checksum": "b1c31176369acc7045e2d328f3603cbe99c014621e59c82d7f281a4521310e6c"}, "tags": [], "refs": [["int_quickbooks__purchase_double_entry"], ["int_quickbooks__bill_double_entry"], ["int_quickbooks__credit_memo_double_entry"], ["int_quickbooks__deposit_double_entry"], ["int_quickbooks__invoice_double_entry"], ["int_quickbooks__journal_entry_double_entry"], ["int_quickbooks__payment_double_entry"], ["int_quickbooks__refund_receipt_double_entry"], ["int_quickbooks__sales_receipt_double_entry"], ["int_quickbooks__transfer_double_entry"], ["int_quickbooks__vendor_credit_double_entry"], ["int_quickbooks__bill_payment_double_entry"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction.", "columns": {"unique_id": {"name": "unique_id", "description": "Unique identifier of the general ledger line, dependent on `transaction_id`, `transaction_index`, `account_id`, `transaction_type`, `transaction_source`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction. Each transaction will have an offsetting debit and credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_index": {"name": "transaction_index", "description": "Unique identifier of the individual debit and credit records of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Either 'balance sheet' or 'income statement' and is used to determine that financial statement the account impacts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_current_balance": {"name": "account_current_balance", "description": "Total current balance of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the transaction line. Will be one of 'Expense', 'Revenue', 'Asset', 'Liability', and 'Equity'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Identifier of whether the transaction is a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_source": {"name": "transaction_source", "description": "Field signifying the source of transaction (eg. Bill, Invoice, Deposit, Journal Entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_transaction_type": {"name": "account_transaction_type", "description": "Identifier of whether the account is increased by either a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjusted_amount": {"name": "adjusted_amount", "description": "The amount that impacts the account. If the transaction_type = account_transaction_type then the impact will increase, otherwise it will decrease the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "running_balance": {"name": "running_balance", "description": "The running balance of the account by each individual day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.587584, "compiled_code": "with unioned_models as (\n\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"\n\n \n )\n\n \n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n),\n\n\nadjusted_gl as (\n \n select\n \n \nmd5(cast(coalesce(cast(gl_union.transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast( gl_union.transaction_type as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.transaction_source as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\""}, "model.quickbooks.quickbooks__profit_and_loss": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__profit_and_loss"], "unique_id": "model.quickbooks.quickbooks__profit_and_loss", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__profit_and_loss.sql", "original_file_path": "models/quickbooks__profit_and_loss.sql", "name": "quickbooks__profit_and_loss", "alias": "quickbooks__profit_and_loss", "checksum": {"name": "sha256", "checksum": "20c36e05d01bfc1acee632ee45fe2861296d19a4dbf6826b0a3dcee5a7933bdd"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information.", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total period net change for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__profit_and_loss.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.594048, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\""}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true"], "nodes": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__expenses_sales_enhanced"], "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced", "raw_code": "with expenses as (\n\n select *\n from {{ ref('int_quickbooks__expenses_union') }}\n),\n\n{% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\nsales as (\n\n select *\n from {{ ref('int_quickbooks__sales_union') }}\n),\n{% endif %}\n\nfinal as (\n \n select *\n from expenses\n\n {% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from sales\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__expenses_sales_enhanced.sql", "original_file_path": "models/quickbooks__expenses_sales_enhanced.sql", "name": "quickbooks__expenses_sales_enhanced", "alias": "quickbooks__expenses_sales_enhanced", "checksum": {"name": "sha256", "checksum": "14dc301b814cc78cbd136971e534e3611271de7a4b36bf8f1d5f8af5ed1947c1"}, "tags": [], "refs": [["int_quickbooks__expenses_union"], ["int_quickbooks__sales_union"]], "sources": [], "metrics": [], "description": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records.", "columns": {"transaction_source": {"name": "transaction_source", "description": "Set to 'expense' if the transaction type is an expense and 'sale' if the transaction type is a sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Specifies the expense or sale transaction type (ie. invoice, sales_receipt, deposit, journal entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Unique identifier of the item included in a sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Quantity of items included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_unit_price": {"name": "item_unit_price", "description": "Unit price of the item included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_name": {"name": "customer_name", "description": "Name of the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_website": {"name": "customer_website", "description": "The website url of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_name": {"name": "vendor_name", "description": "Name of the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status indicating whether the expense or sale is billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description given to either the expense or sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__expenses_sales_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.582964, "compiled_code": "with expenses as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\"\n),\n\n\nsales as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_union\"\n),\n\n\nfinal as (\n \n select *\n from expenses\n\n \n union all\n\n select *\n from sales\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\""}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.datediff"], "nodes": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__ap_ar_enhanced"], "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_join as (\n\n select *\n from {{ref('int_quickbooks__bill_join')}}\n),\n\n{% if var('using_invoice', True) %}\ninvoice_join as (\n\n select *\n from {{ref('int_quickbooks__invoice_join')}}\n),\n{% endif %}\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\n{% if var('using_address', True) %}\naddresses as (\n\n select *\n from {{ref('stg_quickbooks__address')}}\n),\n{% endif %}\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as {{ dbt.type_string() }}) as estimate_id, \n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n \n vendors.web_url as customer_vendor_website,\n cast(null as {{ dbt.type_string() }}) as delivery_type,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n bill_join.total_amount,\n cast(null as {{ dbt.type_numeric() }}) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n {% if var('using_department', True) %}\n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n {% endif %}\n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n {% if var('using_address', True) %}\n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n {% endif %}\n \n {% if var('using_invoice', True) %}\n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n {% if var('using_department', True) %}\n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n {% endif %}\n\n {% if var('using_address', True) %}\n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n {% endif %}\n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n {% endif %}\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__ap_ar_enhanced.sql", "original_file_path": "models/quickbooks__ap_ar_enhanced.sql", "name": "quickbooks__ap_ar_enhanced", "alias": "quickbooks__ap_ar_enhanced", "checksum": {"name": "sha256", "checksum": "a46a57fcf6a2966d9bba092f18cc5f3c39404ad382dab921ba31caef80b49417"}, "tags": [], "refs": [["int_quickbooks__bill_join"], ["int_quickbooks__invoice_join"], ["stg_quickbooks__department"], ["stg_quickbooks__address"], ["stg_quickbooks__customer"], ["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time.", "columns": {"transaction_type": {"name": "transaction_type", "description": "Set to 'bill' of the transaction is a bill and 'invoice' if the transaction is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_with": {"name": "transaction_with", "description": "Set to 'vendor' if the transaction type is a bill and 'customer' if the transaction type is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_name": {"name": "customer_vendor_name", "description": "Full name of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_balance": {"name": "customer_vendor_balance", "description": "Total current account balance of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_city": {"name": "customer_vendor_address_city", "description": "City of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_country": {"name": "customer_vendor_address_country", "description": "Country of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_line": {"name": "customer_vendor_address_line", "description": "Address line of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_website": {"name": "customer_vendor_website", "description": "The website url of the customer or vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice was delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_status": {"name": "estimate_status", "description": "The status of the invoice estimate (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The total monetary amount of the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_amount": {"name": "estimate_amount", "description": "The total amount estimated of the bill or invoice (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_balance": {"name": "current_balance", "description": "The bill or invoice defined remaining balance of the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_current_payment": {"name": "total_current_payment", "description": "Sum of all total payments made towards the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the due date for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_overdue": {"name": "is_overdue", "description": "Boolean indicating whether the bill or invoice full payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "days_overdue": {"name": "days_overdue", "description": "The recent payment minus the due date to show the total days the total payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "initial_payment_date": {"name": "initial_payment_date", "description": "The first date a payment was provided for the bill or invoice", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recent_payment_date": {"name": "recent_payment_date", "description": "The last date a payment was provided for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__ap_ar_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.573803, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith bill_join as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_join\"\n),\n\n\ninvoice_join as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\"\n),\n\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\n\naddresses as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n),\n\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as TEXT) as estimate_id, \n\n \n departments.fully_qualified_name as department_name,\n \n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n \n vendors.web_url as customer_vendor_website,\n cast(null as TEXT) as delivery_type,\n cast(null as TEXT) as estimate_status,\n bill_join.total_amount,\n cast(null as numeric(28,6)) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n \n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n \n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n \n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n \n \n \n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n \n departments.fully_qualified_name as department_name,\n \n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n \n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n \n\n \n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n \n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\""}, "model.quickbooks.quickbooks__cash_flow_statement": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__cash_flow_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__cash_flow_statement"], "unique_id": "model.quickbooks.quickbooks__cash_flow_statement", "raw_code": "with cash_flow_classifications as (\n \n select *\n from {{ ref('int_quickbooks__cash_flow_classifications') }}\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__cash_flow_statement.sql", "original_file_path": "models/quickbooks__cash_flow_statement.sql", "name": "quickbooks__cash_flow_statement", "alias": "quickbooks__cash_flow_statement", "checksum": {"name": "sha256", "checksum": "08755f384d8c772516c9ee251fe73ceda61e54f61a0db87d7514347247d54ef7"}, "tags": [], "refs": [["int_quickbooks__cash_flow_classifications"]], "sources": [], "metrics": [], "description": "Table that provides all line items necessary to construct a cash flow statement.", "columns": {"account_unique_id": {"name": "account_unique_id", "description": "Unique identifier of the cash flow statement account line, dependent on account_id, class_id, source_relation and calendar_date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_period": {"name": "cash_flow_period", "description": "Timestamp of the first date for the cash flow period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_type": {"name": "cash_flow_type", "description": "The type of cash flow (Defaults are Cash or Cash Equivalents, Investing, Operating, Financing). The customer can also configure the cash flow type; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_ordinal": {"name": "cash_flow_ordinal", "description": "Integer value to order the account within final cash flow statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_ending_period": {"name": "cash_ending_period", "description": "The total ending period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_beginning_period": {"name": "cash_beginning_period", "description": "The total beginning period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_net_period": {"name": "cash_net_period", "description": "The net cash change from the beginning to the end of the period for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__cash_flow_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.5778902, "compiled_code": "with cash_flow_classifications as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\"\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\""}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__transfer_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry", "raw_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith transfers as (\n\n select *\n from {{ ref('stg_quickbooks__transfer') }}\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "name": "int_quickbooks__transfer_double_entry", "alias": "int_quickbooks__transfer_double_entry", "checksum": {"name": "sha256", "checksum": "08b6fc8e3b028b3ff6f5f7b2ca25776e1531ef90e62bc71c95a7c3bad16710ed"}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the receiving account and a credit record to the sending account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.5642061, "compiled_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith transfers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\""}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_memo_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry", "raw_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "name": "int_quickbooks__credit_memo_double_entry", "alias": "int_quickbooks__credit_memo_double_entry", "checksum": {"name": "sha256", "checksum": "e0d97e4dccb230ea8aa258b5cb258e43881fe5de6ded72058163645cc705d3ea"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.561735, "compiled_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\""}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__refund_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "name": "int_quickbooks__refund_receipt_double_entry", "alias": "int_quickbooks__refund_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "8324e59e150115fdea6272a77fc9868ff3343f9d6768236f654d670ee7b02e5e"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified asset account and a credit record the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.56369, "compiled_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__journal_entry_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry", "raw_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "name": "int_quickbooks__journal_entry_double_entry", "alias": "int_quickbooks__journal_entry_double_entry", "checksum": {"name": "sha256", "checksum": "5a1a31080d550c5cea879594f8ac10b70b52dd0d3403ec150a50c3375bd8560e"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that provides the debit and credit records of a journal entry transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.562819, "compiled_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\""}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "name": "int_quickbooks__bill_payment_double_entry", "alias": "int_quickbooks__bill_payment_double_entry", "checksum": {"name": "sha256", "checksum": "7681540e1b8b756efaf589a11195020a1300b6ed9f70d52546a5871054c29b95"}, "tags": [], "refs": [["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts payable and a credit record to the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.5614238, "compiled_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith bill_payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\""}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__deposit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n\n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "name": "int_quickbooks__deposit_double_entry", "alias": "int_quickbooks__deposit_double_entry", "checksum": {"name": "sha256", "checksum": "9f702e78f5e48d8771a24b5e372b77bfb41fa9e78fed48c4123fdc3770b40296"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to either undeposited funds or a specific other account indicated in the deposit line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.562289, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\""}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__purchase_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry", "raw_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\npurchase_lines as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "name": "int_quickbooks__purchase_double_entry", "alias": "int_quickbooks__purchase_double_entry", "checksum": {"name": "sha256", "checksum": "6928b3fc773e3881f03746c0e7c86e9edb1169d5bf456c219694efc2eaefcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__purchase_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to a specified expense account and a credit record to the payment account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate"}, "created_at": 1676401664.563429, "compiled_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\npurchase_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\""}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__sales_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "name": "int_quickbooks__sales_receipt_double_entry", "alias": "int_quickbooks__sales_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "b2e5219c2adae8a87d3d6e813730f3344cbae070efdec77f2fc16e63abdcc857"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to the specified asset account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.563947, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__vendor_credit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "raw_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "name": "int_quickbooks__vendor_credit_double_entry", "alias": "int_quickbooks__vendor_credit_double_entry", "checksum": {"name": "sha256", "checksum": "d5b5913d12d2880d19f2b17f6a3fd395a84ea8b7d2a5e965a25cf04ba9534236"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to payable account and a credit record to the expense account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.564461, "compiled_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\""}, "model.quickbooks.int_quickbooks__bill_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "name": "int_quickbooks__bill_double_entry", "alias": "int_quickbooks__bill_double_entry", "checksum": {"name": "sha256", "checksum": "95a197d82bcd77753581efdd590be8ad9652f318837a2380dd9e7b50d9b812a9"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.56108, "compiled_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\""}, "model.quickbooks.int_quickbooks__payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry", "raw_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith payments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "name": "int_quickbooks__payment_double_entry", "alias": "int_quickbooks__payment_double_entry", "checksum": {"name": "sha256", "checksum": "c8e70c76ebc6641a9817adca7d113a3997d9c3376df1b29ca25201c32cdb33ec"}, "tags": [], "refs": [["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.563162, "compiled_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__invoice_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\n\n{% if var('using_invoice_bundle', True) %}\n\ninvoice_bundles as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line_bundle') }}\n),\n\nbundles as (\n\n select *\n from {{ ref('stg_quickbooks__bundle') }}\n),\n\nbundle_items as (\n\n select *\n from {{ ref('stg_quickbooks__bundle_item') }}\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n{% endif %}\n\nar_accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n {% if var('using_invoice_bundle', True) %}\n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n {% else %}\n coalesce(invoice_lines.account_id, items.income_account_id) as account_id,\n {% endif %}\n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n {% if var('using_invoice_bundle', True) %}\n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n {% else %}\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id) is not null \n\n {% endif %}\n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "name": "int_quickbooks__invoice_double_entry", "alias": "int_quickbooks__invoice_double_entry", "checksum": {"name": "sha256", "checksum": "ff00ba3d0bd575bb253363bfd2fbcd791cedc27c83d757af54d0e5adbccda142"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"], ["stg_quickbooks__account"], ["stg_quickbooks__invoice_line_bundle"], ["stg_quickbooks__bundle"], ["stg_quickbooks__bundle_item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.5625548, "compiled_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\n\n\n\ninvoice_bundles as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n),\n\nbundles as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n),\n\nbundle_items as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n\n\nar_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n \n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n \n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n \n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n \n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__invoice_transactions"], "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__invoice_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__invoice_transactions.sql", "name": "int_quickbooks__invoice_transactions", "alias": "int_quickbooks__invoice_transactions", "checksum": {"name": "sha256", "checksum": "e02921a0f4ebbd0d0bfeee8cc7ed8136497c3d7e2cb5826922c2fc2f164e01b9"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__invoice_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401663.397239, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\""}, "model.quickbooks.int_quickbooks__bill_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__bill_transactions"], "unique_id": "model.quickbooks.int_quickbooks__bill_transactions", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }} \n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__bill_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__bill_transactions.sql", "name": "int_quickbooks__bill_transactions", "alias": "int_quickbooks__bill_transactions", "checksum": {"name": "sha256", "checksum": "42a5c76a8c69ea3b6f162addd1c69d225b8ff912543b8d5502712ae76b506ae2"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the bill and corresponding bill lines into a single bill transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__bill_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.564717, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\" \n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\""}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__journal_entry_transactions"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as {{ dbt.type_string() }}) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__journal_entry_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "name": "int_quickbooks__journal_entry_transactions", "alias": "int_quickbooks__journal_entry_transactions", "checksum": {"name": "sha256", "checksum": "5df763182668b5667cc91f518169b228c9726c03a97626e4bb7ae5a710602bf7"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that joins the journal entry and corresponding journal entry lines into a single journal entry transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.565483, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as TEXT) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\""}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__refund_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "name": "int_quickbooks__refund_receipt_transactions", "alias": "int_quickbooks__refund_receipt_transactions", "checksum": {"name": "sha256", "checksum": "097df40c7a3b5554bec4b1f96af80c7065d5ed99f9a3877f5b8c639263c3a35d"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the refund receipt and corresponding refund receipt lines into a single refund receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.5659919, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\""}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__vendor_credit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n \n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "name": "int_quickbooks__vendor_credit_transactions", "alias": "int_quickbooks__vendor_credit_transactions", "checksum": {"name": "sha256", "checksum": "15380e78bc581c3192a7370b6c62f9805accc3b5bda2f200f68aa066db4785b0"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the vendor credit and corresponding vendor credit lines into a single vendor credit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.5665998, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\""}, "model.quickbooks.int_quickbooks__purchase_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__purchase_transactions"], "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions", "raw_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_purchase', True)) }}\n\nwith purchases as (\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\npurchase_lines as (\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__purchase_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__purchase_transactions.sql", "name": "int_quickbooks__purchase_transactions", "alias": "int_quickbooks__purchase_transactions", "checksum": {"name": "sha256", "checksum": "bead953d0576140a7d67c3764c62993abf6809d601ccd20000aa5ea7a73c7172"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__item"], ["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "Table that joins the purchase and corresponding purchase lines into a single purchase transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__purchase_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.565738, "compiled_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n\n\nwith purchases as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\npurchase_lines as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\""}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__sales_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions", "raw_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "name": "int_quickbooks__sales_receipt_transactions", "alias": "int_quickbooks__sales_receipt_transactions", "checksum": {"name": "sha256", "checksum": "2e01630bf25cd736b93b07ec7b98887fbe62d8f9f34fd4fed820862a44d1c68d"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the sales receipt and corresponding sales receipt lines into a single sales receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.566338, "compiled_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\""}, "model.quickbooks.int_quickbooks__deposit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__deposit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n \n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as {{ dbt.type_string() }}) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__deposit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__deposit_transactions.sql", "name": "int_quickbooks__deposit_transactions", "alias": "int_quickbooks__deposit_transactions", "checksum": {"name": "sha256", "checksum": "750c679ea708e917039ddcc2502e672fb77f769a9370028c77f7beef15868fc6"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "Table that joins the deposit and corresponding deposit lines into a single deposit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__deposit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.565228, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as TEXT) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\""}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__credit_memo_transactions"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__credit_memo_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "name": "int_quickbooks__credit_memo_transactions", "alias": "int_quickbooks__credit_memo_transactions", "checksum": {"name": "sha256", "checksum": "e671668964b67084e2953c82076642f09a1cf6055a3366b15fc9eec8a77222ae"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the credit memo and credit memo lines into a single credit memo transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.564974, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\""}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__cash_flow_classifications"], "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications", "raw_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n {{ dbt_utils.generate_surrogate_key(['account_id', 'source_relation', 'calendar_date', 'class_id']) }} as account_unique_id\n from {{ ref('quickbooks__balance_sheet') }}\n),\n \n{% if var('cash_flow_statement_type_ordinal') %}\nordinals as (\n \n select\n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n cast(cash_flow_type as {{ dbt.type_string() }}) as cash_flow_type,\n ordinal\n from {{ var('cash_flow_statement_type_ordinal') }}\n),\n{% endif %}\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n {% if var('cash_flow_statement_type_ordinal') %}\n coalesce(account_number_ordinal.cash_flow_type, account_sub_type_ordinal.cash_flow_type, account_type_ordinal.cash_flow_type, account_class_ordinal.cash_flow_type) as cash_flow_type,\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as cash_flow_ordinal \n {% else %}\n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n {% endif %}\n\n from cash_flow_key\n \n {% if var('cash_flow_statement_type_ordinal') %}\n\n {% set cash_flow_type_fields = ['account_number', 'account_sub_type', 'account_type', 'account_class'] %}\n \n {% for cash_flow_type_field in cash_flow_type_fields %} \n left join ordinals as {{ cash_flow_type_field }}_ordinal\n on cash_flow_key.{{ cash_flow_type_field }} = {{ cash_flow_type_field }}_ordinal.{{ cash_flow_type_field }}\n {% endfor %}\n \n {% endif %}\n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__cash_flow_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__cash_flow_classifications.sql", "name": "int_quickbooks__cash_flow_classifications", "alias": "int_quickbooks__cash_flow_classifications", "checksum": {"name": "sha256", "checksum": "c76ef90529e969f875f192f8a236430430ab2c9d2dbf52885875ee854a1a3886"}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "Table that provides additional classifications necessary for the cash flow statement, like the cash flow type and ordinals.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__cash_flow_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.568882, "compiled_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n \n \nmd5(cast(coalesce(cast(account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(calendar_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(class_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as account_unique_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n),\n \n\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n \n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n \n\n from cash_flow_key\n \n \n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\""}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.int_quickbooks__general_ledger_date_spine"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_balances"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances", "raw_code": "with general_ledger as (\n\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ngl_accounting_periods as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_date_spine') }}\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast({{ dbt.date_trunc(\"year\", \"transaction_date\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"transaction_date\") }} as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n {{ dbt_utils.group_by(14) }}\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_balances.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_balances.sql", "name": "int_quickbooks__general_ledger_balances", "alias": "int_quickbooks__general_ledger_balances", "checksum": {"name": "sha256", "checksum": "23b725ae7388455419b95572539a4ceb3b7fdaf0d7ee77154d11acedae1f118c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["int_quickbooks__general_ledger_date_spine"]], "sources": [], "metrics": [], "description": "Table that aggregates quickbooks__general_ledger account level transactions per period into a period_beginning_balance, period_ending_balance, and period_net_change for each period through the use of the int_quickbooks__general_ledger_date_spine model. Further, period balances are only applied to balance sheet accounts while income statement accounts do not have a persisting balance rather a period net change. Please note, a period equates to one month. \n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_balances.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.567623, "compiled_code": "with general_ledger as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ngl_accounting_periods as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\"\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast(date_trunc('year', transaction_date) as date) as date_year,\n cast(date_trunc('month', transaction_date) as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\""}, "model.quickbooks.int_quickbooks__account_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__account_classifications"], "unique_id": "model.quickbooks.int_quickbooks__account_classifications", "raw_code": "with accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__account_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__account_classifications.sql", "name": "int_quickbooks__account_classifications", "alias": "int_quickbooks__account_classifications", "checksum": {"name": "sha256", "checksum": "757b4fa3587f332bcccc9e1b7a494c99166bbd77f93a3be09bd1d027e73315f4"}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that adds missing detail to the account table. This table adds the following:\nA financial statement helper field that specifies the account as either a balance sheet or income statement account.\nAdds a transaction type to the specified account. The transaction type (debit or credit) is the type of transaction that increases the account.\nAdds a multiplier of -1 to Liability and Equity accounts to offset the account balance so liability and equity accounts do not show up as negative balances.\nCreates a new classification field that fills in the gaps if classifications were incorrectly set on certain s. For more information on how these classifications were determined you can refer to the [QuickBooks API Docs](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account) that was used as reference.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__account_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.5668612, "compiled_code": "with accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\""}, "model.quickbooks.int_quickbooks__expenses_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric"], "nodes": ["model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__expenses_union"], "unique_id": "model.quickbooks.int_quickbooks__expenses_union", "raw_code": "with expense_union as (\n\n select *\n from {{ ref('int_quickbooks__purchase_transactions') }}\n\n {% if var('using_bill', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__bill_transactions') }}\n {% endif %} \n\n {% if var('using_journal_entry', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__journal_entry_transactions')}}\n {% endif %} \n\n {% if var('using_deposit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__deposit_transactions')}}\n {% endif %} \n\n {% if var('using_vendor_credit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__vendor_credit_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nexpense_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as {{ dbt.type_string() }}) as item_id,\n cast(null as {{ dbt.type_numeric() }}) as item_quantity,\n cast(null as {{ dbt.type_numeric() }}) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__expenses_union.sql", "original_file_path": "models/intermediate/int_quickbooks__expenses_union.sql", "name": "int_quickbooks__expenses_union", "alias": "int_quickbooks__expenses_union", "checksum": {"name": "sha256", "checksum": "1281caef70631920ac2b25aef0d702c469f4641eb0b173e49c244aa064bf1d34"}, "tags": [], "refs": [["int_quickbooks__purchase_transactions"], ["int_quickbooks__bill_transactions"], ["int_quickbooks__journal_entry_transactions"], ["int_quickbooks__deposit_transactions"], ["int_quickbooks__vendor_credit_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of an expense. The expense transactional tables included are: int_quickbooks__purchase_transactions, int_quickbooks__bill_transactions, int_quickbooks_journal_entry_transactions, int_quickbooks__deposit_transactions, int_quickbooks__vendor_credit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-expense transactions an inner join on accounts with the sub_type equal to Expense is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__expenses_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.56737, "compiled_code": "with expense_union as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\"\n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nexpense_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as TEXT) as item_id,\n cast(null as numeric(28,6)) as item_quantity,\n cast(null as numeric(28,6)) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n \n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\""}, "model.quickbooks.int_quickbooks__invoice_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__invoice_join"], "unique_id": "model.quickbooks.int_quickbooks__invoice_join", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice')) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_linked as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_linked_txn') }}\n),\n\n{% if var('using_estimate', True) %}\nestimates as (\n\n select *\n from {{ ref('stg_quickbooks__estimate') }}\n),\n{% endif %}\n\npayments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines_payment as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as {{ dbt.type_string() }}) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n {% if var('using_estimate', True) %}\n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n {% else %}\n cast(null as {{ dbt.type_numeric() }}) as estimate_total_amount,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n\n {% endif %}\n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n {% if var('using_estimate', True) %}\n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n {% endif %}\n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n {{ dbt_utils.group_by(15) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__invoice_join.sql", "original_file_path": "models/intermediate/int_quickbooks__invoice_join.sql", "name": "int_quickbooks__invoice_join", "alias": "int_quickbooks__invoice_join", "checksum": {"name": "sha256", "checksum": "541d06a75aca5faa32943aaf2e74935402d051e7fdfd0887badea48b38ae62c1"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_linked_txn"], ["stg_quickbooks__estimate"], ["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single invoice transactions with the corresponding payment (if paid) and corresponding estimate (if provided).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__invoice_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.568127, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_linked as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\n),\n\n\nestimates as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n),\n\n\npayments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines_payment as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as TEXT) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n \n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n \n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n \n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n \n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\""}, "model.quickbooks.int_quickbooks__retained_earnings": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.group_by", "macro.dbt.type_string", "macro.dbt.date_trunc", "macro.dbt.last_day"], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__retained_earnings"], "unique_id": "model.quickbooks.int_quickbooks__retained_earnings", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as {{ dbt.type_string() }}) as account_id,\n source_relation,\n cast('9999-00' as {{ dbt.type_string() }}) as account_number,\n cast('Net Income Adjustment' as {{ dbt.type_string() }}) as account_name,\n false as is_sub_account,\n cast(null as {{ dbt.type_string() }}) as parent_account_number,\n cast(null as {{ dbt.type_string() }}) as parent_account_name,\n cast('Equity' as {{ dbt.type_string() }}) as account_type,\n cast('RetainedEarnings' as {{ dbt.type_string() }}) as account_sub_type,\n cast('Equity' as {{ dbt.type_string() }}) as account_class,\n cast(null as {{ dbt.type_string() }}) as class_id,\n cast('balance_sheet' as {{ dbt.type_string() }}) as financial_statement_helper,\n cast({{ dbt.date_trunc(\"year\", \"period_first_day\") }} as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n {{ dbt.last_day(\"period_first_day\", \"month\") }} as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__retained_earnings.sql", "original_file_path": "models/intermediate/int_quickbooks__retained_earnings.sql", "name": "int_quickbooks__retained_earnings", "alias": "int_quickbooks__retained_earnings", "checksum": {"name": "sha256", "checksum": "bc108322a5b746dbee6f3ac5d80bee9f601f55568e9f5547780bf107d3d549a9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"]], "sources": [], "metrics": [], "description": "Table that creates an adjusting entry for retained earnings each month. The retained earnings account is created as account_id 9999 and is listed as an Equity class. This table generates the retained earnings period beginning balance, ending balance, and net change by adding the period revenues and subtracting by the period expenses. This total is set as the period ending balance. From the period ending balance the net change and beginning balances are calculated. This is table is then unioned with in_quickbooks__general_ledger_balances.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__retained_earnings.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.568631, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n group by 1,2 \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n group by 1,2 \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as TEXT) as account_id,\n source_relation,\n cast('9999-00' as TEXT) as account_number,\n cast('Net Income Adjustment' as TEXT) as account_name,\n false as is_sub_account,\n cast(null as TEXT) as parent_account_number,\n cast(null as TEXT) as parent_account_name,\n cast('Equity' as TEXT) as account_type,\n cast('RetainedEarnings' as TEXT) as account_sub_type,\n cast('Equity' as TEXT) as account_class,\n cast(null as TEXT) as class_id,\n cast('balance_sheet' as TEXT) as financial_statement_helper,\n cast(date_trunc('year', period_first_day) as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', period_first_day) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\""}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt.date_trunc", "macro.dbt.last_day", "macro.dbt.run_query"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_date_spine"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine", "raw_code": "-- depends_on: {{ ref('quickbooks__general_ledger') }}\n\nwith spine as (\n\n {% if execute %}\n {% set first_date_query %}\n select min( transaction_date ) as min_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n {% set first_date = run_query(first_date_query).columns[0][0]|string %}\n \n {% if target.type == 'postgres' %}\n {% set first_date_adjust = \"cast('\" ~ first_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set first_date_adjust = \"'\" ~ first_date[0:10] ~ \"'\" %}\n\n {% endif %}\n\n {% else %} {% set first_date_adjust = \"'2000-01-01'\" %}\n {% endif %}\n\n {% if execute %}\n {% set last_date_query %}\n select max( transaction_date ) as max_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n\n {% set current_date_query %}\n select current_date\n {% endset %}\n\n {% if run_query(current_date_query).columns[0][0]|string < run_query(last_date_query).columns[0][0]|string %}\n\n {% set last_date = run_query(last_date_query).columns[0][0]|string %}\n\n {% else %} {% set last_date = run_query(current_date_query).columns[0][0]|string %}\n {% endif %}\n \n {% if target.type == 'postgres' %}\n {% set last_date_adjust = \"cast('\" ~ last_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set last_date_adjust = \"'\" ~ last_date[0:10] ~ \"'\" %}\n\n {% endif %}\n {% endif %}\n\n {{ dbt_utils.date_spine(\n datepart=\"month\",\n start_date=first_date_adjust,\n end_date=dbt.dateadd(\"month\", 1, last_date_adjust)\n )\n }}\n),\n\ngeneral_ledger as (\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ndate_spine as (\n select\n cast({{ dbt.date_trunc(\"year\", \"date_month\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date) as period_first_day,\n {{ dbt.last_day(\"date_month\", \"month\") }} as period_last_day,\n row_number() over (order by cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_date_spine.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "name": "int_quickbooks__general_ledger_date_spine", "alias": "int_quickbooks__general_ledger_date_spine", "checksum": {"name": "sha256", "checksum": "aaf951b7837338c61415eb69d5d4518f45fbf6f5a78c0781833a64a1f08a596c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "Table that creates a date spine by month with the first date being the minimum transaction date from the quickbooks__general_ledger model and the last date being one month after the last transaction date from the quickbooks__general_ledger model.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.567876, "compiled_code": "-- depends_on: \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n\nwith spine as (\n\n \n \n \n \n \n \n\n \n\n \n\n \n \n\n \n\n \n \n \n \n \n\n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 50.0\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-02' as date) + ((interval '1 month') * (row_number() over (order by 1) - 1))\n\n\n ) as date_month\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_month <= \n\n cast('2023-02-14' as date) + ((interval '1 month') * (1))\n\n\n\n)\n\nselect * from filtered\n\n\n),\n\ngeneral_ledger as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ndate_spine as (\n select\n cast(date_trunc('year', date_month) as date) as date_year,\n cast(date_trunc('month', date_month) as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', date_month) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n row_number() over (order by cast(date_trunc('month', date_month) as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\""}, "model.quickbooks.int_quickbooks__bill_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__bill_join"], "unique_id": "model.quickbooks.int_quickbooks__bill_join", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nbills_linked as (\n\n select *\n from {{ ref('stg_quickbooks__bill_linked_txn') }}\n),\n\nbill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as {{ dbt.type_string() }}) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n {{ dbt_utils.group_by(10) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__bill_join.sql", "original_file_path": "models/intermediate/int_quickbooks__bill_join.sql", "name": "int_quickbooks__bill_join", "alias": "int_quickbooks__bill_join", "checksum": {"name": "sha256", "checksum": "26e2ff679cccf1e52083b6e91f4587982d85a6d1f2747ba4733e135992d53f26"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__bill_linked_txn"], ["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single bill transaction with the corresponding bill payment (if paid).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__bill_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.567113, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nbills_linked as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\n),\n\nbill_payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as TEXT) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n group by 1,2,3,4,5,6,7,8,9,10 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_join\""}, "model.quickbooks.int_quickbooks__sales_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true", "macro.fivetran_utils.enabled_vars"], "nodes": ["model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__sales_union"], "unique_id": "model.quickbooks.int_quickbooks__sales_union", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice'])) }}\n\nwith sales_union as (\n\n {% if var('using_sales_receipt', True) %}\n select *\n from {{ ref('int_quickbooks__sales_receipt_transactions') }}\n {% endif %}\n\n {% if fivetran_utils.enabled_vars(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n\n {% else %}\n\n {% if var('using_invoice', True) %}\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n {% endif %} \n \n {% endif %}\n\n {% if var('using_refund_receipt', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__refund_receipt_transactions') }}\n {% endif %}\n\n {% if var('using_credit_memo', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__credit_memo_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nincome_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__sales_union.sql", "original_file_path": "models/intermediate/int_quickbooks__sales_union.sql", "name": "int_quickbooks__sales_union", "alias": "int_quickbooks__sales_union", "checksum": {"name": "sha256", "checksum": "e8efad88f641adc4d0e72e7bbb6334dc2af414b98b31c8b570dce3ca8bc4a917"}, "tags": [], "refs": [["int_quickbooks__sales_receipt_transactions"], ["int_quickbooks__invoice_transactions"], ["int_quickbooks__refund_receipt_transactions"], ["int_quickbooks__credit_memo_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of a sale. The sale transactional tables are: int_quickbooks__sales_receipt_transactions int_quickbooks__invoice_transactions, int_quickbooks__credit_memo_transactions, int_quickbooks__refund_receipt_transactions, int_quickbooks__journal_entry_transactions, int_quickbooks__deposit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-income transactions an inner join on accounts with the sub_type equal to Income is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__sales_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.5683799, "compiled_code": "\n\nwith sales_union as (\n\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\"\n\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nincome_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n \n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_union\""}, "analysis.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__balance_sheet"], "unique_id": "analysis.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__balance_sheet.sql", "original_file_path": "analysis/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2d430f9f0571cf16e08e31820360dbb610c24d5fdc1ab38bd2943b4b7161bbda"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401663.545272, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "analysis.quickbooks.quickbooks__income_statement": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__income_statement"], "unique_id": "analysis.quickbooks.quickbooks__income_statement", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__income_statement.sql", "original_file_path": "analysis/quickbooks__income_statement.sql", "name": "quickbooks__income_statement", "alias": "quickbooks__income_statement", "checksum": {"name": "sha256", "checksum": "6a2926427516128d537ff107ec14a2338f89f3f2dec1d861ec7daab31fd2c87e"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__income_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401663.548782, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__journal_entry_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_line_tmp')),\n staging_columns=get_journal_entry_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry_line.sql", "original_file_path": "models/stg_quickbooks__journal_entry_line.sql", "name": "stg_quickbooks__journal_entry_line", "alias": "stg_quickbooks__journal_entry_line", "checksum": {"name": "sha256", "checksum": "4a44ae6affd5281ee7cc64e05384fdb7ad18b15c18185cc970f9bd639bdf7a34"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Account id of the account which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.69917, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n billable_status\n \n as \n \n billable_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n posting_type\n \n as \n \n posting_type\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_applicable_on\n \n as \n \n tax_applicable_on\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as TEXT) as journal_entry_id,\n index,\n cast(account_id as TEXT) as account_id,\n amount,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as TEXT) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__transfer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__transfer_tmp')),\n staging_columns=get_transfer_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__transfer.sql", "original_file_path": "models/stg_quickbooks__transfer.sql", "name": "stg_quickbooks__transfer", "alias": "stg_quickbooks__transfer", "checksum": {"name": "sha256", "checksum": "2e5aeff4520b116401c48251bf9a3f2db443857c8c8f7c07aaf5b41286878746"}, "tags": [], "refs": [["stg_quickbooks__transfer_tmp"], ["stg_quickbooks__transfer_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"transfer_id": {"name": "transfer_id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "Account id of the account which the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "Account id of the account which the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__transfer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.731466, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n from_account_id\n \n as \n \n from_account_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n to_account_id\n \n as \n \n to_account_id\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as transfer_id,\n amount,\n cast(from_account_id as TEXT) as from_account_id,\n cast(to_account_id as TEXT) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_line_tmp')),\n staging_columns=get_bill_payment_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment_line.sql", "original_file_path": "models/stg_quickbooks__bill_payment_line.sql", "name": "stg_quickbooks__bill_payment_line", "alias": "stg_quickbooks__bill_payment_line", "checksum": {"name": "sha256", "checksum": "e0de0b712f688b7f8628fa17430dc3d700042e37a53783d3e8fc7ee0272a71db"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6531389, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_credit_card_id\n \n as \n \n bill_payment_credit_card_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n linked_bill_payment_id\n \n as \n \n linked_bill_payment_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as TEXT) as bill_payment_id,\n index,\n amount,\n cast(bill_id as TEXT) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_line_tmp')),\n staging_columns=get_payment_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment_line.sql", "original_file_path": "models/stg_quickbooks__payment_line.sql", "name": "stg_quickbooks__payment_line", "alias": "stg_quickbooks__payment_line", "checksum": {"name": "sha256", "checksum": "62737fcbdd45af89bc14370b70f36cfbd94391602da7a6afb4dd97e4a1120429"}, "tags": [], "refs": [["stg_quickbooks__payment_line_tmp"], ["stg_quickbooks__payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.7032828, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as TEXT) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as TEXT) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_tmp')),\n staging_columns=get_vendor_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor.sql", "original_file_path": "models/stg_quickbooks__vendor.sql", "name": "stg_quickbooks__vendor", "alias": "stg_quickbooks__vendor", "checksum": {"name": "sha256", "checksum": "6b6d5e653208581f032f6850766879795733912c64f11163419584210d386970"}, "tags": [], "refs": [["stg_quickbooks__vendor_tmp"], ["stg_quickbooks__vendor_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"vendor_id": {"name": "vendor_id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_vendor_1099": {"name": "is_vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.740448, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone\n \n as \n \n alternate_phone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n other_contacts\n \n as \n \n other_contacts\n \n, \n \n \n primary_phone\n \n as \n \n primary_phone\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_identifier\n \n as \n \n tax_identifier\n \n, \n \n \n term_id\n \n as \n \n term_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_1099\n \n as \n \n vendor_1099\n \n, \n \n \n web_url\n \n as \n \n web_url\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as TEXT) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_tmp')),\n staging_columns=get_invoice_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line.sql", "original_file_path": "models/stg_quickbooks__invoice_line.sql", "name": "stg_quickbooks__invoice_line", "alias": "stg_quickbooks__invoice_line", "checksum": {"name": "sha256", "checksum": "acc22a519a861cd717e417884b61bc191432e1c46a31ea8ebde689e6f4223177"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_tmp"], ["stg_quickbooks__invoice_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.687397, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as TEXT) as bundle_id,\n cast(account_id as TEXT) as account_id,\n cast(item_id as TEXT) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_tmp') }}\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_tmp')),\n staging_columns=get_estimate_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as estimate_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate.sql", "original_file_path": "models/stg_quickbooks__estimate.sql", "name": "stg_quickbooks__estimate", "alias": "stg_quickbooks__estimate", "checksum": {"name": "sha256", "checksum": "501fe174a3a77c1f92407b060600528ce9e3b198e143ab2985f5a0f0e9c95c70"}, "tags": [], "refs": [["stg_quickbooks__estimate_tmp"], ["stg_quickbooks__estimate_tmp"]], "sources": [], "metrics": [], "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the estimate was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.67989, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\"\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepted_by\n \n as \n \n accepted_by\n \n, \n \n \n accepted_date\n \n as \n \n accepted_date\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n expiration_date\n \n as \n \n expiration_date\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as estimate_id,\n cast(class_id as TEXT) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_line_tmp')),\n staging_columns=get_credit_memo_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo_line.sql", "original_file_path": "models/stg_quickbooks__credit_memo_line.sql", "name": "stg_quickbooks__credit_memo_line", "alias": "stg_quickbooks__credit_memo_line", "checksum": {"name": "sha256", "checksum": "b7cf6d56a640a9f0700a3620a94fc61a422c8db6dfdbcbbb5939e0fd80c5a3b7"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line_tmp"], ["stg_quickbooks__credit_memo_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.666482, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as TEXT) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_tmp')),\n staging_columns=get_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle.sql", "original_file_path": "models/stg_quickbooks__bundle.sql", "name": "stg_quickbooks__bundle", "alias": "stg_quickbooks__bundle", "checksum": {"name": "sha256", "checksum": "8e3f27ad4f72eb020a1c32b3654e9306ef2f878a0c52ac8356b695a0c03c2611"}, "tags": [], "refs": [["stg_quickbooks__bundle_tmp"], ["stg_quickbooks__bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the bundle was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6614568, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n print_grouped_items\n \n as \n \n print_grouped_items\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__department_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__department_tmp')),\n staging_columns=get_department_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__department.sql", "original_file_path": "models/stg_quickbooks__department.sql", "name": "stg_quickbooks__department", "alias": "stg_quickbooks__department", "checksum": {"name": "sha256", "checksum": "61c0a5d8287b3e73bbee2986e1d0914da2cdc67a88534bd2be26264eb6e29a67"}, "tags": [], "refs": [["stg_quickbooks__department_tmp"], ["stg_quickbooks__department_tmp"]], "sources": [], "metrics": [], "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"department_id": {"name": "department_id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the department was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_department": {"name": "is_sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if is_sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__department.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.673451, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_department_id\n \n as \n \n parent_department_id\n \n, \n \n \n sub_department\n \n as \n \n sub_department\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "raw_code": "with base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_line_tmp')),\n staging_columns=get_purchase_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_line.sql", "original_file_path": "models/stg_quickbooks__purchase_line.sql", "name": "stg_quickbooks__purchase_line", "alias": "stg_quickbooks__purchase_line", "checksum": {"name": "sha256", "checksum": "1ffe50688ea656d1019565cd7238adef008dc1e1e7e97ba2048bb6c4628f873d"}, "tags": [], "refs": [["stg_quickbooks__purchase_line_tmp"], ["stg_quickbooks__purchase_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based expense purchase line", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.708535, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as TEXT) as purchase_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__purchase_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_tmp')),\n staging_columns=get_purchase_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase.sql", "original_file_path": "models/stg_quickbooks__purchase.sql", "name": "stg_quickbooks__purchase", "alias": "stg_quickbooks__purchase", "checksum": {"name": "sha256", "checksum": "cde15943157fb1be413075f3aa62e1670fb0e6bb5118ca59ea5f75f816487d4a"}, "tags": [], "refs": [["stg_quickbooks__purchase_tmp"], ["stg_quickbooks__purchase_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of purchase expenses.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Specifies the account reference to which this purchase is applied based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.7116249, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remit_to_address_id\n \n as \n \n remit_to_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as purchase_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n cast(vendor_id as TEXT) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_line_tmp')),\n staging_columns=get_refund_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id, \n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt_line.sql", "original_file_path": "models/stg_quickbooks__refund_receipt_line.sql", "name": "stg_quickbooks__refund_receipt_line", "alias": "stg_quickbooks__refund_receipt_line", "checksum": {"name": "sha256", "checksum": "6e468b38cb9d0067dad366c52ec5e366a4455ed5158fc38d6502f1520529cfe9"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line_tmp"], ["stg_quickbooks__refund_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account which the refund is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.721289, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as TEXT) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id, \n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_item_tmp')),\n staging_columns=get_bundle_item_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle_item.sql", "original_file_path": "models/stg_quickbooks__bundle_item.sql", "name": "stg_quickbooks__bundle_item", "alias": "stg_quickbooks__bundle_item", "checksum": {"name": "sha256", "checksum": "c5e85a89debd33e5f789ef58fa05a1bf931b63a0451c0ab7d8f6b0b565895a4d"}, "tags": [], "refs": [["stg_quickbooks__bundle_item_tmp"], ["stg_quickbooks__bundle_item_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing all bundle and item combinations.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bunlde and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle_item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.659637, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n item_quantity\n \n as \n \n item_quantity\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as TEXT) as bundle_id,\n cast(item_id as TEXT) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_tmp')),\n staging_columns=get_credit_memo_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo.sql", "original_file_path": "models/stg_quickbooks__credit_memo.sql", "name": "stg_quickbooks__credit_memo", "alias": "stg_quickbooks__credit_memo", "checksum": {"name": "sha256", "checksum": "3757765d000c8762afea93869ab1ba6c3d5f22574c7b3d90cd91f4ecb894f85d"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_tmp"], ["stg_quickbooks__credit_memo_tmp"]], "sources": [], "metrics": [], "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier for a credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.669067, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remaining_credit\n \n as \n \n remaining_credit\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as credit_memo_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as TEXT) as class_id,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_line_tmp')),\n staging_columns=get_sales_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt_line.sql", "original_file_path": "models/stg_quickbooks__sales_receipt_line.sql", "name": "stg_quickbooks__sales_receipt_line", "alias": "stg_quickbooks__sales_receipt_line", "checksum": {"name": "sha256", "checksum": "050d2104a9f5c48e73b726f52bc9472987b3581193a9694bc6744324ba43b82b"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line_tmp"], ["stg_quickbooks__sales_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.726946, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as TEXT) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_tmp')),\n staging_columns=get_sales_receipt_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt.sql", "original_file_path": "models/stg_quickbooks__sales_receipt.sql", "name": "stg_quickbooks__sales_receipt", "alias": "stg_quickbooks__sales_receipt", "checksum": {"name": "sha256", "checksum": "42e250594a269ed1d23ffcce0276c23ce7304ebaf20e55336607dcda12c46dae"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_tmp"], ["stg_quickbooks__sales_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account to which payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the sale was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the sold to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.729876, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as sales_receipt_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_linked_txn_tmp')),\n staging_columns=get_invoice_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_linked_txn.sql", "original_file_path": "models/stg_quickbooks__invoice_linked_txn.sql", "name": "stg_quickbooks__invoice_linked_txn", "alias": "stg_quickbooks__invoice_linked_txn", "checksum": {"name": "sha256", "checksum": "f2b779facddf42a3e62603a1254b1503c2b8a8f52dd69a27ed8a14625c1c5953"}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn_tmp"], ["stg_quickbooks__invoice_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.683923, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n charge_credit_id\n \n as \n \n charge_credit_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n reimburse_charge_id\n \n as \n \n reimburse_charge_id\n \n, \n \n \n statement_charge_id\n \n as \n \n statement_charge_id\n \n, \n \n \n time_activity_id\n \n as \n \n time_activity_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n cast(payment_id as TEXT) as payment_id,\n cast(estimate_id as TEXT) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_tmp')),\n staging_columns=get_invoice_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice.sql", "original_file_path": "models/stg_quickbooks__invoice.sql", "name": "stg_quickbooks__invoice", "alias": "stg_quickbooks__invoice", "checksum": {"name": "sha256", "checksum": "6d5a6ee2afa37a3567700cccf5831e3f27446303711dfaab707579d6c3ae4082"}, "tags": [], "refs": [["stg_quickbooks__invoice_tmp"], ["stg_quickbooks__invoice_tmp"]], "sources": [], "metrics": [], "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer reference is associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class to which the invoice is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.693562, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allow_ipnpayment\n \n as \n \n allow_ipnpayment\n \n, \n \n \n allow_online_achpayment\n \n as \n \n allow_online_achpayment\n \n, \n \n \n allow_online_credit_card_payment\n \n as \n \n allow_online_credit_card_payment\n \n, \n \n \n allow_online_payment\n \n as \n \n allow_online_payment\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n billing_bcc_email\n \n as \n \n billing_bcc_email\n \n, \n \n \n billing_cc_email\n \n as \n \n billing_cc_email\n \n, \n \n \n billing_email\n \n as \n \n billing_email\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n custom_sales_rep\n \n as \n \n custom_sales_rep\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit\n \n as \n \n deposit\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as invoice_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n cast(billing_address_id as TEXT) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as TEXT) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_tmp')),\n staging_columns=get_bill_payment_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment.sql", "original_file_path": "models/stg_quickbooks__bill_payment.sql", "name": "stg_quickbooks__bill_payment", "alias": "stg_quickbooks__bill_payment", "checksum": {"name": "sha256", "checksum": "20561d9a7ab619d2b9872cdb42a90fc7ac99f8eb10715a5ab068f9856fbeb3b5"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_tmp"], ["stg_quickbooks__bill_payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to a Department object specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6558468, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n check_bank_account_id\n \n as \n \n check_bank_account_id\n \n, \n \n \n check_print_status\n \n as \n \n check_print_status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_account_id\n \n as \n \n credit_card_account_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n pay_type\n \n as \n \n pay_type\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_bill_payment\n \n as \n \n process_bill_payment\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bill_payment_id,\n cast(check_bank_account_id as TEXT) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as TEXT) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_bundle_tmp')),\n staging_columns=get_invoice_line_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line_bundle.sql", "original_file_path": "models/stg_quickbooks__invoice_line_bundle.sql", "name": "stg_quickbooks__invoice_line_bundle", "alias": "stg_quickbooks__invoice_line_bundle", "checksum": {"name": "sha256", "checksum": "0f971477ce0e36654a8571afaa3c4de0ca048b529a182bd4d63aa79874676719"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle_tmp"], ["stg_quickbooks__invoice_line_bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line_bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.690103, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n discount_amount\n \n as \n \n discount_amount\n \n, \n \n \n discount_rate\n \n as \n \n discount_rate\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n invoice_line_index\n \n as \n \n invoice_line_index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n line_num\n \n as \n \n line_num\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n service_date\n \n as \n \n service_date\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n cast(class_id as TEXT) as class_id,\n description,\n amount,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(item_id as TEXT) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as TEXT) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "raw_code": "with base as (\n select *\n from {{ ref('stg_quickbooks__account_tmp') }}\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as account_id,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt.type_string() }}) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__account.sql", "original_file_path": "models/stg_quickbooks__account.sql", "name": "stg_quickbooks__account", "alias": "stg_quickbooks__account", "checksum": {"name": "sha256", "checksum": "c363c2c2ed0bd1cdb52064560957c75ad004c3e727f72b5b1bc361e9d8ccf37a"}, "tags": [], "refs": [["stg_quickbooks__account_tmp"], ["stg_quickbooks__account_tmp"]], "sources": [], "metrics": [], "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"account_id": {"name": "account_id", "description": "Unique identifier for an account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__account.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.64556, "compiled_code": "with base as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\"\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n account_sub_type\n \n as \n \n account_sub_type\n \n, \n \n \n account_type\n \n as \n \n account_type\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_sub_accounts\n \n as \n \n balance_with_sub_accounts\n \n, \n \n \n classification\n \n as \n \n classification\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_account_id\n \n as \n \n parent_account_id\n \n, \n \n \n sub_account\n \n as \n \n sub_account\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as account_id,\n cast(account_number as TEXT) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as TEXT) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_tmp')),\n staging_columns=get_payment_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment.sql", "original_file_path": "models/stg_quickbooks__payment.sql", "name": "stg_quickbooks__payment", "alias": "stg_quickbooks__payment", "checksum": {"name": "sha256", "checksum": "f8b0ad9217d505ec03b1868643d078257992cf4dc4a1b524cab1bc454aeb4a27"}, "tags": [], "refs": [["stg_quickbooks__payment_tmp"], ["stg_quickbooks__payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "Identifies the account for obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to a customer or job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.705631, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_payment\n \n as \n \n process_payment\n \n, \n \n \n receivable_account_id\n \n as \n \n receivable_account_id\n \n, \n \n \n reference_number\n \n as \n \n reference_number\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n unapplied_amount\n \n as \n \n unapplied_amount\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as TEXT) as receivable_account_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_line_tmp')),\n staging_columns=get_estimate_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate_line.sql", "original_file_path": "models/stg_quickbooks__estimate_line.sql", "name": "stg_quickbooks__estimate_line", "alias": "stg_quickbooks__estimate_line", "checksum": {"name": "sha256", "checksum": "08e406854edfa3b633a1c7b434b2ee9e010a4e6c1bc49de7a37ef44c8d277451"}, "tags": [], "refs": [["stg_quickbooks__estimate_line_tmp"], ["stg_quickbooks__estimate_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Reference to the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6828392, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as TEXT) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_linked_txn_tmp')),\n staging_columns=get_bill_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_linked_txn.sql", "original_file_path": "models/stg_quickbooks__bill_linked_txn.sql", "name": "stg_quickbooks__bill_linked_txn", "alias": "stg_quickbooks__bill_linked_txn", "checksum": {"name": "sha256", "checksum": "aa0410b4e6baafc2e21269e6857ef88e84961b061e5007b0a7bb117c314f682d"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment id record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.651074, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(bill_payment_id as TEXT) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__address_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__address_tmp')),\n staging_columns=get_address_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__address.sql", "original_file_path": "models/stg_quickbooks__address.sql", "name": "stg_quickbooks__address", "alias": "stg_quickbooks__address", "checksum": {"name": "sha256", "checksum": "df30cdfedd8bc9f3eb2e7e7e62f55f3c1d4e1ac0a53012e4e2b567c8d4f34d63"}, "tags": [], "refs": [["stg_quickbooks__address_tmp"], ["stg_quickbooks__address_tmp"]], "sources": [], "metrics": [], "description": "Table containing address details.", "columns": {"address_id": {"name": "address_id", "description": "Unique identifier for an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_1": {"name": "address_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_2": {"name": "address_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__address.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.647221, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_sub_division_code\n \n as \n \n country_sub_division_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n line_1\n \n as \n \n line_1\n \n, \n \n \n line_2\n \n as \n \n line_2\n \n, \n \n \n line_3\n \n as \n \n line_3\n \n, \n \n \n line_4\n \n as \n \n line_4\n \n, \n \n \n line_5\n \n as \n \n line_5\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n postal_code\n \n as \n \n postal_code\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_tmp')),\n staging_columns=get_bill_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill.sql", "original_file_path": "models/stg_quickbooks__bill.sql", "name": "stg_quickbooks__bill", "alias": "stg_quickbooks__bill", "checksum": {"name": "sha256", "checksum": "fc4dc80f5295a1755ea41bcfd621db97343c27e09c1646d98c1d04c2cc30f418"}, "tags": [], "refs": [["stg_quickbooks__bill_tmp"], ["stg_quickbooks__bill_tmp"]], "sources": [], "metrics": [], "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of all bill line items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id of the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6587431, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as TEXT) as bill_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as TEXT) as payable_account_id,\n total_amount,\n cast(vendor_id as TEXT) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_line_tmp')),\n staging_columns=get_bill_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_line.sql", "original_file_path": "models/stg_quickbooks__bill_line.sql", "name": "stg_quickbooks__bill_line", "alias": "stg_quickbooks__bill_line", "checksum": {"name": "sha256", "checksum": "d541cef41b0a6505a9ac44d9317a77d9b6addf43cb083219fb9c92a2c793f401"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The id of the account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6500638, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_tmp')),\n staging_columns=get_journal_entry_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry.sql", "original_file_path": "models/stg_quickbooks__journal_entry.sql", "name": "stg_quickbooks__journal_entry", "alias": "stg_quickbooks__journal_entry", "checksum": {"name": "sha256", "checksum": "4f62753998ceb5f5764a9fba39a9fbd9fb87a16abf35090e50f2dd18eac58346"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_tmp"], ["stg_quickbooks__journal_entry_tmp"]], "sources": [], "metrics": [], "description": "Table containing journal entry transactions.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the journal entry was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.701596, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adjustment\n \n as \n \n adjustment\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as TEXT) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_tmp')),\n staging_columns=get_refund_receipt_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt.sql", "original_file_path": "models/stg_quickbooks__refund_receipt.sql", "name": "stg_quickbooks__refund_receipt", "alias": "stg_quickbooks__refund_receipt", "checksum": {"name": "sha256", "checksum": "5cd054048b45bd2245f33de53658e58c23bf8eabb8e4cfdcc096c915a977a834"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_tmp"], ["stg_quickbooks__refund_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account from which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.7242072, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n check_payment_account_number\n \n as \n \n check_payment_account_number\n \n, \n \n \n check_payment_bank_name\n \n as \n \n check_payment_bank_name\n \n, \n \n \n check_payment_check_number\n \n as \n \n check_payment_check_number\n \n, \n \n \n check_payment_name_on_account\n \n as \n \n check_payment_name_on_account\n \n, \n \n \n check_payment_status\n \n as \n \n check_payment_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as refund_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(class_id as TEXT) as class_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_line_tmp')),\n staging_columns=get_deposit_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt.type_string() }}) as deposit_account_id,\n cast(deposit_class_id as {{ dbt.type_string() }}) as deposit_class_id,\n cast(deposit_customer_id as {{ dbt.type_string() }}) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit_line.sql", "original_file_path": "models/stg_quickbooks__deposit_line.sql", "name": "stg_quickbooks__deposit_line", "alias": "stg_quickbooks__deposit_line", "checksum": {"name": "sha256", "checksum": "f2f457f0503a22ec51d606aab2156f7534091b31840927c84bb5fc7a2d34c838"}, "tags": [], "refs": [["stg_quickbooks__deposit_line_tmp"], ["stg_quickbooks__deposit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class which the deposit line record is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "Account id of the account which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Customer id of the customer which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.675235, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n deposit_account_id\n \n as \n \n deposit_account_id\n \n, \n \n \n deposit_check_number\n \n as \n \n deposit_check_number\n \n, \n \n \n deposit_class_id\n \n as \n \n deposit_class_id\n \n, \n \n \n deposit_customer_id\n \n as \n \n deposit_customer_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n deposit_payment_method_id\n \n as \n \n deposit_payment_method_id\n \n, \n \n \n deposit_tax_applicable_on\n \n as \n \n deposit_tax_applicable_on\n \n, \n \n \n deposit_tax_code_id\n \n as \n \n deposit_tax_code_id\n \n, \n \n \n deposit_transaction_type\n \n as \n \n deposit_transaction_type\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n detail_type\n \n as \n \n detail_type\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n, \n \n \n refund_receipt_id\n \n as \n \n refund_receipt_id\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n transfer_id\n \n as \n \n transfer_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as TEXT) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as TEXT) as deposit_account_id,\n cast(deposit_class_id as TEXT) as deposit_class_id,\n cast(deposit_customer_id as TEXT) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_tmp')),\n staging_columns=get_vendor_credit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit.sql", "original_file_path": "models/stg_quickbooks__vendor_credit.sql", "name": "stg_quickbooks__vendor_credit", "alias": "stg_quickbooks__vendor_credit", "checksum": {"name": "sha256", "checksum": "bd2e5efc709f19666acabd4fdd2483c1013d05078dca5ff4ffb8a1975a4a9978"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_tmp"], ["stg_quickbooks__vendor_credit_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the vendor credit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Specifies to which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.737847, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_credit_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as TEXT) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_line_tmp')),\n staging_columns=get_vendor_credit_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit_line.sql", "original_file_path": "models/stg_quickbooks__vendor_credit_line.sql", "name": "stg_quickbooks__vendor_credit_line", "alias": "stg_quickbooks__vendor_credit_line", "checksum": {"name": "sha256", "checksum": "44764c7cbfb920e4b4c187299856d960ffdb9408d2e8dabc29c326c4c5e9f3c9"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line_tmp"], ["stg_quickbooks__vendor_credit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": [], "test": ["not_null"]}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account credited for the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Customer reference for the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Customer reference for the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.7348611, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as TEXT) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_tmp')),\n staging_columns=get_deposit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit.sql", "original_file_path": "models/stg_quickbooks__deposit.sql", "name": "stg_quickbooks__deposit", "alias": "stg_quickbooks__deposit", "checksum": {"name": "sha256", "checksum": "3a8f91dd22dbe918fccedae73ae5a3e2db38a6344ac0a39d885ef49b149c89ce"}, "tags": [], "refs": [["stg_quickbooks__deposit_tmp"], ["stg_quickbooks__deposit_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifies the account to be used for this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the deposit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6772869, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n cash_back_account_id\n \n as \n \n cash_back_account_id\n \n, \n \n \n cash_back_amount\n \n as \n \n cash_back_amount\n \n, \n \n \n cash_back_memo\n \n as \n \n cash_back_memo\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as deposit_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__item_tmp')),\n staging_columns=get_item_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt.type_string() }}) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as {{ dbt.type_string() }}) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__item.sql", "original_file_path": "models/stg_quickbooks__item.sql", "name": "stg_quickbooks__item", "alias": "stg_quickbooks__item", "checksum": {"name": "sha256", "checksum": "049dfdf58d6ee3ac495bb7f41562a880562a55f818a0fdfda3a14574f8dfc7ce"}, "tags": [], "refs": [["stg_quickbooks__item_tmp"], ["stg_quickbooks__item_tmp"]], "sources": [], "metrics": [], "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"item_id": {"name": "item_id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the item was created within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the posting account, that is, the account that records the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the Inventory Asset account that tracks the current value of the inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.696579, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n asset_account_id\n \n as \n \n asset_account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n \n \n inventory_start_date\n \n as \n \n inventory_start_date\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_item_id\n \n as \n \n parent_item_id\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n purchase_description\n \n as \n \n purchase_description\n \n, \n \n \n purchase_tax_code_id\n \n as \n \n purchase_tax_code_id\n \n, \n \n \n purchase_tax_included\n \n as \n \n purchase_tax_included\n \n, \n \n \n quantity_on_hand\n \n as \n \n quantity_on_hand\n \n, \n \n \n sales_tax_code_id\n \n as \n \n sales_tax_code_id\n \n, \n \n \n sales_tax_included\n \n as \n \n sales_tax_included\n \n, \n \n \n stock_keeping_unit\n \n as \n \n stock_keeping_unit\n \n, \n \n \n sub_item\n \n as \n \n sub_item\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n track_quantity_on_hand\n \n as \n \n track_quantity_on_hand\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as TEXT) as income_account_id,\n cast(asset_account_id as TEXT) as asset_account_id,\n cast(expense_account_id as TEXT) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as TEXT) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__customer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__customer.sql", "original_file_path": "models/stg_quickbooks__customer.sql", "name": "stg_quickbooks__customer", "alias": "stg_quickbooks__customer", "checksum": {"name": "sha256", "checksum": "b896108565ae7c6d917878e5c8c6dd77f3fa89e61e4bda773ab8f06dc77ad7f3"}, "tags": [], "refs": [["stg_quickbooks__customer_tmp"], ["stg_quickbooks__customer_tmp"]], "sources": [], "metrics": [], "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__customer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.671624, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone_number\n \n as \n \n alternate_phone_number\n \n, \n \n \n ar_account_id\n \n as \n \n ar_account_id\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_jobs\n \n as \n \n balance_with_jobs\n \n, \n \n \n bill_address_id\n \n as \n \n bill_address_id\n \n, \n \n \n bill_with_parent\n \n as \n \n bill_with_parent\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n default_tax_code_id\n \n as \n \n default_tax_code_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job\n \n as \n \n job\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_number\n \n as \n \n mobile_number\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n open_balance_date\n \n as \n \n open_balance_date\n \n, \n \n \n parent_customer_id\n \n as \n \n parent_customer_id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n phone_number\n \n as \n \n phone_number\n \n, \n \n \n preferred_delivery_method\n \n as \n \n preferred_delivery_method\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n resale_number\n \n as \n \n resale_number\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_exemption_reason_id\n \n as \n \n tax_exemption_reason_id\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n website\n \n as \n \n website\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "name": "stg_quickbooks__vendor_credit_tmp", "alias": "stg_quickbooks__vendor_credit_tmp", "checksum": {"name": "sha256", "checksum": "135d5b0865e271c5d29187680f97b226b40b1c6c1e618f9d0818f0b7122dcfe6"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.288554, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "name": "stg_quickbooks__refund_receipt_line_tmp", "alias": "stg_quickbooks__refund_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "b35b79d236200ea1e2d71df28d1d32dbc3d8ce93eb0c97fc2d502997e133055e"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.306033, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_line_tmp.sql", "name": "stg_quickbooks__estimate_line_tmp", "alias": "stg_quickbooks__estimate_line_tmp", "checksum": {"name": "sha256", "checksum": "e6b43f9598030c138d67898959d3bcc06d4b571b16bd790974c5bda4e90dfe18"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.311712, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "name": "stg_quickbooks__credit_memo_line_tmp", "alias": "stg_quickbooks__credit_memo_line_tmp", "checksum": {"name": "sha256", "checksum": "877429c46bb2ccc5558c8577eda2444270a82e5e7717aec418fba450db743924"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.323075, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_tmp.sql", "name": "stg_quickbooks__journal_entry_tmp", "alias": "stg_quickbooks__journal_entry_tmp", "checksum": {"name": "sha256", "checksum": "4cc1a32910c8e5255f3d3bbe4578fb9f562e3f2fb56eff69e22f7f69b11fa32e"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.328395, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line_bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line_bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "name": "stg_quickbooks__invoice_line_bundle_tmp", "alias": "stg_quickbooks__invoice_line_bundle_tmp", "checksum": {"name": "sha256", "checksum": "a2dc8302a76014fdede73acb185944cb3901457f568da00b9400dbadd61a4781"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line_bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.333587, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_tmp.sql", "name": "stg_quickbooks__payment_tmp", "alias": "stg_quickbooks__payment_tmp", "checksum": {"name": "sha256", "checksum": "afe62d4646d63e7fc44dbe73ad04eb3af6f94e1fd98953cfdd5a5fae5464818f"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.339637, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_tmp.sql", "name": "stg_quickbooks__invoice_line_tmp", "alias": "stg_quickbooks__invoice_line_tmp", "checksum": {"name": "sha256", "checksum": "ec89045532e817aed8e8dc0a09e66f53a2c88aba038c7dcbbb51f6875d044f5d"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.344859, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_line_tmp.sql", "name": "stg_quickbooks__deposit_line_tmp", "alias": "stg_quickbooks__deposit_line_tmp", "checksum": {"name": "sha256", "checksum": "2a560b4173366349cc88aa5c091b2f10c61f60c0bfe73b3b0f673877627002a4"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.3500009, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.customer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='customer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='customer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__customer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__customer_tmp.sql", "name": "stg_quickbooks__customer_tmp", "alias": "stg_quickbooks__customer_tmp", "checksum": {"name": "sha256", "checksum": "2125a8e00af7bd53a1c2d0b414a756fa128457d4ecda78c77f813ba133a81325"}, "tags": [], "refs": [], "sources": [["quickbooks", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__customer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.3551412, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_line_tmp.sql", "name": "stg_quickbooks__bill_line_tmp", "alias": "stg_quickbooks__bill_line_tmp", "checksum": {"name": "sha256", "checksum": "8f06919fa5048f09e127332ef0675a7fac11b3d0787e6672612010db4a7f6193"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.359925, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__item_tmp.sql", "name": "stg_quickbooks__item_tmp", "alias": "stg_quickbooks__item_tmp", "checksum": {"name": "sha256", "checksum": "0db4c37e6bea881ee6f85348bc069b1ba7d74ce4fd550ed0ac643d4ef780ab79"}, "tags": [], "refs": [], "sources": [["quickbooks", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.365242, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='account', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='account',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__account_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__account_tmp.sql", "name": "stg_quickbooks__account_tmp", "alias": "stg_quickbooks__account_tmp", "checksum": {"name": "sha256", "checksum": "1157f7c518bf6f5e15bd9080fe829b06b7e3ddf59ea3e3a06164fe453e0def85"}, "tags": [], "refs": [], "sources": [["quickbooks", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__account_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.37087, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"account_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "name": "stg_quickbooks__vendor_credit_line_tmp", "alias": "stg_quickbooks__vendor_credit_line_tmp", "checksum": {"name": "sha256", "checksum": "38b9e05b27c7db52aa41fa740caa437895743d5de562b476917f75b55277debc"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.381061, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.department"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='department', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='department',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__department_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__department_tmp.sql", "name": "stg_quickbooks__department_tmp", "alias": "stg_quickbooks__department_tmp", "checksum": {"name": "sha256", "checksum": "ea310c765f23c51e6a2ef7bef84749f2a3fa89ac06b768173788080096354a00"}, "tags": [], "refs": [], "sources": [["quickbooks", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__department_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.3861818, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"department_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_tmp.sql", "name": "stg_quickbooks__bundle_tmp", "alias": "stg_quickbooks__bundle_tmp", "checksum": {"name": "sha256", "checksum": "722d0a1b955a8c123522a87f6b97c8770d00365b98d1fc057d1724e9c5c06667"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.39134, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle_item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle_item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_item_tmp.sql", "name": "stg_quickbooks__bundle_item_tmp", "alias": "stg_quickbooks__bundle_item_tmp", "checksum": {"name": "sha256", "checksum": "29e60e9dfb0da56786a41a51e1f1d441ae47d0e7b43727f8a31af463d6daf588"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle_item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.396675, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "name": "stg_quickbooks__bill_payment_line_tmp", "alias": "stg_quickbooks__bill_payment_line_tmp", "checksum": {"name": "sha256", "checksum": "914efeefeb70efc2b64e7bae87b298f93f419a08b170e06c3efb825f8eca1968"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.407975, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_tmp.sql", "name": "stg_quickbooks__estimate_tmp", "alias": "stg_quickbooks__estimate_tmp", "checksum": {"name": "sha256", "checksum": "bd7a335748a13aae584ae7ee6a45b8565299cf7a48a0495be863920c797d83c6"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.413122, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_tmp.sql", "name": "stg_quickbooks__purchase_tmp", "alias": "stg_quickbooks__purchase_tmp", "checksum": {"name": "sha256", "checksum": "1ad34ab2fb967805e5387b4dcf01716431d1008430faee53027f043466c3896d"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.4183118, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_tmp.sql", "name": "stg_quickbooks__credit_memo_tmp", "alias": "stg_quickbooks__credit_memo_tmp", "checksum": {"name": "sha256", "checksum": "1bbda612f739f980fcf68562c4efbd39bbae1e1a37713c7bd5c4deecc24660f0"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.423182, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_tmp.sql", "name": "stg_quickbooks__bill_tmp", "alias": "stg_quickbooks__bill_tmp", "checksum": {"name": "sha256", "checksum": "b579ba85c94cfa32fdb6fe9e65c2ee8e804c21417af340278c7370a7b9a31f2c"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.428451, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='transfer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='transfer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__transfer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__transfer_tmp.sql", "name": "stg_quickbooks__transfer_tmp", "alias": "stg_quickbooks__transfer_tmp", "checksum": {"name": "sha256", "checksum": "e46216a5c817a4e27af2ac9a936e7e21dc89127c20a0775d7e21c63cbdb4e173"}, "tags": [], "refs": [], "sources": [["quickbooks", "transfer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__transfer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.4344661, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='vendor', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_tmp.sql", "name": "stg_quickbooks__vendor_tmp", "alias": "stg_quickbooks__vendor_tmp", "checksum": {"name": "sha256", "checksum": "e106f714c2f307d3d50e99e8bd61cd4c03e96002006ce67191e182f2e1b19f7a"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.439741, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_line_tmp.sql", "name": "stg_quickbooks__purchase_line_tmp", "alias": "stg_quickbooks__purchase_line_tmp", "checksum": {"name": "sha256", "checksum": "39c7787a6481961b9d80bf3173afd5ece106fdb67bad2edbd69d436c6bbc3aca"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.4446778, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.address"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='address', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='address',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__address_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__address_tmp.sql", "name": "stg_quickbooks__address_tmp", "alias": "stg_quickbooks__address_tmp", "checksum": {"name": "sha256", "checksum": "39a9820afa24c94b220f35fa72a0452806f5cdb828e5eb70583cded4ceb71454"}, "tags": [], "refs": [], "sources": [["quickbooks", "address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.4494798, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"address_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_line_tmp.sql", "name": "stg_quickbooks__payment_line_tmp", "alias": "stg_quickbooks__payment_line_tmp", "checksum": {"name": "sha256", "checksum": "333d6ce9e2621c99b011bfbb668c38c1fe20d45a9e155278371ad1c5c19fffa3"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.4546938, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "name": "stg_quickbooks__refund_receipt_tmp", "alias": "stg_quickbooks__refund_receipt_tmp", "checksum": {"name": "sha256", "checksum": "274dbd883a2adaf7559f8bc8812a558a95b52329f18218fe5494c63b7abcf7a5"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.460636, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "name": "stg_quickbooks__sales_receipt_tmp", "alias": "stg_quickbooks__sales_receipt_tmp", "checksum": {"name": "sha256", "checksum": "bb64ce4afbe0e70f70d7c9dae8a57423d5ee7dc2326107fa4c5d4371ca911fce"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.466006, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_tmp.sql", "name": "stg_quickbooks__bill_payment_tmp", "alias": "stg_quickbooks__bill_payment_tmp", "checksum": {"name": "sha256", "checksum": "f956078b3ec8d833f517f431c67509fe75f494b11a6fa4a735b85d232453dba4"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.471169, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "name": "stg_quickbooks__journal_entry_line_tmp", "alias": "stg_quickbooks__journal_entry_line_tmp", "checksum": {"name": "sha256", "checksum": "bcba66ad0358646e9993b39ecdd17c69130874858cb027ed198364bb77a3d283"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.4763148, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_tmp.sql", "name": "stg_quickbooks__deposit_tmp", "alias": "stg_quickbooks__deposit_tmp", "checksum": {"name": "sha256", "checksum": "e1f40c890b39fe0dd1bcec03c90b403c4e77015c805426b90ca3c3b1c93eb3b2"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.4816341, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "name": "stg_quickbooks__bill_linked_txn_tmp", "alias": "stg_quickbooks__bill_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "2583068246d6617f1e99a3b11589211fb7cb90f66035526cee17be299ba826ec"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.48688, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "name": "stg_quickbooks__invoice_linked_txn_tmp", "alias": "stg_quickbooks__invoice_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "813acd5c2445c8886b2aa20afb05c5dc8165b9d38b3081b12a879e67abc67520"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.492799, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "name": "stg_quickbooks__sales_receipt_line_tmp", "alias": "stg_quickbooks__sales_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "87037987bd00e48e0a7fe6300511bcf7c80031e6fe4ba3b77902a7baa5752132"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.527099, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_tmp.sql", "name": "stg_quickbooks__invoice_tmp", "alias": "stg_quickbooks__invoice_tmp", "checksum": {"name": "sha256", "checksum": "c901088fa713bc1e59f7299c7c7d6ac7aea71b7c97e5a2821fd8efd33214bfc1"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.5375402, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "estimate_id"], "model": "{{ get_where_subquery(ref('quickbooks__ap_ar_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__ap_ar_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id", "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__ap_ar_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d"}, "created_at": 1676401664.602985, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, estimate_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\"\n group by transaction_id, source_relation, estimate_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__ap_ar_enhanced"}, "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "unique_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "unique_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "unique_quickbooks__cash_flow_statement_account_unique_id", "alias": "unique_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/unique_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.613695, "compiled_code": "\n \n \n\nselect\n account_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is not null\ngroup by account_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "not_null_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "not_null_quickbooks__cash_flow_statement_account_unique_id", "alias": "not_null_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.6149702, "compiled_code": "\n \n \n\n\n\nselect account_unique_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "transaction_line_id", "item_id"], "model": "{{ get_where_subquery(ref('quickbooks__expenses_sales_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__expenses_sales_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id", "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__expenses_sales_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938"}, "created_at": 1676401664.616246, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, transaction_line_id, item_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\"\n group by transaction_id, source_relation, transaction_line_id, item_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__expenses_sales_enhanced"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["unique_id", "source_relation"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation", "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0"}, "created_at": 1676401664.620394, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n unique_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n group by unique_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "period_first_day"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger_by_period')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day", "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782"}, "created_at": 1676401664.624096, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, period_first_day\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n group by account_id, class_id, source_relation, period_first_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger_by_period"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "calendar_date"], "model": "{{ get_where_subquery(ref('quickbooks__profit_and_loss')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__profit_and_loss"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date", "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__profit_and_loss"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381"}, "created_at": 1676401664.628053, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, calendar_date\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\"\n group by account_id, class_id, source_relation, calendar_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__profit_and_loss"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation", "calendar_date", "class_id"], "model": "{{ get_where_subquery(ref('quickbooks__balance_sheet')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id", "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827"}, "created_at": 1676401664.6323252, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation, calendar_date, class_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n group by account_id, source_relation, calendar_date, class_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__balance_sheet"}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__account_account_id", "alias": "not_null_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.7410922, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Asset", "Equity", "Expense", "Liability", "Revenue"], "column_name": "classification", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9"}, "created_at": 1676401664.742712, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n classification as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by classification\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Asset','Equity','Expense','Liability','Revenue'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "classification", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29"}, "created_at": 1676401664.749324, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by account_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "address_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__address_address_id", "alias": "not_null_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__address_address_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.752788, "compiled_code": "\n \n \n\n\n\nselect address_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\nwhere address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id", "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["address_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation", "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772"}, "created_at": 1676401664.754053, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n address_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n group by address_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_line_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_line_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_line_bill_id", "alias": "not_null_stg_quickbooks__bill_line_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_line_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.7575, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1"}, "created_at": 1676401664.7587469, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n group by bill_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.76248, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.763716, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_line_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.765122, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614"}, "created_at": 1676401664.766358, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n group by bill_payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.7700639, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec"}, "created_at": 1676401664.771311, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n group by bill_payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_bill_id", "alias": "not_null_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.774772, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation", "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4"}, "created_at": 1676401664.776025, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n group by bill_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle_item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_item_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_item_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_item_bundle_id", "alias": "not_null_stg_quickbooks__bundle_item_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle_item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_item_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.779619, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle_item"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_bundle_id", "alias": "not_null_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.780859, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bundle_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation", "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727"}, "created_at": 1676401664.782271, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bundle_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n group by bundle_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_line_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.7856362, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858"}, "created_at": 1676401664.7872279, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n group by credit_memo_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.7908459, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation", "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083"}, "created_at": 1676401664.7920918, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n group by credit_memo_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__customer_customer_id", "alias": "not_null_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__customer_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.795894, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation", "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a"}, "created_at": 1676401664.797152, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n group by customer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_line_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_line_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_line_deposit_id", "alias": "not_null_stg_quickbooks__deposit_line_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_line_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.8006442, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b"}, "created_at": 1676401664.801885, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n group by deposit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_deposit_id", "alias": "not_null_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.80554, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation", "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb"}, "created_at": 1676401664.806796, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n group by deposit_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_estimate_id", "alias": "not_null_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.810307, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation", "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68"}, "created_at": 1676401664.8115652, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n group by estimate_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_line_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_line_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_line_estimate_id", "alias": "not_null_stg_quickbooks__estimate_line_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_line_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.8150048, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a"}, "created_at": 1676401664.81626, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\n group by estimate_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "alias": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.819885, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.821184, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0"}, "created_at": 1676401664.822617, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n group by invoice_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.826313, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "invoice_line_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation", "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a"}, "created_at": 1676401664.8275661, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, invoice_line_index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n group by invoice_id, index, invoice_line_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_invoice_id", "alias": "not_null_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.8313758, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation", "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c"}, "created_at": 1676401664.83263, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n group by invoice_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__item_item_id", "alias": "not_null_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__item_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.836045, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation", "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5"}, "created_at": 1676401664.837334, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n item_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n group by item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_line_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.8408241, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Credit", "Debit"], "column_name": "posting_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55"}, "created_at": 1676401664.8420649, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n posting_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by posting_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Credit','Debit'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "posting_type", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["journal_entry_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee"}, "created_at": 1676401664.8456142, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n journal_entry_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by journal_entry_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.849726, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_line_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_line_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_line_payment_id", "alias": "not_null_stg_quickbooks__payment_line_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_line_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.850964, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625"}, "created_at": 1676401664.852372, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n group by payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_payment_id", "alias": "not_null_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.855885, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557"}, "created_at": 1676401664.857273, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n group by payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_line_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_line_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_line_purchase_id", "alias": "not_null_stg_quickbooks__purchase_line_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_line_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.860715, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153"}, "created_at": 1676401664.862018, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n group by purchase_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_purchase_id", "alias": "not_null_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.865699, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Cash", "Check", "CreditCard"], "column_name": "payment_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216"}, "created_at": 1676401664.866953, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n payment_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by payment_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Cash','Check','CreditCard'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_type", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation", "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563"}, "created_at": 1676401664.870594, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by purchase_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_line_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.8740401, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943"}, "created_at": 1676401664.8752902, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_linked_txn')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1"}, "created_at": 1676401664.87905, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.880353, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Open", "Closed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614"}, "created_at": 1676401664.881793, "column_name": "status", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation", "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d"}, "created_at": 1676401664.885144, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_line_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.888591, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576"}, "created_at": 1676401664.889848, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n group by refund_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.893482, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation", "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605"}, "created_at": 1676401664.894946, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n group by refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.898319, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899"}, "created_at": 1676401664.900059, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n group by sales_receipt_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.903701, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation", "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d"}, "created_at": 1676401664.90496, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n group by sales_receipt_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transfer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__transfer_transfer_id", "alias": "not_null_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__transfer_transfer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.9084108, "compiled_code": "\n \n \n\n\n\nselect transfer_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\nwhere transfer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id", "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transfer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233"}, "created_at": 1676401664.909672, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transfer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n group by transfer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_credit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b"}, "created_at": 1676401664.913148, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_credit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n group by vendor_credit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor_credit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "alias": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.916773, "compiled_code": "\n \n \n\n\n\nselect vendor_credit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\nwhere vendor_credit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id", "file_key_name": "models.stg_quickbooks__vendor_credit"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_vendor_id", "alias": "not_null_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.9180229, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_quickbooks__vendor"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation", "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4"}, "created_at": 1676401664.9192681, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n group by vendor_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "account", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "account_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"id": {"name": "id", "description": "Unique identifier of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_account": {"name": "sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"account_data\"", "created_at": 1676401665.037816}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "address", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing address details.", "columns": {"id": {"name": "id", "description": "Unique identifier of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_1": {"name": "line_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_2": {"name": "line_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"address_data\"", "created_at": 1676401665.0379462}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"", "created_at": 1676401665.0380428}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The \"Unique identifier of the bill payment id record.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"", "created_at": 1676401665.0381272}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"", "created_at": 1676401665.0382159}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"", "created_at": 1676401665.0383098}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total \"Monetary amount of all bill line items.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"", "created_at": 1676401665.038403}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle_item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing all bundle and item combinations", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bundle and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"", "created_at": 1676401665.038482}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"", "created_at": 1676401665.038563}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"fqn": ["quickbooks_source", "quickbooks", "credit_card_payment_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_card_payment_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_card_payment_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all credit card payment transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "The identifier of the account associated with the bank which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credit card which the payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_card_payment_txn_data\"", "created_at": 1676401665.03865}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"", "created_at": 1676401665.038739}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"", "created_at": 1676401665.0388281}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "customer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "customer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website url associated with the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"", "created_at": 1676401665.038916}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "department", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "department_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_department": {"name": "sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"department_data\"", "created_at": 1676401665.038999}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class associated the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "The identifier of the account associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Reference to the customer associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"", "created_at": 1676401665.03908}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"id": {"name": "id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"", "created_at": 1676401665.0391638}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"id": {"name": "id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"", "created_at": 1676401665.0393128}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"", "created_at": 1676401665.039405}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"", "created_at": 1676401665.0394828}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"", "created_at": 1676401665.039575}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line_bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for sales on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"", "created_at": 1676401665.039664}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"id": {"name": "id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"", "created_at": 1676401665.039756}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the item within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "The identifier of the account associated with the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "The identifier of the account associated with the inventory asset that tracks its current value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "The identifier of the account associated used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"item_data\"", "created_at": 1676401665.039846}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"", "created_at": 1676401665.039933}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing journal entry transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjustment": {"name": "adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"", "created_at": 1676401665.0400178}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"", "created_at": 1676401665.0400991}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"id": {"name": "id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "The identifier of the account associated with obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with the deposit to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"", "created_at": 1676401665.040183}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"", "created_at": 1676401665.04027}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase expenses.", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the applied purchase based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"", "created_at": 1676401665.04036}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase order.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_line_data\"", "created_at": 1676401665.040475}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for purchase order records to respective bill and purchase objects.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_linked_txn_data\"", "created_at": 1676401665.040555}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase orders (PO).", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_customer_type": {"name": "custom_customer_type", "description": "Custom field for customer type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "A message for the vendor. This text appears on the purchase order object sent to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction. This note does not appear on the purchase order to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_data\"", "created_at": 1676401665.040648}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"", "created_at": 1676401665.040737}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"id": {"name": "id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the refund receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"", "created_at": 1676401665.0408251}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"", "created_at": 1676401665.0409138}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"id": {"name": "id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with where payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated sales receipt to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"", "created_at": 1676401665.041004}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "transfer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "transfer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"id": {"name": "id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "The identifier of the account associated with where the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "The identifier of the account associated with where the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"", "created_at": 1676401665.041085}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"", "created_at": 1676401665.041176}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"", "created_at": 1676401665.0412679}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_1099": {"name": "vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"", "created_at": 1676401665.041357}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.228574, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.22891, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2290618, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2292101, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2293582, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2309499, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.231918, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.239767, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.240462, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.240913, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.241358, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.242027, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2425542, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.242794, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.243288, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.24393, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2451992, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.245504, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.245965, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2463481, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.246969, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2472808, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.248124, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2484128, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2485728, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.249234, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.250308, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2507, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.251641, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.25617, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.256468, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2572422, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.257901, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2594612, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.259736, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.259935, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.260129, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.260332, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.260915, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.261332, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.261756, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.262463, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.262846, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.267668, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2679071, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.268211, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.269214, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.269442, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.269682, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.271647, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2735791, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2791948, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.279604, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2798421, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.279964, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.280164, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.28032, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.280601, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2818382, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2821, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.28245, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.283044, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.291677, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.294605, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.295306, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.295818, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.296478, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.297017, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.299232, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.300003, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.300929, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.301261, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3022552, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.308471, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.310734, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3110669, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.31213, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.312503, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.313411, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.314379, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.315614, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.315938, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3161979, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3165581, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3168159, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.317179, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.317439, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3178, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.318059, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.318263, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.31866, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3254888, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.333036, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.334734, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.33646, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.337692, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.341312, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.342108, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.342371, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.342976, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.343555, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.347142, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.347641, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.347956, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3500931, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.350658, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.350889, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.351137, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.351498, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.356079, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.362797, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.364064, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3643909, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.365062, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3653288, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.365509, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3657, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.36586, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.366079, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.366244, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.366907, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.367163, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.368924, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3695402, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.369903, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.370719, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3710878, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.371489, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3721159, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3724642, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3730218, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3735218, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.373937, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.374795, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3768718, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.377762, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3781672, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.380736, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3823822, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3834171, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.383734, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.384139, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.384244, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3848162, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3850439, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.385468, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3856452, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3860931, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3862422, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.386784, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.387011, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3874009, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3875048, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.387946, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.388154, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.388643, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.388915, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3898618, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3904178, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.390958, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.391181, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.391649, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.391834, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.392267, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.392491, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3929029, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.393118, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.393534, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3936799, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3941572, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3943381, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3947551, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.394898, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.396225, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.396439, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3967419, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3969522, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3971782, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.397385, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3976052, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3978539, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3980758, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.39828, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3985012, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.398699, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.398916, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.399116, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3995872, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.399771, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.400191, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4003289, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.400872, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4012392, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.401448, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.40223, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.402456, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.402845, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4033122, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4034839, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.40407, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.404402, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.404865, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.405045, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.405616, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.405866, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.406084, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.406334, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4070442, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.407251, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.407441, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.407579, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.407804, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.407906, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.40813, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.408354, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4090471, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.409313, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4095302, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.410091, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4145548, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.414796, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4150982, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.415498, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.415841, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.416288, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.416534, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4168231, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.417074, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.41729, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.417569, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.417953, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.418292, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.419054, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.41945, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4196422, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4199018, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.420596, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4211788, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.423451, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.423607, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.423841, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4239922, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.424464, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.424722, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.424858, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4251661, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4254222, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4257338, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.425993, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.426312, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4272408, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.427753, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.428094, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.428432, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.430059, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4310489, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.431288, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.431565, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.431796, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.432163, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.432828, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.434867, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4352179, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4354718, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.43569, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.435935, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4362721, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.436573, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4369972, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.437249, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.437473, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.439787, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4401028, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4405272, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.440779, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.441246, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.441569, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.442393, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.442741, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.443813, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4458408, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.446496, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4471219, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.447687, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4477801, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.44854, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.448853, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.449248, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.449624, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.450189, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.45086, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4516008, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.452605, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.453116, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.453553, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.455094, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4565382, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.45779, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.459305, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.460268, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4607518, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.46183, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4630332, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4637382, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.464384, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4652858, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.465942, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.466779, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.467315, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4680169, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.468759, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.469693, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.470604, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.471406, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.471885, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.472516, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.473012, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.47394, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.475074, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.476348, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.477619, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.478668, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.480025, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"unique_id": "macro.dbt_utils.test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.480921, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"unique_id": "macro.dbt_utils.default__test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.481347, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.486021, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.488223, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.48869, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.488928, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4896278, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.49009, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.490359, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4907892, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4910421, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.491991, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.493206, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4942222, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.49506, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.495397, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.495907, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.496439, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.496918, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.497944, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.49924, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.500437, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5010078, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.501269, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5019798, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.502992, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.504253, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.504941, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5053492, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5071502, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.509139, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.511023, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.513344, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"unique_id": "macro.dbt_utils.safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.513835, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"unique_id": "macro.dbt_utils.default__safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.514016, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.518369, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.523227, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5237372, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.524083, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5251389, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.525439, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.525717, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.525985, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.526212, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.526452, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5270689, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.527391, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.52798, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5287879, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5293639, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.529829, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.532232, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.532759, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.533846, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.534556, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.536213, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.538357, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.539914, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.541116, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5418408, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.542866, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.544951, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5456052, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.546255, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.546515, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.547134, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5479622, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"unique_id": "macro.dbt_utils.generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5486772, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"unique_id": "macro.dbt_utils.default__generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.549603, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.550238, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.550442, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.550634, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"unique_id": "macro.dbt_utils.get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.551414, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"unique_id": "macro.dbt_utils.default__get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.552536, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.554034, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5544288, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.555234, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.556361, "supported_languages": null}, "macro.quickbooks.get_enabled_unioned_models": {"unique_id": "macro.quickbooks.get_enabled_unioned_models", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "macros/get_enabled_unioned_models.sql", "original_file_path": "macros/get_enabled_unioned_models.sql", "name": "get_enabled_unioned_models", "macro_sql": "{% macro get_enabled_unioned_models(unioned_models = [ \n 'bill',\n 'credit_memo',\n 'deposit',\n 'invoice',\n 'journal_entry',\n 'payment',\n 'refund_receipt',\n 'sales_receipt',\n 'transfer',\n 'vendor_credit']) %} \n\n{% set enabled_unioned_models = [] %}\n\n{{ enabled_unioned_models.append(ref('int_quickbooks__purchase_double_entry')) }}\n\n{% for unioned_model in unioned_models %} \n {% if var('using_' ~ unioned_model, True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__' ~ unioned_model ~ '_double_entry')) }}\n {% endif %}\n {% endfor %} \n \n{% if var('using_bill', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__bill_payment_double_entry')) }}\n{% endif %}\n\n{% if var('using_credit_card_payment_txn', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__credit_card_pymt_double_entry')) }}\n{% endif %}\n\n{{ return(enabled_unioned_models) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "This macro takes models from the `double_entry_transactions` folder and appends them together in an array of relations if these models are enabled. This will then be unioned together using `dbt_utils.union_relations` in the `quickbooks__general_ledger` model. `int_quickbooks__purchase_double_entry` is included by default. `int_quickbooks__bill_payment_double_entry` and `int_quickbooks__credit_card_pymt_double_entry` are appended separately because their `using_` variables do not match up like the other variables, which can't be modified.\n", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://macros/quickbooks_macros.yml", "arguments": [{"name": "unioned_models", "type": "list", "description": "List of strings referring to particular models to then be appended and eventually unioned if enabled."}, {"name": "enabled_unioned_models", "type": "list", "description": "List of relations of models that are enabled to eventually be unioned into a general ledger model."}], "created_at": 1676401664.6381109, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.558761, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.560101, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.56033, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.560556, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.560786, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5609841, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.561213, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.562426, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.563405, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.564948, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.565293, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.565629, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.56605, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.56638, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.566751, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.567111, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.567631, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.567775, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.567911, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.568047, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.568637, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5695171, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.570685, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.571396, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5715818, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.571761, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.571937, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5721228, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.576148, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5763788, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.576606, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.57682, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5793622, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5805929, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5807848, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5811672, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.581567, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.581747, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5819168, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5820851, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.582826, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.583638, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.584382, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.584661, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.584963, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5853992, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.587003, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.592834, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.593339, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.593943, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.596261, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.597051, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.59792, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.598135, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.598351, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.598586, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.598794, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5990021, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6000419, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.601414, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6024451, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.602669, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6028879, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.603107, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6033332, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.603576, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6040099, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.604149, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6043751, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.605348, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.607324, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.610661, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.612721, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.613182, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.613325, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.613462, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6140969, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.614728, "supported_languages": null}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_line_columns.sql", "original_file_path": "macros/get_deposit_line_columns.sql", "name": "get_deposit_line_columns", "macro_sql": "{% macro get_deposit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.618432, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_line_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_line_columns.sql", "original_file_path": "macros/get_vendor_credit_line_columns.sql", "name": "get_vendor_credit_line_columns", "macro_sql": "{% macro get_vendor_credit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6214662, "supported_languages": null}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "name": "get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6244009, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_linked_txn_columns.sql", "original_file_path": "macros/get_purchase_order_linked_txn_columns.sql", "name": "get_purchase_order_linked_txn_columns", "macro_sql": "{% macro get_purchase_order_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.625567, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_line_columns.sql", "original_file_path": "macros/get_sales_receipt_line_columns.sql", "name": "get_sales_receipt_line_columns", "macro_sql": "{% macro get_sales_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.629369, "supported_languages": null}, "macro.quickbooks_source.get_bill_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_bill_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_linked_txn_columns.sql", "original_file_path": "macros/get_bill_linked_txn_columns.sql", "name": "get_bill_linked_txn_columns", "macro_sql": "{% macro get_bill_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.630302, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_line_columns.sql", "original_file_path": "macros/get_bill_payment_line_columns.sql", "name": "get_bill_payment_line_columns", "macro_sql": "{% macro get_bill_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6325812, "supported_languages": null}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_transfer_columns.sql", "original_file_path": "macros/get_transfer_columns.sql", "name": "get_transfer_columns", "macro_sql": "{% macro get_transfer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.63442, "supported_languages": null}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_columns.sql", "original_file_path": "macros/get_purchase_columns.sql", "name": "get_purchase_columns", "macro_sql": "{% macro get_purchase_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.638417, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_line_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_line_columns.sql", "original_file_path": "macros/get_journal_entry_line_columns.sql", "name": "get_journal_entry_line_columns", "macro_sql": "{% macro get_journal_entry_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.641252, "supported_languages": null}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_columns.sql", "original_file_path": "macros/get_deposit_columns.sql", "name": "get_deposit_columns", "macro_sql": "{% macro get_deposit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6441972, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_columns.sql", "original_file_path": "macros/get_purchase_order_columns.sql", "name": "get_purchase_order_columns", "macro_sql": "{% macro get_purchase_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.648263, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_line_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_line_columns.sql", "original_file_path": "macros/get_credit_memo_line_columns.sql", "name": "get_credit_memo_line_columns", "macro_sql": "{% macro get_credit_memo_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.652012, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_columns.sql", "original_file_path": "macros/get_journal_entry_columns.sql", "name": "get_journal_entry_columns", "macro_sql": "{% macro get_journal_entry_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.654526, "supported_languages": null}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_columns.sql", "original_file_path": "macros/get_vendor_columns.sql", "name": "get_vendor_columns", "macro_sql": "{% macro get_vendor_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6587899, "supported_languages": null}, "macro.quickbooks_source.get_invoice_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_invoice_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_linked_txn_columns.sql", "original_file_path": "macros/get_invoice_linked_txn_columns.sql", "name": "get_invoice_linked_txn_columns", "macro_sql": "{% macro get_invoice_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6603642, "supported_languages": null}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_item_columns.sql", "original_file_path": "macros/get_item_columns.sql", "name": "get_item_columns", "macro_sql": "{% macro get_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.664565, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_columns.sql", "original_file_path": "macros/get_credit_memo_columns.sql", "name": "get_credit_memo_columns", "macro_sql": "{% macro get_credit_memo_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.669373, "supported_languages": null}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_item_columns.sql", "original_file_path": "macros/get_bundle_item_columns.sql", "name": "get_bundle_item_columns", "macro_sql": "{% macro get_bundle_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.670284, "supported_languages": null}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_columns.sql", "original_file_path": "macros/get_payment_columns.sql", "name": "get_payment_columns", "macro_sql": "{% macro get_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.675197, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_columns.sql", "original_file_path": "macros/get_vendor_credit_columns.sql", "name": "get_vendor_credit_columns", "macro_sql": "{% macro get_vendor_credit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.677844, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_columns.sql", "original_file_path": "macros/get_refund_receipt_columns.sql", "name": "get_refund_receipt_columns", "macro_sql": "{% macro get_refund_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.685684, "supported_languages": null}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_columns.sql", "original_file_path": "macros/get_bill_columns.sql", "name": "get_bill_columns", "macro_sql": "{% macro get_bill_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6887639, "supported_languages": null}, "macro.quickbooks_source.get_credit_card_payment_txn_columns": {"unique_id": "macro.quickbooks_source.get_credit_card_payment_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_card_payment_txn_columns.sql", "original_file_path": "macros/get_credit_card_payment_txn_columns.sql", "name": "get_credit_card_payment_txn_columns", "macro_sql": "{% macro get_credit_card_payment_txn_columns() %}\n\n{% set columns = [ \t\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.690561, "supported_languages": null}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_line_columns.sql", "original_file_path": "macros/get_bill_line_columns.sql", "name": "get_bill_line_columns", "macro_sql": "{% macro get_bill_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.69342, "supported_languages": null}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "name": "get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.699696, "supported_languages": null}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_columns.sql", "original_file_path": "macros/get_invoice_columns.sql", "name": "get_invoice_columns", "macro_sql": "{% macro get_invoice_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allow_ipnpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_achpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_credit_card_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.706804, "supported_languages": null}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_line_columns.sql", "original_file_path": "macros/get_payment_line_columns.sql", "name": "get_payment_line_columns", "macro_sql": "{% macro get_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.708817, "supported_languages": null}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_department_columns.sql", "original_file_path": "macros/get_department_columns.sql", "name": "get_department_columns", "macro_sql": "{% macro get_department_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.710474, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_columns.sql", "original_file_path": "macros/get_invoice_line_columns.sql", "name": "get_invoice_line_columns", "macro_sql": "{% macro get_invoice_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.714805, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_line_columns.sql", "original_file_path": "macros/get_purchase_order_line_columns.sql", "name": "get_purchase_order_line_columns", "macro_sql": "{% macro get_purchase_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.717667, "supported_languages": null}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_line_columns.sql", "original_file_path": "macros/get_purchase_line_columns.sql", "name": "get_purchase_line_columns", "macro_sql": "{% macro get_purchase_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.720528, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_line_columns.sql", "original_file_path": "macros/get_refund_receipt_line_columns.sql", "name": "get_refund_receipt_line_columns", "macro_sql": "{% macro get_refund_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.724223, "supported_languages": null}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_columns.sql", "original_file_path": "macros/get_estimate_columns.sql", "name": "get_estimate_columns", "macro_sql": "{% macro get_estimate_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.729525, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_columns.sql", "original_file_path": "macros/get_bill_payment_columns.sql", "name": "get_bill_payment_columns", "macro_sql": "{% macro get_bill_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.7325828, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_columns.sql", "original_file_path": "macros/get_sales_receipt_columns.sql", "name": "get_sales_receipt_columns", "macro_sql": "{% macro get_sales_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.740247, "supported_languages": null}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_columns.sql", "original_file_path": "macros/get_bundle_columns.sql", "name": "get_bundle_columns", "macro_sql": "{% macro get_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.742381, "supported_languages": null}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_line_columns.sql", "original_file_path": "macros/get_estimate_line_columns.sql", "name": "get_estimate_line_columns", "macro_sql": "{% macro get_estimate_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.7467499, "supported_languages": null}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_address_columns.sql", "original_file_path": "macros/get_address_columns.sql", "name": "get_address_columns", "macro_sql": "{% macro get_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.7488692, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_bundle_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_bundle_columns.sql", "original_file_path": "macros/get_invoice_line_bundle_columns.sql", "name": "get_invoice_line_bundle_columns", "macro_sql": "{% macro get_invoice_line_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.7519732, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "quickbooks.ap_ar_enhanced_table": {"unique_id": "quickbooks.ap_ar_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ap_ar_enhanced_table", "block_contents": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time."}, "quickbooks.cash_flow_statement_table": {"unique_id": "quickbooks.cash_flow_statement_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "cash_flow_statement_table", "block_contents": "Table that provides all line items necessary to construct a cash flow statement."}, "quickbooks.expenses_sales_enhanced_table": {"unique_id": "quickbooks.expenses_sales_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "expenses_sales_enhanced_table", "block_contents": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records."}, "quickbooks.general_ledger_table": {"unique_id": "quickbooks.general_ledger_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_table", "block_contents": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction."}, "quickbooks.general_ledger_by_period_table": {"unique_id": "quickbooks.general_ledger_by_period_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_by_period_table", "block_contents": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year."}, "quickbooks.profit_and_loss_table": {"unique_id": "quickbooks.profit_and_loss_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "profit_and_loss_table", "block_contents": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information."}, "quickbooks.account_class": {"unique_id": "quickbooks.account_class", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_class", "block_contents": "Class of the account associated"}, "quickbooks.account_name": {"unique_id": "quickbooks.account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "Name of the account associated"}, "quickbooks.account_number": {"unique_id": "quickbooks.account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_number", "block_contents": "User defined number of the account."}, "quickbooks.account_ordinal": {"unique_id": "quickbooks.account_ordinal", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_ordinal", "block_contents": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)"}, "quickbooks.account_sub_type": {"unique_id": "quickbooks.account_sub_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_sub_type", "block_contents": "Sub type of the account associated"}, "quickbooks.account_type": {"unique_id": "quickbooks.account_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_type", "block_contents": "The type of account associated"}, "quickbooks.calendar_date": {"unique_id": "quickbooks.calendar_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "calendar_date", "block_contents": "Timestamp of the first calendar date of the month."}, "quickbooks.is_sub_account": {"unique_id": "quickbooks.is_sub_account", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_sub_account", "block_contents": "Boolean indicating whether the account is a sub account (true) or a parent account (false)."}, "quickbooks.parent_account_name": {"unique_id": "quickbooks.parent_account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_name", "block_contents": "The parent account name. If the account is the parent account then the account name is recorded."}, "quickbooks.parent_account_number": {"unique_id": "quickbooks.parent_account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_number", "block_contents": "The parent account number. If the account is the parent account then the account number is recorded."}, "quickbooks.transaction_date": {"unique_id": "quickbooks.transaction_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_date", "block_contents": "Timestamp of the date that the transaction occurred."}, "quickbooks.transaction_id": {"unique_id": "quickbooks.transaction_id", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_id", "block_contents": "Unique identifier of the transaction"}, "quickbooks_source.account_table": {"unique_id": "quickbooks_source.account_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_table", "block_contents": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity."}, "quickbooks_source.address_table": {"unique_id": "quickbooks_source.address_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "address_table", "block_contents": "Table containing address details."}, "quickbooks_source.bill_line_table": {"unique_id": "quickbooks_source.bill_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_line_table", "block_contents": "Table containing distinct line items from bills within the `bill` table."}, "quickbooks_source.bill_linked_txn_table": {"unique_id": "quickbooks_source.bill_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_linked_txn_table", "block_contents": "Mapping table containing bill payment transactions linked to a bill."}, "quickbooks_source.bill_payment_line_table": {"unique_id": "quickbooks_source.bill_payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_line_table", "block_contents": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table."}, "quickbooks_source.bill_payment_table": {"unique_id": "quickbooks_source.bill_payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_table", "block_contents": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor."}, "quickbooks_source.bill_table": {"unique_id": "quickbooks_source.bill_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_table", "block_contents": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both."}, "quickbooks_source.bundle_item_table": {"unique_id": "quickbooks_source.bundle_item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_item_table", "block_contents": "Mapping table containing all bundle and item combinations."}, "quickbooks_source.bundle_table": {"unique_id": "quickbooks_source.bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_table", "block_contents": "Table containing all bundles possible to be used within an invoice."}, "quickbooks_source.credit_card_payment_txn_table": {"unique_id": "quickbooks_source.credit_card_payment_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_card_payment_txn_table", "block_contents": "Table containing all credit card payment transactions."}, "quickbooks_source.credit_memo_line_table": {"unique_id": "quickbooks_source.credit_memo_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_line_table", "block_contents": "Table containing individual records of credit memos."}, "quickbooks_source.credit_memo_table": {"unique_id": "quickbooks_source.credit_memo_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_table", "block_contents": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold."}, "quickbooks_source.customer_table": {"unique_id": "quickbooks_source.customer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_table", "block_contents": "Table containing customers of which are consumers of the service or product that your business offers."}, "quickbooks_source.department_table": {"unique_id": "quickbooks_source.department_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_table", "block_contents": "Table containing records representing physical locations such as stores, and sales regions."}, "quickbooks_source.deposit_line_table": {"unique_id": "quickbooks_source.deposit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_line_table", "block_contents": "Table containing individual line items comprising the deposit."}, "quickbooks_source.deposit_table": {"unique_id": "quickbooks_source.deposit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_table", "block_contents": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit."}, "quickbooks_source.estimate_line_table": {"unique_id": "quickbooks_source.estimate_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_line_table", "block_contents": "Table containing line item records of an estimate."}, "quickbooks_source.estimate_table": {"unique_id": "quickbooks_source.estimate_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_table", "block_contents": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing."}, "quickbooks_source.invoice_line_bundle_table": {"unique_id": "quickbooks_source.invoice_line_bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_bundle_table", "block_contents": "Table containing lines of an invoice which were bundled."}, "quickbooks_source.invoice_line_table": {"unique_id": "quickbooks_source.invoice_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_table", "block_contents": "Table containing individual records from invoices."}, "quickbooks_source.invoice_linked_txn_table": {"unique_id": "quickbooks_source.invoice_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_linked_txn_table", "block_contents": "Mapping table for invoices records to respective estimate and payment objects."}, "quickbooks_source.invoice_table": {"unique_id": "quickbooks_source.invoice_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_table", "block_contents": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later."}, "quickbooks_source.item_table": {"unique_id": "quickbooks_source.item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_table", "block_contents": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services."}, "quickbooks_source.journal_entry_line_table": {"unique_id": "quickbooks_source.journal_entry_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_line_table", "block_contents": "Table containing individual line items of a transaction associated with a journal entry."}, "quickbooks_source.journal_entry_table": {"unique_id": "quickbooks_source.journal_entry_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_table", "block_contents": "Table containing journal entry transactions."}, "quickbooks_source.payment_line_table": {"unique_id": "quickbooks_source.payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_line_table", "block_contents": "Table containing individual line items recorded within a payment."}, "quickbooks_source.payment_table": {"unique_id": "quickbooks_source.payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_table", "block_contents": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount."}, "quickbooks_source.purchase_line_table": {"unique_id": "quickbooks_source.purchase_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase."}, "quickbooks_source.purchase_order_line_table": {"unique_id": "quickbooks_source.purchase_order_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase order."}, "quickbooks_source.purchase_order_linked_txn_table": {"unique_id": "quickbooks_source.purchase_order_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_linked_txn_table", "block_contents": "Mapping table for purchase order records to respective bill and purchase objects."}, "quickbooks_source.purchase_order_table": {"unique_id": "quickbooks_source.purchase_order_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_table", "block_contents": "Table containing records of purchase orders (PO)."}, "quickbooks_source.purchase_table": {"unique_id": "quickbooks_source.purchase_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_table", "block_contents": "Table containing records of purchase expenses."}, "quickbooks_source.refund_receipt_line_table": {"unique_id": "quickbooks_source.refund_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_line_table", "block_contents": "Table containing individual line items of a refund transaction."}, "quickbooks_source.refund_receipt_table": {"unique_id": "quickbooks_source.refund_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_table", "block_contents": "Table containing refunds to the customer for a product or service that was provided."}, "quickbooks_source.sales_receipt_line_table": {"unique_id": "quickbooks_source.sales_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_line_table", "block_contents": "Table containing individual line items of a sales transaction."}, "quickbooks_source.sales_receipt_table": {"unique_id": "quickbooks_source.sales_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_table", "block_contents": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited."}, "quickbooks_source.transfer_table": {"unique_id": "quickbooks_source.transfer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transfer_table", "block_contents": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts."}, "quickbooks_source.vendor_credit_line_table": {"unique_id": "quickbooks_source.vendor_credit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_line_table", "block_contents": "Table containing individual vendor credit line items."}, "quickbooks_source.vendor_credit_table": {"unique_id": "quickbooks_source.vendor_credit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_table", "block_contents": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services."}, "quickbooks_source.vendor_table": {"unique_id": "quickbooks_source.vendor_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product."}, "quickbooks_source.account_id": {"unique_id": "quickbooks_source.account_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The identifier of the account associated"}, "quickbooks_source.amount": {"unique_id": "quickbooks_source.amount", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "amount", "block_contents": "Monetary amount of"}, "quickbooks_source.class_id": {"unique_id": "quickbooks_source.class_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "Reference to the class associated"}, "quickbooks_source.created_at": {"unique_id": "quickbooks_source.created_at", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of the creation date"}, "quickbooks_source.currency_id": {"unique_id": "quickbooks_source.currency_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "Reference to the currency"}, "quickbooks_source.customer_id": {"unique_id": "quickbooks_source.customer_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Reference to the customer associated"}, "quickbooks_source.department_id": {"unique_id": "quickbooks_source.department_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "Reference to the department"}, "quickbooks_source.id": {"unique_id": "quickbooks_source.id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "id", "block_contents": "Unique identifier of the"}, "quickbooks_source.item_id": {"unique_id": "quickbooks_source.item_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "Reference to the item"}, "quickbooks_source._fivetran_deleted": {"unique_id": "quickbooks_source._fivetran_deleted", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {"model.quickbooks.int_quickbooks__credit_card_pymt_double_entry": [{"resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_card_pymt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_card_pymt_double_entry", "raw_code": "/*\nTable that creates a debit record to the associated bank account and a credit record to the specified credit card account.\n*/\n\n--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith credit_card_payments as (\n \n select *\n from {{ ref('stg_quickbooks__credit_card_payment_txn') }}\n where is_most_recent_record\n),\n\ncredit_card_payment_prep as (\n\n select\n credit_card_payments.credit_card_payment_id as transaction_id,\n credit_card_payments.source_relation,\n row_number() over (partition by credit_card_payments.credit_card_payment_id order by credit_card_payments.transaction_date) - 1 as index,\n credit_card_payments.transaction_date,\n credit_card_payments.amount,\n credit_card_payments.bank_account_id,\n credit_card_payments.credit_card_account_id,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as class_id\n from credit_card_payments\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount, \n cast(bank_account_id as {{ dbt.type_string() }}) as account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as account_id,\n class_id, \n 'debit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "name": "int_quickbooks__credit_card_pymt_double_entry", "alias": "int_quickbooks__credit_card_pymt_double_entry", "checksum": {"name": "sha256", "checksum": "b0b069fdb6c61a9cccf3f4ab656a9afb040568c0a0d9262943d2fce376b70e57"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to credit card payment transactions.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": false}, "created_at": 1676401664.56202, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_card_payment_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_card_payment_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn", "raw_code": "--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_card_payment_txn_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_card_payment_txn_tmp')),\n staging_columns=get_credit_card_payment_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_card_payment_id,\n amount,\n bank_account_id,\n credit_card_account_id,\n created_at,\n updated_at,\n currency_id,\n transaction_date,\n _fivetran_deleted,\n row_number() over (partition by id, updated_at order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_card_payment_txn.sql", "original_file_path": "models/stg_quickbooks__credit_card_payment_txn.sql", "name": "stg_quickbooks__credit_card_payment_txn", "alias": "stg_quickbooks__credit_card_payment_txn", "checksum": {"name": "sha256", "checksum": "a8274053455a19f46f54111bac914dd48d1365ce550d73b051c8b22f9fafef0b"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn_tmp"], ["stg_quickbooks__credit_card_payment_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('credit_card_payment_txn_table') }}", "columns": {"credit_card_payment_id": {"name": "credit_card_payment_id", "description": "{{ doc('id') }} credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "Reference to the bank account which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Reference to the credit card account which the credit card payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating if the record is the most recent updated version of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676401664.663882, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_tmp')),\n staging_columns=get_purchase_order_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order.sql", "original_file_path": "models/stg_quickbooks__purchase_order.sql", "name": "stg_quickbooks__purchase_order", "alias": "stg_quickbooks__purchase_order", "checksum": {"name": "sha256", "checksum": "697ef46b9a8ee1073daf25c393eca18697b1c95b1b57914e5a9cef8bd8adcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676401664.718511, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_line_tmp')),\n staging_columns=get_purchase_order_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_line.sql", "original_file_path": "models/stg_quickbooks__purchase_order_line.sql", "name": "stg_quickbooks__purchase_order_line", "alias": "stg_quickbooks__purchase_order_line", "checksum": {"name": "sha256", "checksum": "a2b4b3ba47604cb6f1391043643e49168328c1ab7df52754f699748f11fa8888"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_line_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase order is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676401664.714237, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_linked_txn_tmp')),\n staging_columns=get_purchase_order_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_linked_txn.sql", "original_file_path": "models/stg_quickbooks__purchase_order_linked_txn.sql", "name": "stg_quickbooks__purchase_order_linked_txn", "alias": "stg_quickbooks__purchase_order_linked_txn", "checksum": {"name": "sha256", "checksum": "3e9cbee58cb2dab37c5798fd7a97954b3eae45670cc0288ce232394180fd1605"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_linked_txn_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676401664.7155871, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "name": "stg_quickbooks__purchase_order_line_tmp", "alias": "stg_quickbooks__purchase_order_line_tmp", "checksum": {"name": "sha256", "checksum": "be4cdef26ee4b271e7c425130b4c3b80be45214b5be926af060d32331badcc0f"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676401664.317321, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_card_payment_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp", "raw_code": "--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_card_payment_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_card_payment_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "name": "stg_quickbooks__credit_card_payment_txn_tmp", "alias": "stg_quickbooks__credit_card_payment_txn_tmp", "checksum": {"name": "sha256", "checksum": "b1910ce2b3a9463b6c4b232fa24e807de5c899a1d03dde1feef6bc43dbe8b3d6"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_card_payment_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676401664.375691, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_tmp.sql", "name": "stg_quickbooks__purchase_order_tmp", "alias": "stg_quickbooks__purchase_order_tmp", "checksum": {"name": "sha256", "checksum": "a14f234fcfdc6777fe2bb8898ce79b14b45590d19bd6eab25d33ee95cc899bbd"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676401664.402804, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "alias": "stg_quickbooks__purchase_order_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "926409c011fa67fdcd598c4c0c21b87fb5dabe8654d46f0ee7caac0a028d5d99"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676401664.532274, "config_call_dict": {"enabled": false}}]}, "parent_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__general_ledger_by_period": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry"], "model.quickbooks.quickbooks__profit_and_loss": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.quickbooks__cash_flow_statement": ["model.quickbooks.int_quickbooks__cash_flow_classifications"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__balance_sheet"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "analysis.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "analysis.quickbooks.quickbooks__income_statement": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["source.quickbooks_source.quickbooks.vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["source.quickbooks_source.quickbooks.refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["source.quickbooks_source.quickbooks.estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["source.quickbooks_source.quickbooks.credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["source.quickbooks_source.quickbooks.journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["source.quickbooks_source.quickbooks.invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["source.quickbooks_source.quickbooks.payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["source.quickbooks_source.quickbooks.invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["source.quickbooks_source.quickbooks.deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["source.quickbooks_source.quickbooks.customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["source.quickbooks_source.quickbooks.bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["source.quickbooks_source.quickbooks.item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["source.quickbooks_source.quickbooks.account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["source.quickbooks_source.quickbooks.vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["source.quickbooks_source.quickbooks.department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["source.quickbooks_source.quickbooks.bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["source.quickbooks_source.quickbooks.bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["source.quickbooks_source.quickbooks.bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["source.quickbooks_source.quickbooks.estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["source.quickbooks_source.quickbooks.purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["source.quickbooks_source.quickbooks.credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["source.quickbooks_source.quickbooks.bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["source.quickbooks_source.quickbooks.transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["source.quickbooks_source.quickbooks.vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["source.quickbooks_source.quickbooks.purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["source.quickbooks_source.quickbooks.address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["source.quickbooks_source.quickbooks.payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["source.quickbooks_source.quickbooks.refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["source.quickbooks_source.quickbooks.sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["source.quickbooks_source.quickbooks.bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["source.quickbooks_source.quickbooks.journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["source.quickbooks_source.quickbooks.deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["source.quickbooks_source.quickbooks.bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["source.quickbooks_source.quickbooks.invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["source.quickbooks_source.quickbooks.sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["source.quickbooks_source.quickbooks.invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": ["model.quickbooks.quickbooks__general_ledger"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": ["model.quickbooks.quickbooks__general_ledger_by_period"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": ["model.quickbooks.quickbooks__profit_and_loss"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": ["model.quickbooks.quickbooks__balance_sheet"], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": ["model.quickbooks_source.stg_quickbooks__bundle_item"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": ["model.quickbooks_source.stg_quickbooks__vendor"], "source.quickbooks_source.quickbooks.account": [], "source.quickbooks_source.quickbooks.address": [], "source.quickbooks_source.quickbooks.bill_line": [], "source.quickbooks_source.quickbooks.bill_linked_txn": [], "source.quickbooks_source.quickbooks.bill_payment_line": [], "source.quickbooks_source.quickbooks.bill_payment": [], "source.quickbooks_source.quickbooks.bill": [], "source.quickbooks_source.quickbooks.bundle_item": [], "source.quickbooks_source.quickbooks.bundle": [], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": [], "source.quickbooks_source.quickbooks.credit_memo": [], "source.quickbooks_source.quickbooks.customer": [], "source.quickbooks_source.quickbooks.department": [], "source.quickbooks_source.quickbooks.deposit_line": [], "source.quickbooks_source.quickbooks.deposit": [], "source.quickbooks_source.quickbooks.estimate": [], "source.quickbooks_source.quickbooks.estimate_line": [], "source.quickbooks_source.quickbooks.invoice_linked_txn": [], "source.quickbooks_source.quickbooks.invoice_line": [], "source.quickbooks_source.quickbooks.invoice_line_bundle": [], "source.quickbooks_source.quickbooks.invoice": [], "source.quickbooks_source.quickbooks.item": [], "source.quickbooks_source.quickbooks.journal_entry_line": [], "source.quickbooks_source.quickbooks.journal_entry": [], "source.quickbooks_source.quickbooks.payment_line": [], "source.quickbooks_source.quickbooks.payment": [], "source.quickbooks_source.quickbooks.purchase_line": [], "source.quickbooks_source.quickbooks.purchase": [], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": [], "source.quickbooks_source.quickbooks.refund_receipt": [], "source.quickbooks_source.quickbooks.sales_receipt_line": [], "source.quickbooks_source.quickbooks.sales_receipt": [], "source.quickbooks_source.quickbooks.transfer": [], "source.quickbooks_source.quickbooks.vendor_credit_line": [], "source.quickbooks_source.quickbooks.vendor_credit": [], "source.quickbooks_source.quickbooks.vendor": []}, "child_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.int_quickbooks__cash_flow_classifications", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"], "model.quickbooks.quickbooks__general_ledger_by_period": ["analysis.quickbooks.quickbooks__balance_sheet", "analysis.quickbooks.quickbooks__income_statement", "model.quickbooks.quickbooks__balance_sheet", "model.quickbooks.quickbooks__profit_and_loss", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"], "model.quickbooks.quickbooks__profit_and_loss": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"], "model.quickbooks.quickbooks__cash_flow_statement": ["test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__cash_flow_statement"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__retained_earnings", "model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "analysis.quickbooks.quickbooks__balance_sheet": [], "analysis.quickbooks.quickbooks__income_statement": [], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks.int_quickbooks__transfer_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks.int_quickbooks__bill_join", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["model.quickbooks_source.stg_quickbooks__estimate_line", "model.quickbooks_source.stg_quickbooks__estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["model.quickbooks_source.stg_quickbooks__transfer", "model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry_line", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": [], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": [], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": [], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": [], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": [], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": [], "source.quickbooks_source.quickbooks.account": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "source.quickbooks_source.quickbooks.address": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "source.quickbooks_source.quickbooks.bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "source.quickbooks_source.quickbooks.bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "source.quickbooks_source.quickbooks.bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "source.quickbooks_source.quickbooks.bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "source.quickbooks_source.quickbooks.bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "source.quickbooks_source.quickbooks.bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "source.quickbooks_source.quickbooks.bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "source.quickbooks_source.quickbooks.credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "source.quickbooks_source.quickbooks.customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "source.quickbooks_source.quickbooks.department": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "source.quickbooks_source.quickbooks.deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "source.quickbooks_source.quickbooks.deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "source.quickbooks_source.quickbooks.estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "source.quickbooks_source.quickbooks.estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "source.quickbooks_source.quickbooks.invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "source.quickbooks_source.quickbooks.invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "source.quickbooks_source.quickbooks.invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "source.quickbooks_source.quickbooks.invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "source.quickbooks_source.quickbooks.item": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "source.quickbooks_source.quickbooks.journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "source.quickbooks_source.quickbooks.journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "source.quickbooks_source.quickbooks.payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "source.quickbooks_source.quickbooks.payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "source.quickbooks_source.quickbooks.purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "source.quickbooks_source.quickbooks.purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "source.quickbooks_source.quickbooks.refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "source.quickbooks_source.quickbooks.sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "source.quickbooks_source.quickbooks.sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "source.quickbooks_source.quickbooks.transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "source.quickbooks_source.quickbooks.vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "source.quickbooks_source.quickbooks.vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "source.quickbooks_source.quickbooks.vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"]}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index 446e0f2d..cf1e6a48 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T04:04:14.137055Z", "invocation_id": "d39158d3-c135-411d-9a25-e6a76e3424ac", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.055722Z", "completed_at": "2023-02-14T04:04:01.088343Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.088833Z", "completed_at": "2023-02-14T04:04:01.088854Z"}], "thread_id": "Thread-1", "execution_time": 0.03587079048156738, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.056035Z", "completed_at": "2023-02-14T04:04:01.088649Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.089880Z", "completed_at": "2023-02-14T04:04:01.089886Z"}], "thread_id": "Thread-2", "execution_time": 0.03752589225769043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.074865Z", "completed_at": "2023-02-14T04:04:01.088718Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.089983Z", "completed_at": "2023-02-14T04:04:01.089988Z"}], "thread_id": "Thread-4", "execution_time": 0.037004947662353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.056194Z", "completed_at": "2023-02-14T04:04:01.088943Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.090393Z", "completed_at": "2023-02-14T04:04:01.090397Z"}], "thread_id": "Thread-3", "execution_time": 0.03817415237426758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.094145Z", "completed_at": "2023-02-14T04:04:01.137550Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.138042Z", "completed_at": "2023-02-14T04:04:01.138050Z"}], "thread_id": "Thread-1", "execution_time": 0.0463559627532959, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.126651Z", "completed_at": "2023-02-14T04:04:01.137967Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.138916Z", "completed_at": "2023-02-14T04:04:01.138921Z"}], "thread_id": "Thread-2", "execution_time": 0.046066999435424805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.126738Z", "completed_at": "2023-02-14T04:04:01.138121Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.139262Z", "completed_at": "2023-02-14T04:04:01.139267Z"}], "thread_id": "Thread-4", "execution_time": 0.04647183418273926, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.126908Z", "completed_at": "2023-02-14T04:04:01.138182Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.139365Z", "completed_at": "2023-02-14T04:04:01.139372Z"}], "thread_id": "Thread-3", "execution_time": 0.046452999114990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.141829Z", "completed_at": "2023-02-14T04:04:01.150057Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.157995Z", "completed_at": "2023-02-14T04:04:01.158002Z"}], "thread_id": "Thread-1", "execution_time": 0.018714189529418945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.146249Z", "completed_at": "2023-02-14T04:04:01.157873Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.158872Z", "completed_at": "2023-02-14T04:04:01.158876Z"}], "thread_id": "Thread-2", "execution_time": 0.018001794815063477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.146389Z", "completed_at": "2023-02-14T04:04:01.158075Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.159193Z", "completed_at": "2023-02-14T04:04:01.159198Z"}], "thread_id": "Thread-4", "execution_time": 0.018218040466308594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.146504Z", "completed_at": "2023-02-14T04:04:01.158151Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.159279Z", "completed_at": "2023-02-14T04:04:01.159283Z"}], "thread_id": "Thread-3", "execution_time": 0.018247127532958984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.161545Z", "completed_at": "2023-02-14T04:04:01.173177Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.176992Z", "completed_at": "2023-02-14T04:04:01.177000Z"}], "thread_id": "Thread-1", "execution_time": 0.017781734466552734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.165987Z", "completed_at": "2023-02-14T04:04:01.177071Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.178183Z", "completed_at": "2023-02-14T04:04:01.178188Z"}], "thread_id": "Thread-2", "execution_time": 0.017590999603271484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.166107Z", "completed_at": "2023-02-14T04:04:01.177143Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.178269Z", "completed_at": "2023-02-14T04:04:01.178274Z"}], "thread_id": "Thread-4", "execution_time": 0.017570018768310547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.166295Z", "completed_at": "2023-02-14T04:04:01.177597Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.178621Z", "completed_at": "2023-02-14T04:04:01.178625Z"}], "thread_id": "Thread-3", "execution_time": 0.01773381233215332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.180158Z", "completed_at": "2023-02-14T04:04:01.186283Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.196832Z", "completed_at": "2023-02-14T04:04:01.196839Z"}], "thread_id": "Thread-1", "execution_time": 0.018930912017822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.186127Z", "completed_at": "2023-02-14T04:04:01.197533Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.198708Z", "completed_at": "2023-02-14T04:04:01.198715Z"}], "thread_id": "Thread-4", "execution_time": 0.018493175506591797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.186013Z", "completed_at": "2023-02-14T04:04:01.197638Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.198801Z", "completed_at": "2023-02-14T04:04:01.198805Z"}], "thread_id": "Thread-2", "execution_time": 0.019144058227539062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.186223Z", "completed_at": "2023-02-14T04:04:01.197827Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.198973Z", "completed_at": "2023-02-14T04:04:01.198977Z"}], "thread_id": "Thread-3", "execution_time": 0.014712095260620117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.199763Z", "completed_at": "2023-02-14T04:04:01.205532Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.209273Z", "completed_at": "2023-02-14T04:04:01.209279Z"}], "thread_id": "Thread-1", "execution_time": 0.019197940826416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.205798Z", "completed_at": "2023-02-14T04:04:01.217758Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.218849Z", "completed_at": "2023-02-14T04:04:01.218854Z"}], "thread_id": "Thread-4", "execution_time": 0.014790773391723633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.206044Z", "completed_at": "2023-02-14T04:04:01.218111Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.219014Z", "completed_at": "2023-02-14T04:04:01.219018Z"}], "thread_id": "Thread-3", "execution_time": 0.014597177505493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.205965Z", "completed_at": "2023-02-14T04:04:01.218186Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.219096Z", "completed_at": "2023-02-14T04:04:01.219100Z"}], "thread_id": "Thread-2", "execution_time": 0.015222787857055664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.219512Z", "completed_at": "2023-02-14T04:04:01.225414Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.229860Z", "completed_at": "2023-02-14T04:04:01.229870Z"}], "thread_id": "Thread-1", "execution_time": 0.01801013946533203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.225686Z", "completed_at": "2023-02-14T04:04:01.236733Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.237776Z", "completed_at": "2023-02-14T04:04:01.237781Z"}], "thread_id": "Thread-4", "execution_time": 0.013890743255615234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.225858Z", "completed_at": "2023-02-14T04:04:01.236812Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.237960Z", "completed_at": "2023-02-14T04:04:01.237964Z"}], "thread_id": "Thread-3", "execution_time": 0.013966798782348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.225941Z", "completed_at": "2023-02-14T04:04:01.237274Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.238444Z", "completed_at": "2023-02-14T04:04:01.238448Z"}], "thread_id": "Thread-2", "execution_time": 0.01438283920288086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.238862Z", "completed_at": "2023-02-14T04:04:01.245565Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.253725Z", "completed_at": "2023-02-14T04:04:01.253745Z"}], "thread_id": "Thread-1", "execution_time": 0.02150702476501465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.245669Z", "completed_at": "2023-02-14T04:04:01.258622Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.260302Z", "completed_at": "2023-02-14T04:04:01.260310Z"}], "thread_id": "Thread-4", "execution_time": 0.01689887046813965, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.249652Z", "completed_at": "2023-02-14T04:04:01.259499Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.260862Z", "completed_at": "2023-02-14T04:04:01.260867Z"}], "thread_id": "Thread-2", "execution_time": 0.016410112380981445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.245848Z", "completed_at": "2023-02-14T04:04:01.260123Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.261371Z", "completed_at": "2023-02-14T04:04:01.261376Z"}], "thread_id": "Thread-3", "execution_time": 0.01755499839782715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.262009Z", "completed_at": "2023-02-14T04:04:01.268329Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.277474Z", "completed_at": "2023-02-14T04:04:01.277488Z"}], "thread_id": "Thread-1", "execution_time": 0.020704984664916992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.268252Z", "completed_at": "2023-02-14T04:04:01.281281Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.282409Z", "completed_at": "2023-02-14T04:04:01.282415Z"}], "thread_id": "Thread-4", "execution_time": 0.020285844802856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.268501Z", "completed_at": "2023-02-14T04:04:01.281452Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.282594Z", "completed_at": "2023-02-14T04:04:01.282598Z"}], "thread_id": "Thread-2", "execution_time": 0.01605701446533203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.272338Z", "completed_at": "2023-02-14T04:04:01.281939Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.283085Z", "completed_at": "2023-02-14T04:04:01.283089Z"}], "thread_id": "Thread-3", "execution_time": 0.016201019287109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.283512Z", "completed_at": "2023-02-14T04:04:01.286506Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.287349Z", "completed_at": "2023-02-14T04:04:01.287354Z"}], "thread_id": "Thread-1", "execution_time": 0.008008956909179688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.287112Z", "completed_at": "2023-02-14T04:04:01.290274Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.292336Z", "completed_at": "2023-02-14T04:04:01.292341Z"}], "thread_id": "Thread-4", "execution_time": 0.0071108341217041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.287272Z", "completed_at": "2023-02-14T04:04:01.291549Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.292516Z", "completed_at": "2023-02-14T04:04:01.292520Z"}], "thread_id": "Thread-2", "execution_time": 0.007009983062744141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.288665Z", "completed_at": "2023-02-14T04:04:01.291907Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.292986Z", "completed_at": "2023-02-14T04:04:01.292990Z"}], "thread_id": "Thread-3", "execution_time": 0.007161855697631836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.293370Z", "completed_at": "2023-02-14T04:04:01.296970Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.298036Z", "completed_at": "2023-02-14T04:04:01.298042Z"}], "thread_id": "Thread-1", "execution_time": 0.009174108505249023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.297769Z", "completed_at": "2023-02-14T04:04:01.301396Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.303557Z", "completed_at": "2023-02-14T04:04:01.303562Z"}], "thread_id": "Thread-4", "execution_time": 0.00785064697265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.297955Z", "completed_at": "2023-02-14T04:04:01.302730Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.303724Z", "completed_at": "2023-02-14T04:04:01.303728Z"}], "thread_id": "Thread-2", "execution_time": 0.007778167724609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.299621Z", "completed_at": "2023-02-14T04:04:01.303116Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.304215Z", "completed_at": "2023-02-14T04:04:01.304219Z"}], "thread_id": "Thread-3", "execution_time": 0.00795602798461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.304615Z", "completed_at": "2023-02-14T04:04:01.307361Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.308187Z", "completed_at": "2023-02-14T04:04:01.308191Z"}], "thread_id": "Thread-1", "execution_time": 0.007650852203369141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.307955Z", "completed_at": "2023-02-14T04:04:01.311078Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.314113Z", "completed_at": "2023-02-14T04:04:01.314122Z"}], "thread_id": "Thread-4", "execution_time": 0.008043050765991211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.308111Z", "completed_at": "2023-02-14T04:04:01.313116Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.314311Z", "completed_at": "2023-02-14T04:04:01.314315Z"}], "thread_id": "Thread-2", "execution_time": 0.008114814758300781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.309489Z", "completed_at": "2023-02-14T04:04:01.313455Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.314859Z", "completed_at": "2023-02-14T04:04:01.314863Z"}], "thread_id": "Thread-3", "execution_time": 0.008296012878417969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.315287Z", "completed_at": "2023-02-14T04:04:01.318744Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.319656Z", "completed_at": "2023-02-14T04:04:01.319662Z"}], "thread_id": "Thread-1", "execution_time": 0.009141683578491211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.319380Z", "completed_at": "2023-02-14T04:04:01.323102Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.325426Z", "completed_at": "2023-02-14T04:04:01.325432Z"}], "thread_id": "Thread-4", "execution_time": 0.008002042770385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.319568Z", "completed_at": "2023-02-14T04:04:01.324567Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.325604Z", "completed_at": "2023-02-14T04:04:01.325608Z"}], "thread_id": "Thread-2", "execution_time": 0.007889032363891602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.321100Z", "completed_at": "2023-02-14T04:04:01.324946Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.326089Z", "completed_at": "2023-02-14T04:04:01.326093Z"}], "thread_id": "Thread-3", "execution_time": 0.007997274398803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.326500Z", "completed_at": "2023-02-14T04:04:01.329161Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.329966Z", "completed_at": "2023-02-14T04:04:01.329970Z"}], "thread_id": "Thread-1", "execution_time": 0.00849008560180664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.329740Z", "completed_at": "2023-02-14T04:04:01.333750Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.335736Z", "completed_at": "2023-02-14T04:04:01.335741Z"}], "thread_id": "Thread-4", "execution_time": 0.0077669620513916016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.329892Z", "completed_at": "2023-02-14T04:04:01.334969Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.335899Z", "completed_at": "2023-02-14T04:04:01.335903Z"}], "thread_id": "Thread-2", "execution_time": 0.00787806510925293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.332163Z", "completed_at": "2023-02-14T04:04:01.335309Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.336382Z", "completed_at": "2023-02-14T04:04:01.336386Z"}], "thread_id": "Thread-3", "execution_time": 0.00787210464477539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.336845Z", "completed_at": "2023-02-14T04:04:01.339486Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.340305Z", "completed_at": "2023-02-14T04:04:01.340310Z"}], "thread_id": "Thread-1", "execution_time": 0.007591962814331055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.340074Z", "completed_at": "2023-02-14T04:04:01.343196Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.345519Z", "completed_at": "2023-02-14T04:04:01.345525Z"}], "thread_id": "Thread-4", "execution_time": 0.007350921630859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.340229Z", "completed_at": "2023-02-14T04:04:01.344611Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.345710Z", "completed_at": "2023-02-14T04:04:01.345714Z"}], "thread_id": "Thread-2", "execution_time": 0.007277250289916992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.341653Z", "completed_at": "2023-02-14T04:04:01.344962Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.346216Z", "completed_at": "2023-02-14T04:04:01.346220Z"}], "thread_id": "Thread-3", "execution_time": 0.007336139678955078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.346617Z", "completed_at": "2023-02-14T04:04:01.350469Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.351352Z", "completed_at": "2023-02-14T04:04:01.351358Z"}], "thread_id": "Thread-1", "execution_time": 0.008858203887939453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.351116Z", "completed_at": "2023-02-14T04:04:01.354205Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.356445Z", "completed_at": "2023-02-14T04:04:01.356450Z"}], "thread_id": "Thread-4", "execution_time": 0.007256269454956055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.351276Z", "completed_at": "2023-02-14T04:04:01.355619Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.356610Z", "completed_at": "2023-02-14T04:04:01.356614Z"}], "thread_id": "Thread-2", "execution_time": 0.007128238677978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.352667Z", "completed_at": "2023-02-14T04:04:01.355977Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.357072Z", "completed_at": "2023-02-14T04:04:01.357076Z"}], "thread_id": "Thread-3", "execution_time": 0.007146120071411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.357449Z", "completed_at": "2023-02-14T04:04:01.360055Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.360834Z", "completed_at": "2023-02-14T04:04:01.360839Z"}], "thread_id": "Thread-1", "execution_time": 0.008152008056640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.360616Z", "completed_at": "2023-02-14T04:04:01.364447Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.366458Z", "completed_at": "2023-02-14T04:04:01.366462Z"}], "thread_id": "Thread-4", "execution_time": 0.0075719356536865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.360762Z", "completed_at": "2023-02-14T04:04:01.365655Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.366621Z", "completed_at": "2023-02-14T04:04:01.366625Z"}], "thread_id": "Thread-2", "execution_time": 0.00762176513671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.362104Z", "completed_at": "2023-02-14T04:04:01.365989Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.367082Z", "completed_at": "2023-02-14T04:04:01.367086Z"}], "thread_id": "Thread-3", "execution_time": 0.007648944854736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.367503Z", "completed_at": "2023-02-14T04:04:01.370094Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.370981Z", "completed_at": "2023-02-14T04:04:01.370986Z"}], "thread_id": "Thread-1", "execution_time": 0.007524013519287109, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.370743Z", "completed_at": "2023-02-14T04:04:01.373808Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.375839Z", "completed_at": "2023-02-14T04:04:01.375843Z"}], "thread_id": "Thread-4", "execution_time": 0.006917238235473633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.370905Z", "completed_at": "2023-02-14T04:04:01.375063Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.376004Z", "completed_at": "2023-02-14T04:04:01.376007Z"}], "thread_id": "Thread-2", "execution_time": 0.006929874420166016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.372225Z", "completed_at": "2023-02-14T04:04:01.375414Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.376457Z", "completed_at": "2023-02-14T04:04:01.376461Z"}], "thread_id": "Thread-3", "execution_time": 0.006924152374267578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.376830Z", "completed_at": "2023-02-14T04:04:01.379443Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.380231Z", "completed_at": "2023-02-14T04:04:01.380235Z"}], "thread_id": "Thread-1", "execution_time": 0.008149147033691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.380006Z", "completed_at": "2023-02-14T04:04:01.383855Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.392305Z", "completed_at": "2023-02-14T04:04:01.392310Z"}], "thread_id": "Thread-4", "execution_time": 0.01403498649597168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.380154Z", "completed_at": "2023-02-14T04:04:01.391506Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:01.392469Z", "completed_at": "2023-02-14T04:04:01.392473Z"}], "thread_id": "Thread-2", "execution_time": 0.01407003402709961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.393402Z", "completed_at": "2023-02-14T04:04:02.309490Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:02.309727Z", "completed_at": "2023-02-14T04:04:02.309737Z"}], "thread_id": "Thread-1", "execution_time": 0.9991476535797119, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.399598Z", "completed_at": "2023-02-14T04:04:02.310042Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:02.310505Z", "completed_at": "2023-02-14T04:04:02.310509Z"}], "thread_id": "Thread-4", "execution_time": 1.0016982555389404, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.382288Z", "completed_at": "2023-02-14T04:04:02.309937Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:02.310350Z", "completed_at": "2023-02-14T04:04:02.310356Z"}], "thread_id": "Thread-3", "execution_time": 1.021310806274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:01.399673Z", "completed_at": "2023-02-14T04:04:02.310195Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:02.310665Z", "completed_at": "2023-02-14T04:04:02.310668Z"}], "thread_id": "Thread-2", "execution_time": 1.0024621486663818, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:02.392456Z", "completed_at": "2023-02-14T04:04:03.240620Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:03.240958Z", "completed_at": "2023-02-14T04:04:03.240982Z"}], "thread_id": "Thread-1", "execution_time": 0.9449470043182373, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:02.404377Z", "completed_at": "2023-02-14T04:04:03.328531Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:03.328820Z", "completed_at": "2023-02-14T04:04:03.328829Z"}], "thread_id": "Thread-3", "execution_time": 1.0069477558135986, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:02.404269Z", "completed_at": "2023-02-14T04:04:03.329222Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:03.329619Z", "completed_at": "2023-02-14T04:04:03.329623Z"}], "thread_id": "Thread-4", "execution_time": 1.0169289112091064, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:02.404476Z", "completed_at": "2023-02-14T04:04:03.329114Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:03.329514Z", "completed_at": "2023-02-14T04:04:03.329521Z"}], "thread_id": "Thread-2", "execution_time": 1.0165410041809082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:03.337625Z", "completed_at": "2023-02-14T04:04:04.220110Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:04.220440Z", "completed_at": "2023-02-14T04:04:04.220451Z"}], "thread_id": "Thread-1", "execution_time": 0.9637930393218994, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:03.422057Z", "completed_at": "2023-02-14T04:04:04.296555Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:04.297090Z", "completed_at": "2023-02-14T04:04:04.297096Z"}], "thread_id": "Thread-4", "execution_time": 0.9591870307922363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:03.422161Z", "completed_at": "2023-02-14T04:04:04.297171Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:04.297663Z", "completed_at": "2023-02-14T04:04:04.297668Z"}], "thread_id": "Thread-2", "execution_time": 0.9593632221221924, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:03.411106Z", "completed_at": "2023-02-14T04:04:04.296374Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:04.296926Z", "completed_at": "2023-02-14T04:04:04.296943Z"}], "thread_id": "Thread-3", "execution_time": 0.9707317352294922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:04.301680Z", "completed_at": "2023-02-14T04:04:05.144728Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:05.144954Z", "completed_at": "2023-02-14T04:04:05.144963Z"}], "thread_id": "Thread-1", "execution_time": 0.951653242111206, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:04.383656Z", "completed_at": "2023-02-14T04:04:05.285729Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:05.286448Z", "completed_at": "2023-02-14T04:04:05.286456Z"}], "thread_id": "Thread-4", "execution_time": 0.9921588897705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:04.390329Z", "completed_at": "2023-02-14T04:04:05.286257Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:05.292573Z", "completed_at": "2023-02-14T04:04:05.292579Z"}], "thread_id": "Thread-3", "execution_time": 1.0006771087646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:04.383850Z", "completed_at": "2023-02-14T04:04:05.285919Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:05.292232Z", "completed_at": "2023-02-14T04:04:05.292248Z"}], "thread_id": "Thread-2", "execution_time": 1.0016932487487793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:05.286183Z", "completed_at": "2023-02-14T04:04:06.143736Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:06.144030Z", "completed_at": "2023-02-14T04:04:06.144045Z"}], "thread_id": "Thread-1", "execution_time": 0.9488000869750977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:05.375470Z", "completed_at": "2023-02-14T04:04:06.235112Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:06.267024Z", "completed_at": "2023-02-14T04:04:06.267032Z"}], "thread_id": "Thread-4", "execution_time": 0.9753327369689941, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:05.385962Z", "completed_at": "2023-02-14T04:04:06.267686Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:06.268068Z", "completed_at": "2023-02-14T04:04:06.268073Z"}], "thread_id": "Thread-2", "execution_time": 0.9653260707855225, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:05.385874Z", "completed_at": "2023-02-14T04:04:06.267784Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:06.268150Z", "completed_at": "2023-02-14T04:04:06.268154Z"}], "thread_id": "Thread-3", "execution_time": 0.9825880527496338, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:06.235018Z", "completed_at": "2023-02-14T04:04:07.127432Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:07.127806Z", "completed_at": "2023-02-14T04:04:07.127816Z"}], "thread_id": "Thread-1", "execution_time": 0.9798061847686768, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:06.352598Z", "completed_at": "2023-02-14T04:04:07.311304Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:07.311643Z", "completed_at": "2023-02-14T04:04:07.311647Z"}], "thread_id": "Thread-2", "execution_time": 1.0489370822906494, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:06.368968Z", "completed_at": "2023-02-14T04:04:07.310900Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:07.311104Z", "completed_at": "2023-02-14T04:04:07.311112Z"}], "thread_id": "Thread-3", "execution_time": 1.0330309867858887, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:06.352493Z", "completed_at": "2023-02-14T04:04:07.311412Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:07.311721Z", "completed_at": "2023-02-14T04:04:07.311725Z"}], "thread_id": "Thread-4", "execution_time": 1.050842046737671, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:07.215691Z", "completed_at": "2023-02-14T04:04:08.138544Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:08.138931Z", "completed_at": "2023-02-14T04:04:08.138952Z"}], "thread_id": "Thread-1", "execution_time": 1.006993055343628, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:07.405003Z", "completed_at": "2023-02-14T04:04:08.296054Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:08.296563Z", "completed_at": "2023-02-14T04:04:08.296571Z"}], "thread_id": "Thread-2", "execution_time": 0.9747426509857178, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:07.405194Z", "completed_at": "2023-02-14T04:04:08.296168Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:08.296648Z", "completed_at": "2023-02-14T04:04:08.296652Z"}], "thread_id": "Thread-4", "execution_time": 0.9743280410766602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:07.405102Z", "completed_at": "2023-02-14T04:04:08.296474Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:08.296980Z", "completed_at": "2023-02-14T04:04:08.296985Z"}], "thread_id": "Thread-3", "execution_time": 0.9914641380310059, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:08.222691Z", "completed_at": "2023-02-14T04:04:09.083155Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:09.083458Z", "completed_at": "2023-02-14T04:04:09.083469Z"}], "thread_id": "Thread-1", "execution_time": 0.9570772647857666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:08.380848Z", "completed_at": "2023-02-14T04:04:09.294133Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:09.294446Z", "completed_at": "2023-02-14T04:04:09.294452Z"}], "thread_id": "Thread-4", "execution_time": 0.9968540668487549, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:08.396641Z", "completed_at": "2023-02-14T04:04:09.271672Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:09.293715Z", "completed_at": "2023-02-14T04:04:09.293724Z"}], "thread_id": "Thread-3", "execution_time": 0.9812920093536377, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:08.380717Z", "completed_at": "2023-02-14T04:04:09.290610Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:09.293829Z", "completed_at": "2023-02-14T04:04:09.293833Z"}], "thread_id": "Thread-2", "execution_time": 0.9983611106872559, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:09.181570Z", "completed_at": "2023-02-14T04:04:10.053143Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.053567Z", "completed_at": "2023-02-14T04:04:10.053590Z"}], "thread_id": "Thread-1", "execution_time": 0.9569289684295654, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.141046Z", "completed_at": "2023-02-14T04:04:10.164730Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.165036Z", "completed_at": "2023-02-14T04:04:10.165046Z"}], "thread_id": "Thread-1", "execution_time": 0.02587890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.166570Z", "completed_at": "2023-02-14T04:04:10.175668Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.175927Z", "completed_at": "2023-02-14T04:04:10.175935Z"}], "thread_id": "Thread-1", "execution_time": 0.010331869125366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.177258Z", "completed_at": "2023-02-14T04:04:10.181420Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.181647Z", "completed_at": "2023-02-14T04:04:10.181653Z"}], "thread_id": "Thread-1", "execution_time": 0.00531005859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.182785Z", "completed_at": "2023-02-14T04:04:10.186757Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.186976Z", "completed_at": "2023-02-14T04:04:10.186982Z"}], "thread_id": "Thread-1", "execution_time": 0.004930019378662109, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.188015Z", "completed_at": "2023-02-14T04:04:10.190919Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.191121Z", "completed_at": "2023-02-14T04:04:10.191127Z"}], "thread_id": "Thread-1", "execution_time": 0.0037980079650878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.192140Z", "completed_at": "2023-02-14T04:04:10.200569Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.200781Z", "completed_at": "2023-02-14T04:04:10.200788Z"}], "thread_id": "Thread-1", "execution_time": 0.00932002067565918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.201761Z", "completed_at": "2023-02-14T04:04:10.206856Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.207037Z", "completed_at": "2023-02-14T04:04:10.207043Z"}], "thread_id": "Thread-1", "execution_time": 0.0059130191802978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.207950Z", "completed_at": "2023-02-14T04:04:10.211123Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.211311Z", "completed_at": "2023-02-14T04:04:10.211316Z"}], "thread_id": "Thread-1", "execution_time": 0.003966808319091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.212234Z", "completed_at": "2023-02-14T04:04:10.216619Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.216795Z", "completed_at": "2023-02-14T04:04:10.216800Z"}], "thread_id": "Thread-1", "execution_time": 0.005192995071411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.217682Z", "completed_at": "2023-02-14T04:04:10.240115Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.265031Z", "completed_at": "2023-02-14T04:04:10.265040Z"}], "thread_id": "Thread-1", "execution_time": 0.04851722717285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.267564Z", "completed_at": "2023-02-14T04:04:10.272434Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.272642Z", "completed_at": "2023-02-14T04:04:10.272647Z"}], "thread_id": "Thread-1", "execution_time": 0.0061130523681640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.273645Z", "completed_at": "2023-02-14T04:04:10.276965Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.277144Z", "completed_at": "2023-02-14T04:04:10.277149Z"}], "thread_id": "Thread-1", "execution_time": 0.0041539669036865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.278052Z", "completed_at": "2023-02-14T04:04:10.282025Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.282201Z", "completed_at": "2023-02-14T04:04:10.282206Z"}], "thread_id": "Thread-1", "execution_time": 0.00475311279296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.283082Z", "completed_at": "2023-02-14T04:04:10.286697Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.286870Z", "completed_at": "2023-02-14T04:04:10.286875Z"}], "thread_id": "Thread-1", "execution_time": 0.004387855529785156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.287752Z", "completed_at": "2023-02-14T04:04:10.293588Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.293766Z", "completed_at": "2023-02-14T04:04:10.293772Z"}], "thread_id": "Thread-1", "execution_time": 0.006615638732910156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.294672Z", "completed_at": "2023-02-14T04:04:10.299115Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.299291Z", "completed_at": "2023-02-14T04:04:10.299297Z"}], "thread_id": "Thread-1", "execution_time": 0.005234718322753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.300212Z", "completed_at": "2023-02-14T04:04:10.304124Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.304297Z", "completed_at": "2023-02-14T04:04:10.304303Z"}], "thread_id": "Thread-1", "execution_time": 0.0046842098236083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.305200Z", "completed_at": "2023-02-14T04:04:10.308248Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.308426Z", "completed_at": "2023-02-14T04:04:10.308431Z"}], "thread_id": "Thread-1", "execution_time": 0.0038340091705322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.309297Z", "completed_at": "2023-02-14T04:04:10.312301Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.312470Z", "completed_at": "2023-02-14T04:04:10.312474Z"}], "thread_id": "Thread-1", "execution_time": 0.003765106201171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.313330Z", "completed_at": "2023-02-14T04:04:10.318199Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.318377Z", "completed_at": "2023-02-14T04:04:10.318383Z"}], "thread_id": "Thread-1", "execution_time": 0.005651950836181641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:09.381210Z", "completed_at": "2023-02-14T04:04:10.265572Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.266738Z", "completed_at": "2023-02-14T04:04:10.266742Z"}], "thread_id": "Thread-3", "execution_time": 0.9816610813140869, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:09.381302Z", "completed_at": "2023-02-14T04:04:10.265262Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.266561Z", "completed_at": "2023-02-14T04:04:10.266567Z"}], "thread_id": "Thread-2", "execution_time": 0.9817030429840088, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:09.381100Z", "completed_at": "2023-02-14T04:04:10.265475Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.266653Z", "completed_at": "2023-02-14T04:04:10.266658Z"}], "thread_id": "Thread-4", "execution_time": 0.9828569889068604, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.319281Z", "completed_at": "2023-02-14T04:04:10.363626Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.364830Z", "completed_at": "2023-02-14T04:04:10.364837Z"}], "thread_id": "Thread-1", "execution_time": 0.050128936767578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.364661Z", "completed_at": "2023-02-14T04:04:10.376353Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.377308Z", "completed_at": "2023-02-14T04:04:10.377314Z"}], "thread_id": "Thread-3", "execution_time": 0.014672994613647461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.364922Z", "completed_at": "2023-02-14T04:04:10.377044Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.377997Z", "completed_at": "2023-02-14T04:04:10.378002Z"}], "thread_id": "Thread-2", "execution_time": 0.017750024795532227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.368788Z", "completed_at": "2023-02-14T04:04:10.377122Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.378084Z", "completed_at": "2023-02-14T04:04:10.378090Z"}], "thread_id": "Thread-4", "execution_time": 0.017639875411987305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.377564Z", "completed_at": "2023-02-14T04:04:10.382587Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.383763Z", "completed_at": "2023-02-14T04:04:10.383768Z"}], "thread_id": "Thread-1", "execution_time": 0.012553930282592773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.383490Z", "completed_at": "2023-02-14T04:04:10.395990Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.396869Z", "completed_at": "2023-02-14T04:04:10.396874Z"}], "thread_id": "Thread-3", "execution_time": 0.015340805053710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.388748Z", "completed_at": "2023-02-14T04:04:10.396617Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.397530Z", "completed_at": "2023-02-14T04:04:10.397535Z"}], "thread_id": "Thread-2", "execution_time": 0.018297910690307617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.388834Z", "completed_at": "2023-02-14T04:04:10.396686Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.397621Z", "completed_at": "2023-02-14T04:04:10.397626Z"}], "thread_id": "Thread-4", "execution_time": 0.018339872360229492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.397113Z", "completed_at": "2023-02-14T04:04:10.402087Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.403200Z", "completed_at": "2023-02-14T04:04:10.403206Z"}], "thread_id": "Thread-1", "execution_time": 0.010913848876953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.403028Z", "completed_at": "2023-02-14T04:04:10.411026Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.416746Z", "completed_at": "2023-02-14T04:04:10.416753Z"}], "thread_id": "Thread-3", "execution_time": 0.015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.406832Z", "completed_at": "2023-02-14T04:04:10.416555Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.417425Z", "completed_at": "2023-02-14T04:04:10.417429Z"}], "thread_id": "Thread-2", "execution_time": 0.019641876220703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.407266Z", "completed_at": "2023-02-14T04:04:10.416921Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.422201Z", "completed_at": "2023-02-14T04:04:10.422207Z"}], "thread_id": "Thread-4", "execution_time": 0.020242929458618164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.416998Z", "completed_at": "2023-02-14T04:04:10.423121Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.424225Z", "completed_at": "2023-02-14T04:04:10.424230Z"}], "thread_id": "Thread-1", "execution_time": 0.011570930480957031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.423801Z", "completed_at": "2023-02-14T04:04:10.431000Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.435452Z", "completed_at": "2023-02-14T04:04:10.435458Z"}], "thread_id": "Thread-3", "execution_time": 0.013614654541015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.427281Z", "completed_at": "2023-02-14T04:04:10.435244Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.436193Z", "completed_at": "2023-02-14T04:04:10.436198Z"}], "thread_id": "Thread-2", "execution_time": 0.016463041305541992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.430747Z", "completed_at": "2023-02-14T04:04:10.435530Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.439440Z", "completed_at": "2023-02-14T04:04:10.439447Z"}], "thread_id": "Thread-4", "execution_time": 0.016518354415893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.435697Z", "completed_at": "2023-02-14T04:04:10.440751Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.442027Z", "completed_at": "2023-02-14T04:04:10.442032Z"}], "thread_id": "Thread-1", "execution_time": 0.012606143951416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.441422Z", "completed_at": "2023-02-14T04:04:10.450885Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.454539Z", "completed_at": "2023-02-14T04:04:10.454544Z"}], "thread_id": "Thread-3", "execution_time": 0.015040159225463867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.447122Z", "completed_at": "2023-02-14T04:04:10.454338Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.455290Z", "completed_at": "2023-02-14T04:04:10.455295Z"}], "thread_id": "Thread-2", "execution_time": 0.019299983978271484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.447635Z", "completed_at": "2023-02-14T04:04:10.454607Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.460031Z", "completed_at": "2023-02-14T04:04:10.460037Z"}], "thread_id": "Thread-4", "execution_time": 0.019559144973754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.454768Z", "completed_at": "2023-02-14T04:04:10.461342Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.462446Z", "completed_at": "2023-02-14T04:04:10.462450Z"}], "thread_id": "Thread-1", "execution_time": 0.012028932571411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.462007Z", "completed_at": "2023-02-14T04:04:10.470086Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.474897Z", "completed_at": "2023-02-14T04:04:10.474903Z"}], "thread_id": "Thread-3", "execution_time": 0.014857053756713867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.465667Z", "completed_at": "2023-02-14T04:04:10.474703Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.475570Z", "completed_at": "2023-02-14T04:04:10.475575Z"}], "thread_id": "Thread-2", "execution_time": 0.017356157302856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.466124Z", "completed_at": "2023-02-14T04:04:10.475071Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.479164Z", "completed_at": "2023-02-14T04:04:10.479168Z"}], "thread_id": "Thread-4", "execution_time": 0.01784992218017578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.475147Z", "completed_at": "2023-02-14T04:04:10.480058Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.481201Z", "completed_at": "2023-02-14T04:04:10.481206Z"}], "thread_id": "Thread-1", "execution_time": 0.00994420051574707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.480785Z", "completed_at": "2023-02-14T04:04:10.487473Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.492009Z", "completed_at": "2023-02-14T04:04:10.492015Z"}], "thread_id": "Thread-3", "execution_time": 0.01320505142211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.483828Z", "completed_at": "2023-02-14T04:04:10.491585Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.492242Z", "completed_at": "2023-02-14T04:04:10.492246Z"}], "thread_id": "Thread-2", "execution_time": 0.016647815704345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.487229Z", "completed_at": "2023-02-14T04:04:10.492080Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.497180Z", "completed_at": "2023-02-14T04:04:10.497185Z"}], "thread_id": "Thread-4", "execution_time": 0.017201900482177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.492156Z", "completed_at": "2023-02-14T04:04:10.497890Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.499045Z", "completed_at": "2023-02-14T04:04:10.499050Z"}], "thread_id": "Thread-1", "execution_time": 0.012376070022583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.498965Z", "completed_at": "2023-02-14T04:04:10.507193Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.510567Z", "completed_at": "2023-02-14T04:04:10.510574Z"}], "thread_id": "Thread-3", "execution_time": 0.013494014739990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.499389Z", "completed_at": "2023-02-14T04:04:10.510145Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.510802Z", "completed_at": "2023-02-14T04:04:10.510806Z"}], "thread_id": "Thread-2", "execution_time": 0.0167849063873291, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.507064Z", "completed_at": "2023-02-14T04:04:10.510640Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.515417Z", "completed_at": "2023-02-14T04:04:10.515423Z"}], "thread_id": "Thread-4", "execution_time": 0.017128944396972656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.510721Z", "completed_at": "2023-02-14T04:04:10.515992Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.517126Z", "completed_at": "2023-02-14T04:04:10.517131Z"}], "thread_id": "Thread-1", "execution_time": 0.013772010803222656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.517049Z", "completed_at": "2023-02-14T04:04:10.526778Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.531863Z", "completed_at": "2023-02-14T04:04:10.531870Z"}], "thread_id": "Thread-3", "execution_time": 0.016686201095581055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.517463Z", "completed_at": "2023-02-14T04:04:10.531635Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.532566Z", "completed_at": "2023-02-14T04:04:10.532571Z"}], "thread_id": "Thread-2", "execution_time": 0.020385026931762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.526704Z", "completed_at": "2023-02-14T04:04:10.532132Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.536983Z", "completed_at": "2023-02-14T04:04:10.536988Z"}], "thread_id": "Thread-4", "execution_time": 0.020576000213623047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.532070Z", "completed_at": "2023-02-14T04:04:10.537509Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.538683Z", "completed_at": "2023-02-14T04:04:10.538688Z"}], "thread_id": "Thread-1", "execution_time": 0.015460014343261719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.538520Z", "completed_at": "2023-02-14T04:04:10.546868Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.550610Z", "completed_at": "2023-02-14T04:04:10.550617Z"}], "thread_id": "Thread-3", "execution_time": 0.014050006866455078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.542086Z", "completed_at": "2023-02-14T04:04:10.547491Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.551301Z", "completed_at": "2023-02-14T04:04:10.551305Z"}], "thread_id": "Thread-2", "execution_time": 0.018618106842041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.546935Z", "completed_at": "2023-02-14T04:04:10.551367Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.557398Z", "completed_at": "2023-02-14T04:04:10.557403Z"}], "thread_id": "Thread-4", "execution_time": 0.019327402114868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.550838Z", "completed_at": "2023-02-14T04:04:10.557467Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.558669Z", "completed_at": "2023-02-14T04:04:10.558674Z"}], "thread_id": "Thread-1", "execution_time": 0.017177820205688477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.558339Z", "completed_at": "2023-02-14T04:04:10.568465Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.572178Z", "completed_at": "2023-02-14T04:04:10.572184Z"}], "thread_id": "Thread-3", "execution_time": 0.015767812728881836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.563711Z", "completed_at": "2023-02-14T04:04:10.572009Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.572954Z", "completed_at": "2023-02-14T04:04:10.572961Z"}], "thread_id": "Thread-2", "execution_time": 0.019945144653320312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.568660Z", "completed_at": "2023-02-14T04:04:10.572862Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.578105Z", "completed_at": "2023-02-14T04:04:10.578110Z"}], "thread_id": "Thread-4", "execution_time": 0.014883995056152344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.572414Z", "completed_at": "2023-02-14T04:04:10.578335Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.579512Z", "completed_at": "2023-02-14T04:04:10.579517Z"}], "thread_id": "Thread-1", "execution_time": 0.015290975570678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.579195Z", "completed_at": "2023-02-14T04:04:10.588222Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.591595Z", "completed_at": "2023-02-14T04:04:10.591601Z"}], "thread_id": "Thread-3", "execution_time": 0.0143280029296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.583751Z", "completed_at": "2023-02-14T04:04:10.591398Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.592339Z", "completed_at": "2023-02-14T04:04:10.592344Z"}], "thread_id": "Thread-2", "execution_time": 0.016561031341552734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.588315Z", "completed_at": "2023-02-14T04:04:10.592269Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.595901Z", "completed_at": "2023-02-14T04:04:10.595906Z"}], "thread_id": "Thread-4", "execution_time": 0.012996196746826172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.591829Z", "completed_at": "2023-02-14T04:04:10.596113Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.597262Z", "completed_at": "2023-02-14T04:04:10.597266Z"}], "thread_id": "Thread-1", "execution_time": 0.013705968856811523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.596957Z", "completed_at": "2023-02-14T04:04:10.605558Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.610382Z", "completed_at": "2023-02-14T04:04:10.610388Z"}], "thread_id": "Thread-3", "execution_time": 0.01533198356628418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.601883Z", "completed_at": "2023-02-14T04:04:10.610184Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.611147Z", "completed_at": "2023-02-14T04:04:10.611152Z"}], "thread_id": "Thread-2", "execution_time": 0.019068241119384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.605664Z", "completed_at": "2023-02-14T04:04:10.611081Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.616183Z", "completed_at": "2023-02-14T04:04:10.616189Z"}], "thread_id": "Thread-4", "execution_time": 0.01515507698059082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.610645Z", "completed_at": "2023-02-14T04:04:10.616402Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.617556Z", "completed_at": "2023-02-14T04:04:10.617560Z"}], "thread_id": "Thread-1", "execution_time": 0.01615309715270996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.617258Z", "completed_at": "2023-02-14T04:04:10.625371Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.629808Z", "completed_at": "2023-02-14T04:04:10.629815Z"}], "thread_id": "Thread-3", "execution_time": 0.014497995376586914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.621696Z", "completed_at": "2023-02-14T04:04:10.629598Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.630622Z", "completed_at": "2023-02-14T04:04:10.630627Z"}], "thread_id": "Thread-2", "execution_time": 0.017673969268798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.625476Z", "completed_at": "2023-02-14T04:04:10.630537Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.635061Z", "completed_at": "2023-02-14T04:04:10.635066Z"}], "thread_id": "Thread-4", "execution_time": 0.014204025268554688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.630068Z", "completed_at": "2023-02-14T04:04:10.635274Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.636444Z", "completed_at": "2023-02-14T04:04:10.636449Z"}], "thread_id": "Thread-1", "execution_time": 0.015384197235107422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.636134Z", "completed_at": "2023-02-14T04:04:10.645794Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.650397Z", "completed_at": "2023-02-14T04:04:10.650405Z"}], "thread_id": "Thread-3", "execution_time": 0.016216039657592773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.640712Z", "completed_at": "2023-02-14T04:04:10.650228Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.651248Z", "completed_at": "2023-02-14T04:04:10.651253Z"}], "thread_id": "Thread-2", "execution_time": 0.020561933517456055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.645893Z", "completed_at": "2023-02-14T04:04:10.651136Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.656895Z", "completed_at": "2023-02-14T04:04:10.656902Z"}], "thread_id": "Thread-4", "execution_time": 0.017166852951049805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.650641Z", "completed_at": "2023-02-14T04:04:10.657156Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.658391Z", "completed_at": "2023-02-14T04:04:10.658396Z"}], "thread_id": "Thread-1", "execution_time": 0.016089916229248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.658098Z", "completed_at": "2023-02-14T04:04:10.665447Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.670501Z", "completed_at": "2023-02-14T04:04:10.670508Z"}], "thread_id": "Thread-3", "execution_time": 0.014473915100097656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.661854Z", "completed_at": "2023-02-14T04:04:10.670424Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.671403Z", "completed_at": "2023-02-14T04:04:10.671407Z"}], "thread_id": "Thread-2", "execution_time": 0.018986940383911133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.665686Z", "completed_at": "2023-02-14T04:04:10.671244Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.677138Z", "completed_at": "2023-02-14T04:04:10.677144Z"}], "thread_id": "Thread-4", "execution_time": 0.016252994537353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.671312Z", "completed_at": "2023-02-14T04:04:10.677538Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.681681Z", "completed_at": "2023-02-14T04:04:10.681688Z"}], "thread_id": "Thread-1", "execution_time": 0.016447067260742188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.678256Z", "completed_at": "2023-02-14T04:04:10.685650Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.690278Z", "completed_at": "2023-02-14T04:04:10.690285Z"}], "thread_id": "Thread-3", "execution_time": 0.01391911506652832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.682069Z", "completed_at": "2023-02-14T04:04:10.690360Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.691342Z", "completed_at": "2023-02-14T04:04:10.691347Z"}], "thread_id": "Thread-2", "execution_time": 0.016920089721679688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.685907Z", "completed_at": "2023-02-14T04:04:10.691110Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.695099Z", "completed_at": "2023-02-14T04:04:10.695105Z"}], "thread_id": "Thread-4", "execution_time": 0.013904094696044922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.691048Z", "completed_at": "2023-02-14T04:04:10.695286Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.699429Z", "completed_at": "2023-02-14T04:04:10.699436Z"}], "thread_id": "Thread-1", "execution_time": 0.013996124267578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.695823Z", "completed_at": "2023-02-14T04:04:10.700496Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.708964Z", "completed_at": "2023-02-14T04:04:10.708972Z"}], "thread_id": "Thread-3", "execution_time": 0.015033721923828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.700321Z", "completed_at": "2023-02-14T04:04:10.709158Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.728764Z", "completed_at": "2023-02-14T04:04:10.728781Z"}], "thread_id": "Thread-2", "execution_time": 0.033661842346191406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.704373Z", "completed_at": "2023-02-14T04:04:10.709815Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.729905Z", "completed_at": "2023-02-14T04:04:10.729912Z"}], "thread_id": "Thread-4", "execution_time": 0.031271934509277344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.709644Z", "completed_at": "2023-02-14T04:04:10.730520Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.741994Z", "completed_at": "2023-02-14T04:04:10.742004Z"}], "thread_id": "Thread-1", "execution_time": 0.038278818130493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.731248Z", "completed_at": "2023-02-14T04:04:10.743199Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.780927Z", "completed_at": "2023-02-14T04:04:10.780939Z"}], "thread_id": "Thread-3", "execution_time": 0.05244326591491699, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.773709Z", "completed_at": "2023-02-14T04:04:10.786726Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.787016Z", "completed_at": "2023-02-14T04:04:10.787025Z"}], "thread_id": "Thread-4", "execution_time": 0.0452418327331543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.781960Z", "completed_at": "2023-02-14T04:04:10.787677Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.788258Z", "completed_at": "2023-02-14T04:04:10.788264Z"}], "thread_id": "Thread-1", "execution_time": 0.014654874801635742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.788818Z", "completed_at": "2023-02-14T04:04:10.792695Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.792889Z", "completed_at": "2023-02-14T04:04:10.792897Z"}], "thread_id": "Thread-3", "execution_time": 0.005233049392700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.794046Z", "completed_at": "2023-02-14T04:04:10.799291Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:10.799496Z", "completed_at": "2023-02-14T04:04:10.799505Z"}], "thread_id": "Thread-4", "execution_time": 0.0061359405517578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:10.742509Z", "completed_at": "2023-02-14T04:04:12.670577Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:12.670862Z", "completed_at": "2023-02-14T04:04:12.670872Z"}], "thread_id": "Thread-2", "execution_time": 2.0226008892059326, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:12.757114Z", "completed_at": "2023-02-14T04:04:12.781239Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:12.781483Z", "completed_at": "2023-02-14T04:04:12.781491Z"}], "thread_id": "Thread-1", "execution_time": 0.025722742080688477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:12.756965Z", "completed_at": "2023-02-14T04:04:13.965176Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:13.965486Z", "completed_at": "2023-02-14T04:04:13.965496Z"}], "thread_id": "Thread-3", "execution_time": 1.292569875717163, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.050138Z", "completed_at": "2023-02-14T04:04:14.058307Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.058624Z", "completed_at": "2023-02-14T04:04:14.058634Z"}], "thread_id": "Thread-2", "execution_time": 0.009929895401000977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.060393Z", "completed_at": "2023-02-14T04:04:14.071958Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.072208Z", "completed_at": "2023-02-14T04:04:14.072216Z"}], "thread_id": "Thread-1", "execution_time": 0.012820959091186523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.073746Z", "completed_at": "2023-02-14T04:04:14.079265Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.079492Z", "completed_at": "2023-02-14T04:04:14.079500Z"}], "thread_id": "Thread-4", "execution_time": 0.006620883941650391, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.082575Z", "completed_at": "2023-02-14T04:04:14.093844Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.094297Z", "completed_at": "2023-02-14T04:04:14.094304Z"}], "thread_id": "Thread-3", "execution_time": 0.014095067977905273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.082675Z", "completed_at": "2023-02-14T04:04:14.094087Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.095170Z", "completed_at": "2023-02-14T04:04:14.095175Z"}], "thread_id": "Thread-1", "execution_time": 0.014702081680297852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.082869Z", "completed_at": "2023-02-14T04:04:14.094183Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.095267Z", "completed_at": "2023-02-14T04:04:14.095271Z"}], "thread_id": "Thread-4", "execution_time": 0.014413118362426758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.082773Z", "completed_at": "2023-02-14T04:04:14.094390Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.095511Z", "completed_at": "2023-02-14T04:04:14.095517Z"}], "thread_id": "Thread-2", "execution_time": 0.015447139739990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.097585Z", "completed_at": "2023-02-14T04:04:14.104242Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.120523Z", "completed_at": "2023-02-14T04:04:14.120530Z"}], "thread_id": "Thread-3", "execution_time": 0.02473282814025879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.103946Z", "completed_at": "2023-02-14T04:04:14.120438Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.121381Z", "completed_at": "2023-02-14T04:04:14.121385Z"}], "thread_id": "Thread-1", "execution_time": 0.02418828010559082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.109786Z", "completed_at": "2023-02-14T04:04:14.120844Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.122116Z", "completed_at": "2023-02-14T04:04:14.122121Z"}], "thread_id": "Thread-4", "execution_time": 0.0193479061126709, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.109879Z", "completed_at": "2023-02-14T04:04:14.121310Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.122206Z", "completed_at": "2023-02-14T04:04:14.122211Z"}], "thread_id": "Thread-2", "execution_time": 0.019375085830688477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.123571Z", "completed_at": "2023-02-14T04:04:14.125854Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.126029Z", "completed_at": "2023-02-14T04:04:14.126034Z"}], "thread_id": "Thread-3", "execution_time": 0.003056764602661133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.127627Z", "completed_at": "2023-02-14T04:04:14.135072Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.135414Z", "completed_at": "2023-02-14T04:04:14.135420Z"}], "thread_id": "Thread-1", "execution_time": 0.008647918701171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T04:04:14.127551Z", "completed_at": "2023-02-14T04:04:14.135144Z"}, {"name": "execute", "started_at": "2023-02-14T04:04:14.135498Z", "completed_at": "2023-02-14T04:04:14.135503Z"}], "thread_id": "Thread-4", "execution_time": 0.009241104125976562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a"}], "elapsed_time": 15.876301050186157, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T19:09:13.052917Z", "invocation_id": "740b6cd8-3bf3-4a2b-99f7-4f7af9e39f64", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:08:59.940138Z", "completed_at": "2023-02-14T19:08:59.973761Z"}, {"name": "execute", "started_at": "2023-02-14T19:08:59.974082Z", "completed_at": "2023-02-14T19:08:59.974103Z"}], "thread_id": "Thread-3", "execution_time": 0.03611612319946289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:08:59.939922Z", "completed_at": "2023-02-14T19:08:59.974218Z"}, {"name": "execute", "started_at": "2023-02-14T19:08:59.975448Z", "completed_at": "2023-02-14T19:08:59.975452Z"}], "thread_id": "Thread-1", "execution_time": 0.038588762283325195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:08:59.940036Z", "completed_at": "2023-02-14T19:08:59.974299Z"}, {"name": "execute", "started_at": "2023-02-14T19:08:59.975539Z", "completed_at": "2023-02-14T19:08:59.975543Z"}], "thread_id": "Thread-2", "execution_time": 0.03839516639709473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:08:59.940237Z", "completed_at": "2023-02-14T19:08:59.974367Z"}, {"name": "execute", "started_at": "2023-02-14T19:08:59.975626Z", "completed_at": "2023-02-14T19:08:59.975630Z"}], "thread_id": "Thread-4", "execution_time": 0.037843942642211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:08:59.977720Z", "completed_at": "2023-02-14T19:09:00.019973Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.024276Z", "completed_at": "2023-02-14T19:09:00.024284Z"}], "thread_id": "Thread-3", "execution_time": 0.04917311668395996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.012690Z", "completed_at": "2023-02-14T19:09:00.024018Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.025045Z", "completed_at": "2023-02-14T19:09:00.025049Z"}], "thread_id": "Thread-4", "execution_time": 0.0473790168762207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.012605Z", "completed_at": "2023-02-14T19:09:00.024165Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.025218Z", "completed_at": "2023-02-14T19:09:00.025221Z"}], "thread_id": "Thread-2", "execution_time": 0.04808402061462402, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.012362Z", "completed_at": "2023-02-14T19:09:00.024466Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.025916Z", "completed_at": "2023-02-14T19:09:00.025920Z"}], "thread_id": "Thread-1", "execution_time": 0.049169063568115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.028247Z", "completed_at": "2023-02-14T19:09:00.037192Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.045095Z", "completed_at": "2023-02-14T19:09:00.045102Z"}], "thread_id": "Thread-3", "execution_time": 0.019273042678833008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.032895Z", "completed_at": "2023-02-14T19:09:00.044893Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.045934Z", "completed_at": "2023-02-14T19:09:00.045939Z"}], "thread_id": "Thread-4", "execution_time": 0.019221067428588867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.033095Z", "completed_at": "2023-02-14T19:09:00.045769Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.047086Z", "completed_at": "2023-02-14T19:09:00.047090Z"}], "thread_id": "Thread-2", "execution_time": 0.019783973693847656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.037091Z", "completed_at": "2023-02-14T19:09:00.045834Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.047171Z", "completed_at": "2023-02-14T19:09:00.047176Z"}], "thread_id": "Thread-1", "execution_time": 0.019587278366088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.048484Z", "completed_at": "2023-02-14T19:09:00.057409Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.064816Z", "completed_at": "2023-02-14T19:09:00.064822Z"}], "thread_id": "Thread-3", "execution_time": 0.01870274543762207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.053260Z", "completed_at": "2023-02-14T19:09:00.064661Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.065690Z", "completed_at": "2023-02-14T19:09:00.065694Z"}], "thread_id": "Thread-4", "execution_time": 0.01816701889038086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.057340Z", "completed_at": "2023-02-14T19:09:00.065078Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.066532Z", "completed_at": "2023-02-14T19:09:00.066536Z"}], "thread_id": "Thread-2", "execution_time": 0.014739990234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.057499Z", "completed_at": "2023-02-14T19:09:00.065222Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.066625Z", "completed_at": "2023-02-14T19:09:00.066629Z"}], "thread_id": "Thread-1", "execution_time": 0.01476907730102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.068575Z", "completed_at": "2023-02-14T19:09:00.077748Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.085203Z", "completed_at": "2023-02-14T19:09:00.085209Z"}], "thread_id": "Thread-3", "execution_time": 0.019057035446166992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.073808Z", "completed_at": "2023-02-14T19:09:00.081663Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.085967Z", "completed_at": "2023-02-14T19:09:00.085971Z"}], "thread_id": "Thread-4", "execution_time": 0.01874685287475586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.077677Z", "completed_at": "2023-02-14T19:09:00.085456Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.086942Z", "completed_at": "2023-02-14T19:09:00.086946Z"}], "thread_id": "Thread-2", "execution_time": 0.019132137298583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.077847Z", "completed_at": "2023-02-14T19:09:00.086038Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.087592Z", "completed_at": "2023-02-14T19:09:00.087596Z"}], "thread_id": "Thread-1", "execution_time": 0.01954507827758789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.088920Z", "completed_at": "2023-02-14T19:09:00.097005Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.105221Z", "completed_at": "2023-02-14T19:09:00.105228Z"}], "thread_id": "Thread-3", "execution_time": 0.01873302459716797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.093183Z", "completed_at": "2023-02-14T19:09:00.101564Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.105955Z", "completed_at": "2023-02-14T19:09:00.105960Z"}], "thread_id": "Thread-4", "execution_time": 0.018543004989624023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.096934Z", "completed_at": "2023-02-14T19:09:00.105425Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.106795Z", "completed_at": "2023-02-14T19:09:00.106799Z"}], "thread_id": "Thread-2", "execution_time": 0.018266916275024414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.097138Z", "completed_at": "2023-02-14T19:09:00.106127Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.107742Z", "completed_at": "2023-02-14T19:09:00.107746Z"}], "thread_id": "Thread-1", "execution_time": 0.015258073806762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.108672Z", "completed_at": "2023-02-14T19:09:00.117025Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.120825Z", "completed_at": "2023-02-14T19:09:00.120831Z"}], "thread_id": "Thread-3", "execution_time": 0.017479896545410156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.112948Z", "completed_at": "2023-02-14T19:09:00.120599Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.124613Z", "completed_at": "2023-02-14T19:09:00.124617Z"}], "thread_id": "Thread-4", "execution_time": 0.017488956451416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.116955Z", "completed_at": "2023-02-14T19:09:00.124160Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.125546Z", "completed_at": "2023-02-14T19:09:00.125550Z"}], "thread_id": "Thread-2", "execution_time": 0.01754593849182129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.120692Z", "completed_at": "2023-02-14T19:09:00.125065Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.126608Z", "completed_at": "2023-02-14T19:09:00.126612Z"}], "thread_id": "Thread-1", "execution_time": 0.014297246932983398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.127140Z", "completed_at": "2023-02-14T19:09:00.137078Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.142021Z", "completed_at": "2023-02-14T19:09:00.142029Z"}], "thread_id": "Thread-3", "execution_time": 0.021175861358642578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.132698Z", "completed_at": "2023-02-14T19:09:00.141912Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.147158Z", "completed_at": "2023-02-14T19:09:00.147170Z"}], "thread_id": "Thread-4", "execution_time": 0.02146315574645996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.137245Z", "completed_at": "2023-02-14T19:09:00.146284Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.148373Z", "completed_at": "2023-02-14T19:09:00.148379Z"}], "thread_id": "Thread-2", "execution_time": 0.020991086959838867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.141818Z", "completed_at": "2023-02-14T19:09:00.147702Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.150568Z", "completed_at": "2023-02-14T19:09:00.150575Z"}], "thread_id": "Thread-1", "execution_time": 0.01810622215270996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.150675Z", "completed_at": "2023-02-14T19:09:00.165620Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.166604Z", "completed_at": "2023-02-14T19:09:00.166611Z"}], "thread_id": "Thread-3", "execution_time": 0.018297910690307617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.155742Z", "completed_at": "2023-02-14T19:09:00.166451Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.170719Z", "completed_at": "2023-02-14T19:09:00.170724Z"}], "thread_id": "Thread-2", "execution_time": 0.02122974395751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.155596Z", "completed_at": "2023-02-14T19:09:00.166520Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.170824Z", "completed_at": "2023-02-14T19:09:00.170829Z"}], "thread_id": "Thread-4", "execution_time": 0.021944761276245117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.166710Z", "completed_at": "2023-02-14T19:09:00.172313Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.173654Z", "completed_at": "2023-02-14T19:09:00.173658Z"}], "thread_id": "Thread-1", "execution_time": 0.009797096252441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.173571Z", "completed_at": "2023-02-14T19:09:00.175839Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.179209Z", "completed_at": "2023-02-14T19:09:00.179214Z"}], "thread_id": "Thread-3", "execution_time": 0.007691860198974609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.175672Z", "completed_at": "2023-02-14T19:09:00.179040Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.179979Z", "completed_at": "2023-02-14T19:09:00.179983Z"}], "thread_id": "Thread-2", "execution_time": 0.008758068084716797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.175760Z", "completed_at": "2023-02-14T19:09:00.179125Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.180060Z", "completed_at": "2023-02-14T19:09:00.180063Z"}], "thread_id": "Thread-4", "execution_time": 0.008827924728393555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.179883Z", "completed_at": "2023-02-14T19:09:00.182526Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.183741Z", "completed_at": "2023-02-14T19:09:00.183745Z"}], "thread_id": "Thread-1", "execution_time": 0.0075762271881103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.183661Z", "completed_at": "2023-02-14T19:09:00.186720Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.190062Z", "completed_at": "2023-02-14T19:09:00.190067Z"}], "thread_id": "Thread-3", "execution_time": 0.00838613510131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.186509Z", "completed_at": "2023-02-14T19:09:00.189903Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.190864Z", "completed_at": "2023-02-14T19:09:00.190868Z"}], "thread_id": "Thread-2", "execution_time": 0.009401082992553711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.186609Z", "completed_at": "2023-02-14T19:09:00.189981Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.190947Z", "completed_at": "2023-02-14T19:09:00.190950Z"}], "thread_id": "Thread-4", "execution_time": 0.00945591926574707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.190783Z", "completed_at": "2023-02-14T19:09:00.193232Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.194474Z", "completed_at": "2023-02-14T19:09:00.194478Z"}], "thread_id": "Thread-1", "execution_time": 0.006426095962524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.194397Z", "completed_at": "2023-02-14T19:09:00.196345Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.199538Z", "completed_at": "2023-02-14T19:09:00.199543Z"}], "thread_id": "Thread-3", "execution_time": 0.0070819854736328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.196188Z", "completed_at": "2023-02-14T19:09:00.199385Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.200257Z", "completed_at": "2023-02-14T19:09:00.200261Z"}], "thread_id": "Thread-2", "execution_time": 0.008954286575317383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.196266Z", "completed_at": "2023-02-14T19:09:00.199465Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.200337Z", "completed_at": "2023-02-14T19:09:00.200341Z"}], "thread_id": "Thread-4", "execution_time": 0.009009122848510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.200181Z", "completed_at": "2023-02-14T19:09:00.203429Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.204754Z", "completed_at": "2023-02-14T19:09:00.204759Z"}], "thread_id": "Thread-1", "execution_time": 0.007398128509521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.204671Z", "completed_at": "2023-02-14T19:09:00.206804Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.209861Z", "completed_at": "2023-02-14T19:09:00.209866Z"}], "thread_id": "Thread-3", "execution_time": 0.007183074951171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.206647Z", "completed_at": "2023-02-14T19:09:00.209703Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.210564Z", "completed_at": "2023-02-14T19:09:00.210568Z"}], "thread_id": "Thread-2", "execution_time": 0.008178234100341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.206729Z", "completed_at": "2023-02-14T19:09:00.209783Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.210644Z", "completed_at": "2023-02-14T19:09:00.210647Z"}], "thread_id": "Thread-4", "execution_time": 0.008183002471923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.210488Z", "completed_at": "2023-02-14T19:09:00.212966Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.214129Z", "completed_at": "2023-02-14T19:09:00.214134Z"}], "thread_id": "Thread-1", "execution_time": 0.006373882293701172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.214052Z", "completed_at": "2023-02-14T19:09:00.216099Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.220006Z", "completed_at": "2023-02-14T19:09:00.220013Z"}], "thread_id": "Thread-3", "execution_time": 0.008025169372558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.215947Z", "completed_at": "2023-02-14T19:09:00.219821Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.221014Z", "completed_at": "2023-02-14T19:09:00.221019Z"}], "thread_id": "Thread-2", "execution_time": 0.00945591926574707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.216025Z", "completed_at": "2023-02-14T19:09:00.219906Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.221099Z", "completed_at": "2023-02-14T19:09:00.221102Z"}], "thread_id": "Thread-4", "execution_time": 0.00951695442199707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.220929Z", "completed_at": "2023-02-14T19:09:00.223834Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.224977Z", "completed_at": "2023-02-14T19:09:00.224981Z"}], "thread_id": "Thread-1", "execution_time": 0.007125139236450195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.224898Z", "completed_at": "2023-02-14T19:09:00.226951Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.230513Z", "completed_at": "2023-02-14T19:09:00.230523Z"}], "thread_id": "Thread-3", "execution_time": 0.007556915283203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.226798Z", "completed_at": "2023-02-14T19:09:00.230355Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.231280Z", "completed_at": "2023-02-14T19:09:00.231285Z"}], "thread_id": "Thread-2", "execution_time": 0.008820772171020508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.226876Z", "completed_at": "2023-02-14T19:09:00.230435Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.231365Z", "completed_at": "2023-02-14T19:09:00.231368Z"}], "thread_id": "Thread-4", "execution_time": 0.008889913558959961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.231190Z", "completed_at": "2023-02-14T19:09:00.233944Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.235313Z", "completed_at": "2023-02-14T19:09:00.235318Z"}], "thread_id": "Thread-1", "execution_time": 0.008209705352783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.235218Z", "completed_at": "2023-02-14T19:09:00.238576Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.241760Z", "completed_at": "2023-02-14T19:09:00.241765Z"}], "thread_id": "Thread-3", "execution_time": 0.008566856384277344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.238403Z", "completed_at": "2023-02-14T19:09:00.241607Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.242452Z", "completed_at": "2023-02-14T19:09:00.242456Z"}], "thread_id": "Thread-2", "execution_time": 0.009549856185913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.238492Z", "completed_at": "2023-02-14T19:09:00.241684Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.242532Z", "completed_at": "2023-02-14T19:09:00.242535Z"}], "thread_id": "Thread-4", "execution_time": 0.009570121765136719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.242377Z", "completed_at": "2023-02-14T19:09:00.244892Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.246009Z", "completed_at": "2023-02-14T19:09:00.246013Z"}], "thread_id": "Thread-1", "execution_time": 0.006374835968017578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.245932Z", "completed_at": "2023-02-14T19:09:00.247994Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.251776Z", "completed_at": "2023-02-14T19:09:00.251780Z"}], "thread_id": "Thread-3", "execution_time": 0.007662773132324219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.247839Z", "completed_at": "2023-02-14T19:09:00.251624Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.252511Z", "completed_at": "2023-02-14T19:09:00.252514Z"}], "thread_id": "Thread-2", "execution_time": 0.008782148361206055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.247918Z", "completed_at": "2023-02-14T19:09:00.251702Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.252591Z", "completed_at": "2023-02-14T19:09:00.252595Z"}], "thread_id": "Thread-4", "execution_time": 0.00884103775024414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.252428Z", "completed_at": "2023-02-14T19:09:00.254919Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.256029Z", "completed_at": "2023-02-14T19:09:00.256034Z"}], "thread_id": "Thread-1", "execution_time": 0.006281137466430664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.255954Z", "completed_at": "2023-02-14T19:09:00.258000Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.261021Z", "completed_at": "2023-02-14T19:09:00.261025Z"}], "thread_id": "Thread-3", "execution_time": 0.0068509578704833984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.257772Z", "completed_at": "2023-02-14T19:09:00.260870Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.261748Z", "completed_at": "2023-02-14T19:09:00.261753Z"}], "thread_id": "Thread-2", "execution_time": 0.008088111877441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.257851Z", "completed_at": "2023-02-14T19:09:00.260945Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.261842Z", "completed_at": "2023-02-14T19:09:00.261845Z"}], "thread_id": "Thread-4", "execution_time": 0.008140087127685547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.261652Z", "completed_at": "2023-02-14T19:09:00.264227Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.265333Z", "completed_at": "2023-02-14T19:09:00.265337Z"}], "thread_id": "Thread-1", "execution_time": 0.006391048431396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.265256Z", "completed_at": "2023-02-14T19:09:00.267290Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.271154Z", "completed_at": "2023-02-14T19:09:00.271157Z"}], "thread_id": "Thread-3", "execution_time": 0.0076558589935302734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.267136Z", "completed_at": "2023-02-14T19:09:00.270997Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.271916Z", "completed_at": "2023-02-14T19:09:00.271919Z"}], "thread_id": "Thread-2", "execution_time": 0.014024972915649414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.267214Z", "completed_at": "2023-02-14T19:09:00.271075Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.271994Z", "completed_at": "2023-02-14T19:09:00.271998Z"}], "thread_id": "Thread-4", "execution_time": 0.0164949893951416, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.271836Z", "completed_at": "2023-02-14T19:09:01.153860Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:01.154117Z", "completed_at": "2023-02-14T19:09:01.154127Z"}], "thread_id": "Thread-1", "execution_time": 0.9641017913818359, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.288294Z", "completed_at": "2023-02-14T19:09:01.200876Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:01.202691Z", "completed_at": "2023-02-14T19:09:01.202698Z"}], "thread_id": "Thread-2", "execution_time": 1.0019361972808838, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.283025Z", "completed_at": "2023-02-14T19:09:01.202882Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:01.203379Z", "completed_at": "2023-02-14T19:09:01.203386Z"}], "thread_id": "Thread-3", "execution_time": 1.0115928649902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.288379Z", "completed_at": "2023-02-14T19:09:01.202548Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:01.203073Z", "completed_at": "2023-02-14T19:09:01.203078Z"}], "thread_id": "Thread-4", "execution_time": 1.0109641551971436, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:01.235922Z", "completed_at": "2023-02-14T19:09:02.082483Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:02.082847Z", "completed_at": "2023-02-14T19:09:02.082858Z"}], "thread_id": "Thread-1", "execution_time": 0.9339370727539062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:01.285475Z", "completed_at": "2023-02-14T19:09:02.116204Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:02.116495Z", "completed_at": "2023-02-14T19:09:02.116504Z"}], "thread_id": "Thread-2", "execution_time": 0.9509007930755615, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:01.295535Z", "completed_at": "2023-02-14T19:09:02.238542Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:02.239210Z", "completed_at": "2023-02-14T19:09:02.239216Z"}], "thread_id": "Thread-3", "execution_time": 1.033743143081665, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:01.295627Z", "completed_at": "2023-02-14T19:09:02.238764Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:02.246333Z", "completed_at": "2023-02-14T19:09:02.246339Z"}], "thread_id": "Thread-4", "execution_time": 1.043917179107666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:02.171213Z", "completed_at": "2023-02-14T19:09:03.003498Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.003767Z", "completed_at": "2023-02-14T19:09:03.003776Z"}], "thread_id": "Thread-1", "execution_time": 0.9190218448638916, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:02.238969Z", "completed_at": "2023-02-14T19:09:03.071750Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.072215Z", "completed_at": "2023-02-14T19:09:03.072223Z"}], "thread_id": "Thread-2", "execution_time": 0.9171600341796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:02.329812Z", "completed_at": "2023-02-14T19:09:03.224996Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.225202Z", "completed_at": "2023-02-14T19:09:03.225209Z"}], "thread_id": "Thread-3", "execution_time": 0.9773333072662354, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:02.340220Z", "completed_at": "2023-02-14T19:09:03.225441Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.225620Z", "completed_at": "2023-02-14T19:09:03.225624Z"}], "thread_id": "Thread-4", "execution_time": 0.9760839939117432, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:03.090015Z", "completed_at": "2023-02-14T19:09:03.925780Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.926181Z", "completed_at": "2023-02-14T19:09:03.926201Z"}], "thread_id": "Thread-1", "execution_time": 0.9176290035247803, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:03.156613Z", "completed_at": "2023-02-14T19:09:03.989891Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.990150Z", "completed_at": "2023-02-14T19:09:03.990158Z"}], "thread_id": "Thread-2", "execution_time": 0.9161899089813232, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:03.307701Z", "completed_at": "2023-02-14T19:09:04.166340Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:04.166736Z", "completed_at": "2023-02-14T19:09:04.166744Z"}], "thread_id": "Thread-3", "execution_time": 0.9413659572601318, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:03.316991Z", "completed_at": "2023-02-14T19:09:04.166447Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:04.166829Z", "completed_at": "2023-02-14T19:09:04.166833Z"}], "thread_id": "Thread-4", "execution_time": 0.9428369998931885, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:04.073530Z", "completed_at": "2023-02-14T19:09:04.923726Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:04.924056Z", "completed_at": "2023-02-14T19:09:04.924065Z"}], "thread_id": "Thread-2", "execution_time": 0.9359149932861328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:04.008281Z", "completed_at": "2023-02-14T19:09:04.924318Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:04.924500Z", "completed_at": "2023-02-14T19:09:04.924504Z"}], "thread_id": "Thread-1", "execution_time": 1.0018696784973145, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:04.260582Z", "completed_at": "2023-02-14T19:09:05.105975Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:05.106286Z", "completed_at": "2023-02-14T19:09:05.106293Z"}], "thread_id": "Thread-4", "execution_time": 0.9302608966827393, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:04.249737Z", "completed_at": "2023-02-14T19:09:05.106213Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:05.106570Z", "completed_at": "2023-02-14T19:09:05.106575Z"}], "thread_id": "Thread-3", "execution_time": 0.9425930976867676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:05.011596Z", "completed_at": "2023-02-14T19:09:05.935486Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:05.935713Z", "completed_at": "2023-02-14T19:09:05.935721Z"}], "thread_id": "Thread-1", "execution_time": 1.0070610046386719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:05.011484Z", "completed_at": "2023-02-14T19:09:05.937027Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:05.937209Z", "completed_at": "2023-02-14T19:09:05.937213Z"}], "thread_id": "Thread-2", "execution_time": 1.0172538757324219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:05.201206Z", "completed_at": "2023-02-14T19:09:06.097105Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:06.097279Z", "completed_at": "2023-02-14T19:09:06.097283Z"}], "thread_id": "Thread-3", "execution_time": 0.9917480945587158, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:05.192257Z", "completed_at": "2023-02-14T19:09:06.096730Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:06.096928Z", "completed_at": "2023-02-14T19:09:06.096935Z"}], "thread_id": "Thread-4", "execution_time": 0.9940907955169678, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:06.019110Z", "completed_at": "2023-02-14T19:09:06.862360Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:06.862763Z", "completed_at": "2023-02-14T19:09:06.862781Z"}], "thread_id": "Thread-1", "execution_time": 0.9291131496429443, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:06.028846Z", "completed_at": "2023-02-14T19:09:06.941032Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:06.941252Z", "completed_at": "2023-02-14T19:09:06.941258Z"}], "thread_id": "Thread-2", "execution_time": 1.0012671947479248, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:06.187128Z", "completed_at": "2023-02-14T19:09:07.077548Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:07.077834Z", "completed_at": "2023-02-14T19:09:07.077841Z"}], "thread_id": "Thread-4", "execution_time": 0.9736299514770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:06.186975Z", "completed_at": "2023-02-14T19:09:07.077753Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:07.078107Z", "completed_at": "2023-02-14T19:09:07.078110Z"}], "thread_id": "Thread-3", "execution_time": 0.9751358032226562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:06.948598Z", "completed_at": "2023-02-14T19:09:07.939445Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:07.939714Z", "completed_at": "2023-02-14T19:09:07.939723Z"}], "thread_id": "Thread-1", "execution_time": 1.0832719802856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:07.030961Z", "completed_at": "2023-02-14T19:09:08.032303Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:08.032745Z", "completed_at": "2023-02-14T19:09:08.032750Z"}], "thread_id": "Thread-2", "execution_time": 1.0911638736724854, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:07.162963Z", "completed_at": "2023-02-14T19:09:08.180303Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:08.185099Z", "completed_at": "2023-02-14T19:09:08.185107Z"}], "thread_id": "Thread-4", "execution_time": 1.106367826461792, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:07.170813Z", "completed_at": "2023-02-14T19:09:08.185405Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:08.185568Z", "completed_at": "2023-02-14T19:09:08.185572Z"}], "thread_id": "Thread-3", "execution_time": 1.114821195602417, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:08.032660Z", "completed_at": "2023-02-14T19:09:08.904785Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:08.905187Z", "completed_at": "2023-02-14T19:09:08.905206Z"}], "thread_id": "Thread-1", "execution_time": 0.959083080291748, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:08.993284Z", "completed_at": "2023-02-14T19:09:09.008095Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.008333Z", "completed_at": "2023-02-14T19:09:09.008339Z"}], "thread_id": "Thread-1", "execution_time": 0.01634526252746582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.009579Z", "completed_at": "2023-02-14T19:09:09.017524Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.017723Z", "completed_at": "2023-02-14T19:09:09.017728Z"}], "thread_id": "Thread-1", "execution_time": 0.008931159973144531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.018779Z", "completed_at": "2023-02-14T19:09:09.023567Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.023771Z", "completed_at": "2023-02-14T19:09:09.023776Z"}], "thread_id": "Thread-1", "execution_time": 0.005671262741088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.024745Z", "completed_at": "2023-02-14T19:09:09.028106Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.028286Z", "completed_at": "2023-02-14T19:09:09.028291Z"}], "thread_id": "Thread-1", "execution_time": 0.0041790008544921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.029250Z", "completed_at": "2023-02-14T19:09:09.031806Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.031984Z", "completed_at": "2023-02-14T19:09:09.031989Z"}], "thread_id": "Thread-1", "execution_time": 0.0033757686614990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.032911Z", "completed_at": "2023-02-14T19:09:09.041561Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.041741Z", "completed_at": "2023-02-14T19:09:09.041746Z"}], "thread_id": "Thread-1", "execution_time": 0.009459972381591797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.042669Z", "completed_at": "2023-02-14T19:09:09.046627Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.046806Z", "completed_at": "2023-02-14T19:09:09.046811Z"}], "thread_id": "Thread-1", "execution_time": 0.004736900329589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.047687Z", "completed_at": "2023-02-14T19:09:09.050688Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.050863Z", "completed_at": "2023-02-14T19:09:09.050867Z"}], "thread_id": "Thread-1", "execution_time": 0.003762960433959961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.051723Z", "completed_at": "2023-02-14T19:09:09.054814Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.054983Z", "completed_at": "2023-02-14T19:09:09.054987Z"}], "thread_id": "Thread-1", "execution_time": 0.0038509368896484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.055851Z", "completed_at": "2023-02-14T19:09:09.058855Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.059034Z", "completed_at": "2023-02-14T19:09:09.059038Z"}], "thread_id": "Thread-1", "execution_time": 0.0037686824798583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.059888Z", "completed_at": "2023-02-14T19:09:09.064836Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.065011Z", "completed_at": "2023-02-14T19:09:09.065015Z"}], "thread_id": "Thread-1", "execution_time": 0.005716800689697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.065900Z", "completed_at": "2023-02-14T19:09:09.068989Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.069172Z", "completed_at": "2023-02-14T19:09:09.069177Z"}], "thread_id": "Thread-1", "execution_time": 0.0038640499114990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.070035Z", "completed_at": "2023-02-14T19:09:09.073053Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.073217Z", "completed_at": "2023-02-14T19:09:09.073221Z"}], "thread_id": "Thread-1", "execution_time": 0.0037679672241210938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.074077Z", "completed_at": "2023-02-14T19:09:09.077805Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.078054Z", "completed_at": "2023-02-14T19:09:09.078058Z"}], "thread_id": "Thread-1", "execution_time": 0.004623889923095703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:08.122580Z", "completed_at": "2023-02-14T19:09:08.990556Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:08.992074Z", "completed_at": "2023-02-14T19:09:08.992081Z"}], "thread_id": "Thread-2", "execution_time": 0.9569861888885498, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.080124Z", "completed_at": "2023-02-14T19:09:09.120933Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.121658Z", "completed_at": "2023-02-14T19:09:09.121665Z"}], "thread_id": "Thread-2", "execution_time": 0.04263806343078613, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.080040Z", "completed_at": "2023-02-14T19:09:09.121035Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.121746Z", "completed_at": "2023-02-14T19:09:09.121750Z"}], "thread_id": "Thread-1", "execution_time": 0.04327392578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.124141Z", "completed_at": "2023-02-14T19:09:09.132422Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.132758Z", "completed_at": "2023-02-14T19:09:09.132763Z"}], "thread_id": "Thread-2", "execution_time": 0.009746313095092773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.124225Z", "completed_at": "2023-02-14T19:09:09.132492Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.132840Z", "completed_at": "2023-02-14T19:09:09.132844Z"}], "thread_id": "Thread-1", "execution_time": 0.009802103042602539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.134598Z", "completed_at": "2023-02-14T19:09:09.142196Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.142538Z", "completed_at": "2023-02-14T19:09:09.142543Z"}], "thread_id": "Thread-2", "execution_time": 0.008990049362182617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.134674Z", "completed_at": "2023-02-14T19:09:09.142267Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.142622Z", "completed_at": "2023-02-14T19:09:09.142626Z"}], "thread_id": "Thread-1", "execution_time": 0.009054899215698242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.144426Z", "completed_at": "2023-02-14T19:09:09.194260Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.194479Z", "completed_at": "2023-02-14T19:09:09.194486Z"}], "thread_id": "Thread-2", "execution_time": 0.051238059997558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.144507Z", "completed_at": "2023-02-14T19:09:09.195815Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.199329Z", "completed_at": "2023-02-14T19:09:09.199334Z"}], "thread_id": "Thread-1", "execution_time": 0.055673837661743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.195725Z", "completed_at": "2023-02-14T19:09:09.199889Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.200561Z", "completed_at": "2023-02-14T19:09:09.200567Z"}], "thread_id": "Thread-2", "execution_time": 0.005610942840576172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:08.268753Z", "completed_at": "2023-02-14T19:09:09.121480Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.122744Z", "completed_at": "2023-02-14T19:09:09.122748Z"}], "thread_id": "Thread-4", "execution_time": 0.938068151473999, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:08.278818Z", "completed_at": "2023-02-14T19:09:09.121208Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.121917Z", "completed_at": "2023-02-14T19:09:09.121922Z"}], "thread_id": "Thread-3", "execution_time": 0.9281930923461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.200652Z", "completed_at": "2023-02-14T19:09:09.206561Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.207878Z", "completed_at": "2023-02-14T19:09:09.207883Z"}], "thread_id": "Thread-1", "execution_time": 0.011380195617675781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.207259Z", "completed_at": "2023-02-14T19:09:09.211987Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.220467Z", "completed_at": "2023-02-14T19:09:09.220474Z"}], "thread_id": "Thread-2", "execution_time": 0.015496969223022461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.211746Z", "completed_at": "2023-02-14T19:09:09.220557Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.225705Z", "completed_at": "2023-02-14T19:09:09.225711Z"}], "thread_id": "Thread-3", "execution_time": 0.01881885528564453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.211638Z", "completed_at": "2023-02-14T19:09:09.220621Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.225800Z", "completed_at": "2023-02-14T19:09:09.225804Z"}], "thread_id": "Thread-4", "execution_time": 0.019443035125732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.220728Z", "completed_at": "2023-02-14T19:09:09.226910Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.228136Z", "completed_at": "2023-02-14T19:09:09.228140Z"}], "thread_id": "Thread-1", "execution_time": 0.011883020401000977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.227468Z", "completed_at": "2023-02-14T19:09:09.232152Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.239644Z", "completed_at": "2023-02-14T19:09:09.239651Z"}], "thread_id": "Thread-2", "execution_time": 0.014250040054321289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.231823Z", "completed_at": "2023-02-14T19:09:09.239834Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.245439Z", "completed_at": "2023-02-14T19:09:09.245444Z"}], "thread_id": "Thread-3", "execution_time": 0.018636226654052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.231927Z", "completed_at": "2023-02-14T19:09:09.239893Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.245571Z", "completed_at": "2023-02-14T19:09:09.245575Z"}], "thread_id": "Thread-4", "execution_time": 0.018680095672607422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.239766Z", "completed_at": "2023-02-14T19:09:09.245640Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.247133Z", "completed_at": "2023-02-14T19:09:09.247137Z"}], "thread_id": "Thread-1", "execution_time": 0.008970022201538086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.247218Z", "completed_at": "2023-02-14T19:09:09.252064Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.259468Z", "completed_at": "2023-02-14T19:09:09.259473Z"}], "thread_id": "Thread-2", "execution_time": 0.018534183502197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.251595Z", "completed_at": "2023-02-14T19:09:09.259541Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.264839Z", "completed_at": "2023-02-14T19:09:09.264843Z"}], "thread_id": "Thread-3", "execution_time": 0.01826310157775879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.251706Z", "completed_at": "2023-02-14T19:09:09.259598Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.264997Z", "completed_at": "2023-02-14T19:09:09.265001Z"}], "thread_id": "Thread-4", "execution_time": 0.018425941467285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.259353Z", "completed_at": "2023-02-14T19:09:09.264916Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.266338Z", "completed_at": "2023-02-14T19:09:09.266342Z"}], "thread_id": "Thread-1", "execution_time": 0.015275001525878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.266552Z", "completed_at": "2023-02-14T19:09:09.271292Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.279413Z", "completed_at": "2023-02-14T19:09:09.279420Z"}], "thread_id": "Thread-2", "execution_time": 0.017767906188964844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.270850Z", "completed_at": "2023-02-14T19:09:09.279495Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.283501Z", "completed_at": "2023-02-14T19:09:09.283505Z"}], "thread_id": "Thread-3", "execution_time": 0.017586231231689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.271233Z", "completed_at": "2023-02-14T19:09:09.282547Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.283590Z", "completed_at": "2023-02-14T19:09:09.283594Z"}], "thread_id": "Thread-4", "execution_time": 0.017336130142211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.279235Z", "completed_at": "2023-02-14T19:09:09.283416Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.284765Z", "completed_at": "2023-02-14T19:09:09.284769Z"}], "thread_id": "Thread-1", "execution_time": 0.014441967010498047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.285127Z", "completed_at": "2023-02-14T19:09:09.291028Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.297200Z", "completed_at": "2023-02-14T19:09:09.297205Z"}], "thread_id": "Thread-2", "execution_time": 0.01746201515197754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.290870Z", "completed_at": "2023-02-14T19:09:09.300844Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.301832Z", "completed_at": "2023-02-14T19:09:09.301836Z"}], "thread_id": "Thread-3", "execution_time": 0.017040252685546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.290963Z", "completed_at": "2023-02-14T19:09:09.301268Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.302301Z", "completed_at": "2023-02-14T19:09:09.302306Z"}], "thread_id": "Thread-4", "execution_time": 0.01725912094116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.297023Z", "completed_at": "2023-02-14T19:09:09.301655Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.302789Z", "completed_at": "2023-02-14T19:09:09.302793Z"}], "thread_id": "Thread-1", "execution_time": 0.013129949569702148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.303382Z", "completed_at": "2023-02-14T19:09:09.308868Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.316386Z", "completed_at": "2023-02-14T19:09:09.316391Z"}], "thread_id": "Thread-2", "execution_time": 0.01780414581298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.308959Z", "completed_at": "2023-02-14T19:09:09.319429Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.320469Z", "completed_at": "2023-02-14T19:09:09.320473Z"}], "thread_id": "Thread-3", "execution_time": 0.017246007919311523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.309130Z", "completed_at": "2023-02-14T19:09:09.319963Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.320939Z", "completed_at": "2023-02-14T19:09:09.320944Z"}], "thread_id": "Thread-4", "execution_time": 0.01373910903930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.312640Z", "completed_at": "2023-02-14T19:09:09.320290Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.321524Z", "completed_at": "2023-02-14T19:09:09.321529Z"}], "thread_id": "Thread-1", "execution_time": 0.013880014419555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.322109Z", "completed_at": "2023-02-14T19:09:09.329382Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.337983Z", "completed_at": "2023-02-14T19:09:09.337990Z"}], "thread_id": "Thread-2", "execution_time": 0.02079010009765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.329318Z", "completed_at": "2023-02-14T19:09:09.341486Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.342466Z", "completed_at": "2023-02-14T19:09:09.342470Z"}], "thread_id": "Thread-3", "execution_time": 0.020324230194091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.329542Z", "completed_at": "2023-02-14T19:09:09.341754Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.342712Z", "completed_at": "2023-02-14T19:09:09.342716Z"}], "thread_id": "Thread-4", "execution_time": 0.014975309371948242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.334078Z", "completed_at": "2023-02-14T19:09:09.342002Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.343120Z", "completed_at": "2023-02-14T19:09:09.343123Z"}], "thread_id": "Thread-1", "execution_time": 0.015021085739135742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.343203Z", "completed_at": "2023-02-14T19:09:09.348272Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.351349Z", "completed_at": "2023-02-14T19:09:09.351354Z"}], "thread_id": "Thread-2", "execution_time": 0.016839981079101562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.348443Z", "completed_at": "2023-02-14T19:09:09.359146Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.360013Z", "completed_at": "2023-02-14T19:09:09.360018Z"}], "thread_id": "Thread-3", "execution_time": 0.01332998275756836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.351262Z", "completed_at": "2023-02-14T19:09:09.359564Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.360682Z", "completed_at": "2023-02-14T19:09:09.360687Z"}], "thread_id": "Thread-1", "execution_time": 0.01333308219909668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.348677Z", "completed_at": "2023-02-14T19:09:09.359628Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.360782Z", "completed_at": "2023-02-14T19:09:09.360786Z"}], "thread_id": "Thread-4", "execution_time": 0.014059782028198242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.360880Z", "completed_at": "2023-02-14T19:09:09.367325Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.370893Z", "completed_at": "2023-02-14T19:09:09.370898Z"}], "thread_id": "Thread-2", "execution_time": 0.018360137939453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.367412Z", "completed_at": "2023-02-14T19:09:09.378219Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.379139Z", "completed_at": "2023-02-14T19:09:09.379144Z"}], "thread_id": "Thread-3", "execution_time": 0.013631105422973633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.370709Z", "completed_at": "2023-02-14T19:09:09.378691Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.379819Z", "completed_at": "2023-02-14T19:09:09.379824Z"}], "thread_id": "Thread-1", "execution_time": 0.013590097427368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.370799Z", "completed_at": "2023-02-14T19:09:09.378759Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.379909Z", "completed_at": "2023-02-14T19:09:09.379912Z"}], "thread_id": "Thread-4", "execution_time": 0.01363515853881836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.379989Z", "completed_at": "2023-02-14T19:09:09.387072Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.392874Z", "completed_at": "2023-02-14T19:09:09.392881Z"}], "thread_id": "Thread-2", "execution_time": 0.021052837371826172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.387157Z", "completed_at": "2023-02-14T19:09:09.400066Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.401196Z", "completed_at": "2023-02-14T19:09:09.401200Z"}], "thread_id": "Thread-3", "execution_time": 0.015947818756103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.392689Z", "completed_at": "2023-02-14T19:09:09.400455Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.401356Z", "completed_at": "2023-02-14T19:09:09.401360Z"}], "thread_id": "Thread-1", "execution_time": 0.015549898147583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.392786Z", "completed_at": "2023-02-14T19:09:09.400570Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.401435Z", "completed_at": "2023-02-14T19:09:09.401439Z"}], "thread_id": "Thread-4", "execution_time": 0.015584945678710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.401835Z", "completed_at": "2023-02-14T19:09:09.408283Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.413027Z", "completed_at": "2023-02-14T19:09:09.413035Z"}], "thread_id": "Thread-2", "execution_time": 0.01947188377380371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.408536Z", "completed_at": "2023-02-14T19:09:09.420507Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.421650Z", "completed_at": "2023-02-14T19:09:09.421656Z"}], "thread_id": "Thread-3", "execution_time": 0.014887809753417969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.408701Z", "completed_at": "2023-02-14T19:09:09.420862Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.421821Z", "completed_at": "2023-02-14T19:09:09.421825Z"}], "thread_id": "Thread-1", "execution_time": 0.015101909637451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.408778Z", "completed_at": "2023-02-14T19:09:09.420970Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.421899Z", "completed_at": "2023-02-14T19:09:09.421903Z"}], "thread_id": "Thread-4", "execution_time": 0.015102863311767578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.422322Z", "completed_at": "2023-02-14T19:09:09.427755Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.439940Z", "completed_at": "2023-02-14T19:09:09.439949Z"}], "thread_id": "Thread-2", "execution_time": 0.019546985626220703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.427842Z", "completed_at": "2023-02-14T19:09:09.440944Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.442482Z", "completed_at": "2023-02-14T19:09:09.442490Z"}], "thread_id": "Thread-3", "execution_time": 0.017008066177368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.428006Z", "completed_at": "2023-02-14T19:09:09.441042Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.442627Z", "completed_at": "2023-02-14T19:09:09.442632Z"}], "thread_id": "Thread-4", "execution_time": 0.01662898063659668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.427925Z", "completed_at": "2023-02-14T19:09:09.441216Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.442763Z", "completed_at": "2023-02-14T19:09:09.442773Z"}], "thread_id": "Thread-1", "execution_time": 0.01738429069519043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.444500Z", "completed_at": "2023-02-14T19:09:09.451370Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.463478Z", "completed_at": "2023-02-14T19:09:09.463486Z"}], "thread_id": "Thread-2", "execution_time": 0.021987199783325195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.451508Z", "completed_at": "2023-02-14T19:09:09.464227Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.465224Z", "completed_at": "2023-02-14T19:09:09.465229Z"}], "thread_id": "Thread-3", "execution_time": 0.01571822166442871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.451605Z", "completed_at": "2023-02-14T19:09:09.464320Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.465307Z", "completed_at": "2023-02-14T19:09:09.465312Z"}], "thread_id": "Thread-4", "execution_time": 0.015717744827270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.451689Z", "completed_at": "2023-02-14T19:09:09.464400Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.465391Z", "completed_at": "2023-02-14T19:09:09.465394Z"}], "thread_id": "Thread-1", "execution_time": 0.015733003616333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.466547Z", "completed_at": "2023-02-14T19:09:09.471664Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.481048Z", "completed_at": "2023-02-14T19:09:09.481055Z"}], "thread_id": "Thread-2", "execution_time": 0.020840883255004883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.471949Z", "completed_at": "2023-02-14T19:09:09.486192Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.487302Z", "completed_at": "2023-02-14T19:09:09.487310Z"}], "thread_id": "Thread-4", "execution_time": 0.017366886138916016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.472145Z", "completed_at": "2023-02-14T19:09:09.486678Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.488214Z", "completed_at": "2023-02-14T19:09:09.488218Z"}], "thread_id": "Thread-1", "execution_time": 0.018035888671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.471864Z", "completed_at": "2023-02-14T19:09:09.486811Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.488330Z", "completed_at": "2023-02-14T19:09:09.488338Z"}], "thread_id": "Thread-3", "execution_time": 0.019031763076782227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.488458Z", "completed_at": "2023-02-14T19:09:09.494711Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.499323Z", "completed_at": "2023-02-14T19:09:09.499329Z"}], "thread_id": "Thread-2", "execution_time": 0.020129919052124023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.494647Z", "completed_at": "2023-02-14T19:09:09.506741Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.507892Z", "completed_at": "2023-02-14T19:09:09.507897Z"}], "thread_id": "Thread-4", "execution_time": 0.01532602310180664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.499198Z", "completed_at": "2023-02-14T19:09:09.507739Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.508869Z", "completed_at": "2023-02-14T19:09:09.508873Z"}], "thread_id": "Thread-3", "execution_time": 0.015054941177368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.499106Z", "completed_at": "2023-02-14T19:09:09.507806Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.508955Z", "completed_at": "2023-02-14T19:09:09.508959Z"}], "thread_id": "Thread-1", "execution_time": 0.015668869018554688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.509169Z", "completed_at": "2023-02-14T19:09:09.516225Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.519699Z", "completed_at": "2023-02-14T19:09:09.519704Z"}], "thread_id": "Thread-2", "execution_time": 0.018158912658691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.516160Z", "completed_at": "2023-02-14T19:09:09.526298Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.527332Z", "completed_at": "2023-02-14T19:09:09.527337Z"}], "thread_id": "Thread-4", "execution_time": 0.017979145050048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.519496Z", "completed_at": "2023-02-14T19:09:09.526680Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.527584Z", "completed_at": "2023-02-14T19:09:09.527587Z"}], "thread_id": "Thread-3", "execution_time": 0.012803792953491211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.519579Z", "completed_at": "2023-02-14T19:09:09.526863Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.528006Z", "completed_at": "2023-02-14T19:09:09.528010Z"}], "thread_id": "Thread-1", "execution_time": 0.012944936752319336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.528095Z", "completed_at": "2023-02-14T19:09:09.532985Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.537758Z", "completed_at": "2023-02-14T19:09:09.537765Z"}], "thread_id": "Thread-2", "execution_time": 0.01887989044189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.533172Z", "completed_at": "2023-02-14T19:09:09.546085Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.547193Z", "completed_at": "2023-02-14T19:09:09.547198Z"}], "thread_id": "Thread-4", "execution_time": 0.015897035598754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.533405Z", "completed_at": "2023-02-14T19:09:09.546400Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.547370Z", "completed_at": "2023-02-14T19:09:09.547374Z"}], "thread_id": "Thread-3", "execution_time": 0.015831947326660156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.537654Z", "completed_at": "2023-02-14T19:09:09.546531Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.547454Z", "completed_at": "2023-02-14T19:09:09.547459Z"}], "thread_id": "Thread-1", "execution_time": 0.015783071517944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.547907Z", "completed_at": "2023-02-14T19:09:09.569656Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.570316Z", "completed_at": "2023-02-14T19:09:09.570322Z"}], "thread_id": "Thread-2", "execution_time": 0.06620621681213379, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.570087Z", "completed_at": "2023-02-14T19:09:09.613519Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.614600Z", "completed_at": "2023-02-14T19:09:09.614608Z"}], "thread_id": "Thread-4", "execution_time": 0.04643416404724121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.570243Z", "completed_at": "2023-02-14T19:09:09.613925Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.614789Z", "completed_at": "2023-02-14T19:09:09.614793Z"}], "thread_id": "Thread-1", "execution_time": 0.04614710807800293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.615217Z", "completed_at": "2023-02-14T19:09:09.620573Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.623911Z", "completed_at": "2023-02-14T19:09:09.623917Z"}], "thread_id": "Thread-2", "execution_time": 0.009996891021728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.620507Z", "completed_at": "2023-02-14T19:09:09.624422Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.624602Z", "completed_at": "2023-02-14T19:09:09.624606Z"}], "thread_id": "Thread-4", "execution_time": 0.004803895950317383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.625596Z", "completed_at": "2023-02-14T19:09:09.630125Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.630298Z", "completed_at": "2023-02-14T19:09:09.630303Z"}], "thread_id": "Thread-1", "execution_time": 0.005321979522705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.570171Z", "completed_at": "2023-02-14T19:09:11.535830Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:11.536139Z", "completed_at": "2023-02-14T19:09:11.536148Z"}], "thread_id": "Thread-3", "execution_time": 2.049555778503418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:11.621825Z", "completed_at": "2023-02-14T19:09:11.648129Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:11.648421Z", "completed_at": "2023-02-14T19:09:11.648430Z"}], "thread_id": "Thread-2", "execution_time": 0.02805781364440918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:11.621662Z", "completed_at": "2023-02-14T19:09:12.860057Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.860377Z", "completed_at": "2023-02-14T19:09:12.860389Z"}], "thread_id": "Thread-4", "execution_time": 1.3229098320007324, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.946023Z", "completed_at": "2023-02-14T19:09:12.954618Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.954953Z", "completed_at": "2023-02-14T19:09:12.954962Z"}], "thread_id": "Thread-3", "execution_time": 0.010462045669555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.956958Z", "completed_at": "2023-02-14T19:09:12.968081Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.968331Z", "completed_at": "2023-02-14T19:09:12.968337Z"}], "thread_id": "Thread-2", "execution_time": 0.012343883514404297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.969889Z", "completed_at": "2023-02-14T19:09:12.975323Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.975547Z", "completed_at": "2023-02-14T19:09:12.975553Z"}], "thread_id": "Thread-1", "execution_time": 0.006536006927490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.978750Z", "completed_at": "2023-02-14T19:09:12.990039Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.990716Z", "completed_at": "2023-02-14T19:09:12.990722Z"}], "thread_id": "Thread-2", "execution_time": 0.01417398452758789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.978615Z", "completed_at": "2023-02-14T19:09:12.990139Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.990921Z", "completed_at": "2023-02-14T19:09:12.990925Z"}], "thread_id": "Thread-4", "execution_time": 0.015017986297607422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.978892Z", "completed_at": "2023-02-14T19:09:12.990236Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.991037Z", "completed_at": "2023-02-14T19:09:12.991041Z"}], "thread_id": "Thread-3", "execution_time": 0.01470494270324707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.980305Z", "completed_at": "2023-02-14T19:09:12.990425Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.991550Z", "completed_at": "2023-02-14T19:09:12.991553Z"}], "thread_id": "Thread-1", "execution_time": 0.014971733093261719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.994524Z", "completed_at": "2023-02-14T19:09:13.007418Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.016889Z", "completed_at": "2023-02-14T19:09:13.016895Z"}], "thread_id": "Thread-2", "execution_time": 0.042510986328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.999990Z", "completed_at": "2023-02-14T19:09:13.016742Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.036012Z", "completed_at": "2023-02-14T19:09:13.036018Z"}], "thread_id": "Thread-4", "execution_time": 0.04271197319030762, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:13.000080Z", "completed_at": "2023-02-14T19:09:13.035011Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.036310Z", "completed_at": "2023-02-14T19:09:13.036316Z"}], "thread_id": "Thread-3", "execution_time": 0.042916297912597656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:13.000207Z", "completed_at": "2023-02-14T19:09:13.035225Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.036858Z", "completed_at": "2023-02-14T19:09:13.036864Z"}], "thread_id": "Thread-1", "execution_time": 0.04320192337036133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:13.038538Z", "completed_at": "2023-02-14T19:09:13.041303Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.041479Z", "completed_at": "2023-02-14T19:09:13.041484Z"}], "thread_id": "Thread-2", "execution_time": 0.003721952438354492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:13.043133Z", "completed_at": "2023-02-14T19:09:13.050883Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.051230Z", "completed_at": "2023-02-14T19:09:13.051235Z"}], "thread_id": "Thread-4", "execution_time": 0.009208202362060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:13.043216Z", "completed_at": "2023-02-14T19:09:13.050958Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.051312Z", "completed_at": "2023-02-14T19:09:13.051316Z"}], "thread_id": "Thread-3", "execution_time": 0.009246826171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"}], "elapsed_time": 15.657771110534668, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file From d3137556a906b18985df6bcbf0a0405bde2a74b9 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath <108772760+fivetran-avinash@users.noreply.github.com> Date: Tue, 14 Feb 2023 15:10:32 -0800 Subject: [PATCH 6/9] Update CHANGELOG.md Co-authored-by: Renee Li <91097070+fivetran-reneeli@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 490db993..6459cae6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # dbt_quickbooks v0.8.0 ## 🚨 Breaking Changes 🚨: -- Changing `account_name` input to `account_id` for the `generate_surrogate_key` function to fix `unique_id` uniqueness issues in the `quickbooks__general_ledger` model. A full refresh is recommended for accurate and consistent surrogate keys. [#73](https://github.com/fivetran/dbt_quickbooks/pull/73) +- Replacing `account_name` with `account_id` as input for the `generate_surrogate_key` function to fix `unique_id` uniqueness issues in the `quickbooks__general_ledger` model. A full refresh is recommended for accurate and consistent surrogate keys. [#73](https://github.com/fivetran/dbt_quickbooks/pull/73) # dbt_quickbooks v0.7.0 ## 🚨 Breaking Changes 🚨: From 61e640a4be3fa9c087902fa08800a9f987855402 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Tue, 14 Feb 2023 15:16:19 -0800 Subject: [PATCH 7/9] Regen docs --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index a87cd7e1..2fd70b79 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T19:09:14.826260Z", "invocation_id": "740b6cd8-3bf3-4a2b-99f7-4f7af9e39f64", "env": {}}, "nodes": {"seed.quickbooks_integration_tests.account_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.account_data"}, "seed.quickbooks_integration_tests.address_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.address_data"}, "seed.quickbooks_integration_tests.bill_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, "seed.quickbooks_integration_tests.bill_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, "seed.quickbooks_integration_tests.bill_payment_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, "seed.quickbooks_integration_tests.bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, "seed.quickbooks_integration_tests.bundle_item_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, "seed.quickbooks_integration_tests.credit_memo_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, "seed.quickbooks_integration_tests.customer_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, "seed.quickbooks_integration_tests.department_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.department_data"}, "seed.quickbooks_integration_tests.deposit_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, "seed.quickbooks_integration_tests.deposit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, "seed.quickbooks_integration_tests.estimate_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, "seed.quickbooks_integration_tests.estimate_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, "seed.quickbooks_integration_tests.invoice_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, "seed.quickbooks_integration_tests.invoice_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, "seed.quickbooks_integration_tests.item_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.item_data"}, "seed.quickbooks_integration_tests.journal_entry_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, "seed.quickbooks_integration_tests.payment_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, "seed.quickbooks_integration_tests.payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, "seed.quickbooks_integration_tests.purchase_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, "seed.quickbooks_integration_tests.purchase_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, "seed.quickbooks_integration_tests.purchase_order_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, "seed.quickbooks_integration_tests.refund_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, "seed.quickbooks_integration_tests.sales_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, "seed.quickbooks_integration_tests.transfer_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, "seed.quickbooks_integration_tests.vendor_credit_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, "seed.quickbooks_integration_tests.vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, "model.quickbooks.int_quickbooks__account_classifications": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__account_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 5, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 7, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 8, "name": "account_sub_type", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "classification": {"type": "text", "index": 17, "name": "classification", "comment": null}, "multiplier": {"type": "integer", "index": 18, "name": "multiplier", "comment": null}, "financial_statement_helper": {"type": "text", "index": 19, "name": "financial_statement_helper", "comment": null}, "transaction_type": {"type": "text", "index": 20, "name": "transaction_type", "comment": null}, "adjusted_balance": {"type": "integer", "index": 21, "name": "adjusted_balance", "comment": null}, "parent_account_number": {"type": "text", "index": 22, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 23, "name": "parent_account_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, "model.quickbooks.int_quickbooks__bill_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__bill_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "payable_account_id": {"type": "text", "index": 7, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 9, "name": "current_balance", "comment": null}, "due_date": {"type": "date", "index": 10, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "date", "index": 11, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "date", "index": 12, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "bigint", "index": 13, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, "model.quickbooks.int_quickbooks__bill_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__bill_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__cash_flow_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__credit_memo_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, "model.quickbooks.int_quickbooks__deposit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__deposit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, "model.quickbooks.int_quickbooks__expenses_union": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__expenses_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "numeric(28,6)", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "numeric(28,6)", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_balances", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "bigint", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_date_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 11, "name": "financial_statement_helper", "comment": null}, "class_id": {"type": "text", "index": 12, "name": "class_id", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_index": {"type": "bigint", "index": 16, "name": "period_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, "model.quickbooks.int_quickbooks__invoice_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__invoice_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 8, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 9, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 10, "name": "delivery_type", "comment": null}, "total_amount": {"type": "integer", "index": 11, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 12, "name": "current_balance", "comment": null}, "estimate_total_amount": {"type": "double precision", "index": 13, "name": "estimate_total_amount", "comment": null}, "estimate_status": {"type": "text", "index": 14, "name": "estimate_status", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 15, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 16, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 17, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "double precision", "index": 18, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, "model.quickbooks.int_quickbooks__invoice_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__invoice_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__journal_entry_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, "model.quickbooks.int_quickbooks__purchase_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__purchase_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__refund_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, "model.quickbooks.int_quickbooks__retained_earnings": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__retained_earnings", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__sales_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, "model.quickbooks.int_quickbooks__sales_union": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__sales_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__vendor_credit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__ap_ar_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_name": {"type": "text", "index": 6, "name": "department_name", "comment": null}, "transaction_with": {"type": "text", "index": 7, "name": "transaction_with", "comment": null}, "customer_vendor_name": {"type": "text", "index": 8, "name": "customer_vendor_name", "comment": null}, "customer_vendor_balance": {"type": "integer", "index": 9, "name": "customer_vendor_balance", "comment": null}, "customer_vendor_address_city": {"type": "text", "index": 10, "name": "customer_vendor_address_city", "comment": null}, "customer_vendor_address_country": {"type": "text", "index": 11, "name": "customer_vendor_address_country", "comment": null}, "customer_vendor_address_line": {"type": "text", "index": 12, "name": "customer_vendor_address_line", "comment": null}, "customer_vendor_website": {"type": "integer", "index": 13, "name": "customer_vendor_website", "comment": null}, "delivery_type": {"type": "text", "index": 14, "name": "delivery_type", "comment": null}, "estimate_status": {"type": "text", "index": 15, "name": "estimate_status", "comment": null}, "total_amount": {"type": "integer", "index": 16, "name": "total_amount", "comment": null}, "estimate_amount": {"type": "double precision", "index": 17, "name": "estimate_amount", "comment": null}, "current_balance": {"type": "integer", "index": 18, "name": "current_balance", "comment": null}, "total_current_payment": {"type": "double precision", "index": 19, "name": "total_current_payment", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 20, "name": "due_date", "comment": null}, "is_overdue": {"type": "boolean", "index": 21, "name": "is_overdue", "comment": null}, "days_overdue": {"type": "integer", "index": 22, "name": "days_overdue", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 23, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 24, "name": "recent_payment_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, "analysis.quickbooks.quickbooks__balance_sheet": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__balance_sheet", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, "model.quickbooks.quickbooks__cash_flow_statement": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__cash_flow_statement", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}, "cash_beginning_period": {"type": "numeric", "index": 17, "name": "cash_beginning_period", "comment": null}, "cash_net_period": {"type": "numeric", "index": 18, "name": "cash_net_period", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__expenses_sales_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, "model.quickbooks.quickbooks__general_ledger": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__general_ledger", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"unique_id": {"type": "text", "index": 1, "name": "unique_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_index": {"type": "integer", "index": 4, "name": "transaction_index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 6, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 7, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 8, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 10, "name": "class_id", "comment": null}, "account_number": {"type": "text", "index": 11, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 13, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 14, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 15, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 16, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 17, "name": "account_sub_type", "comment": null}, "financial_statement_helper": {"type": "text", "index": 18, "name": "financial_statement_helper", "comment": null}, "account_current_balance": {"type": "integer", "index": 19, "name": "account_current_balance", "comment": null}, "account_class": {"type": "text", "index": 20, "name": "account_class", "comment": null}, "transaction_type": {"type": "text", "index": 21, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 22, "name": "transaction_source", "comment": null}, "account_transaction_type": {"type": "text", "index": 23, "name": "account_transaction_type", "comment": null}, "adjusted_amount": {"type": "integer", "index": 24, "name": "adjusted_amount", "comment": null}, "running_balance": {"type": "bigint", "index": 25, "name": "running_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, "model.quickbooks.quickbooks__general_ledger_by_period": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__general_ledger_by_period", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}, "account_ordinal": {"type": "integer", "index": 19, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, "model.quickbooks.quickbooks__profit_and_loss": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__profit_and_loss", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, "model.quickbooks.int_quickbooks__bill_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__credit_memo_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__deposit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__invoice_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__journal_entry_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, "model.quickbooks.int_quickbooks__payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__purchase_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__refund_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__sales_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__transfer_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__vendor_credit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 4, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 6, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 7, "name": "account_sub_type", "comment": null}, "classification": {"type": "text", "index": 8, "name": "classification", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, "model.quickbooks_source.stg_quickbooks__address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "text", "index": 1, "name": "address_id", "comment": null}, "city": {"type": "text", "index": 2, "name": "city", "comment": null}, "country": {"type": "text", "index": 3, "name": "country", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "postal_code": {"type": "integer", "index": 6, "name": "postal_code", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, "model.quickbooks_source.stg_quickbooks__bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "due_date_at": {"type": "date", "index": 6, "name": "due_date_at", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "payable_account_id": {"type": "text", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, "model.quickbooks_source.stg_quickbooks__bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 9, "name": "item_expense_customer_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 10, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "text", "index": 3, "name": "bill_payment_id", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "text", "index": 2, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 3, "name": "check_print_status", "comment": null}, "credit_card_account_id": {"type": "text", "index": 4, "name": "credit_card_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 5, "name": "exchange_rate", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "pay_type": {"type": "text", "index": 8, "name": "pay_type", "comment": null}, "total_amount": {"type": "integer", "index": 9, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "bill_id": {"type": "text", "index": 4, "name": "bill_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 6, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 7, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 8, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 9, "name": "vendor_credit_id", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "fully_qualified_name": {"type": "text", "index": 4, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 5, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "text", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "name": "item_quantity", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "class_id": {"type": "text", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 8, "name": "customer_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 10, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 5, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "text", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, "model.quickbooks_source.stg_quickbooks__customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "text", "index": 1, "name": "customer_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 3, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 4, "name": "balance_with_jobs", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 5, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "fully_qualified_name": {"type": "text", "index": 7, "name": "fully_qualified_name", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "website": {"type": "integer", "index": 10, "name": "website", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, "model.quickbooks_source.stg_quickbooks__department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "is_sub_department": {"type": "boolean", "index": 7, "name": "is_sub_department", "comment": null}, "parent_department_id": {"type": "integer", "index": 8, "name": "parent_department_id", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "total_amount": {"type": "integer", "index": 6, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "integer", "index": 8, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "deposit_account_id": {"type": "text", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "text", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "text", "index": 7, "name": "deposit_customer_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "text", "index": 2, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "due_date": {"type": "integer", "index": 7, "name": "due_date", "comment": null}, "total_amount": {"type": "double precision", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 10, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "discount_account_id": {"type": "integer", "index": 4, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 5, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 7, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 8, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "item_id": {"type": "integer", "index": 10, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "account_id": {"type": "integer", "index": 12, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 7, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 11, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 12, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 13, "name": "delivery_type", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 14, "name": "due_date", "comment": null}, "class_id": {"type": "text", "index": 15, "name": "class_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 16, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 6, "name": "sales_item_class_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "integer", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 13, "name": "bundle_quantity", "comment": null}, "bundle_id": {"type": "text", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "text", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "text", "index": 16, "name": "item_id", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "text", "index": 3, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "quantity": {"type": "double precision", "index": 8, "name": "quantity", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "invoice_line_index": {"type": "integer", "index": 12, "name": "invoice_line_index", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "text", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "text", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, "model.quickbooks_source.stg_quickbooks__item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "text", "index": 1, "name": "item_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "income_account_id": {"type": "text", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "text", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "text", "index": 6, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "purchase_cost": {"type": "integer", "index": 8, "name": "purchase_cost", "comment": null}, "taxable": {"type": "boolean", "index": 9, "name": "taxable", "comment": null}, "type": {"type": "text", "index": 10, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "inventory_start_date": {"type": "integer", "index": 12, "name": "inventory_start_date", "comment": null}, "parent_item_id": {"type": "text", "index": 13, "name": "parent_item_id", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "is_adjustment": {"type": "boolean", "index": 2, "name": "is_adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 9, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 7, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "billable_status": {"type": "integer", "index": 9, "name": "billable_status", "comment": null}, "posting_type": {"type": "text", "index": 10, "name": "posting_type", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, "model.quickbooks_source.stg_quickbooks__payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "unapplied_amount": {"type": "integer", "index": 2, "name": "unapplied_amount", "comment": null}, "total_amount": {"type": "double precision", "index": 3, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "receivable_account_id": {"type": "text", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 7, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 8, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "journal_entry_id": {"type": "integer", "index": 4, "name": "journal_entry_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "invoice_id": {"type": "text", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "credit": {"type": "boolean", "index": 7, "name": "credit", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "payment_type": {"type": "text", "index": 9, "name": "payment_type", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 13, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 14, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 15, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 6, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 7, "name": "account_expense_tax_code_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 9, "name": "item_expense_billable_status", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 10, "name": "item_expense_customer_id", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "text", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 10, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 11, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 12, "name": "sales_item_tax_code_id", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 5, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 11, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 12, "name": "sales_item_unit_price", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "text", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "text", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "text", "index": 4, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "text", "index": 1, "name": "vendor_id", "comment": null}, "account_number": {"type": "integer", "index": 2, "name": "account_number", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "billing_address_id": {"type": "text", "index": 5, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "web_url": {"type": "integer", "index": 10, "name": "web_url", "comment": null}, "is_vendor_1099": {"type": "boolean", "index": 11, "name": "is_vendor_1099", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "payable_account_id": {"type": "text", "index": 8, "name": "payable_account_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "transaction_date": {"type": "date", "index": 11, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "text", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 9, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 10, "name": "item_expense_quantity", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 11, "name": "item_expense_unit_price", "comment": null}, "item_expense_class_id": {"type": "text", "index": 12, "name": "item_expense_class_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 13, "name": "item_expense_billable_status", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.account"}, "source.quickbooks_source.quickbooks.address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.address"}, "source.quickbooks_source.quickbooks.bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill"}, "source.quickbooks_source.quickbooks.bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_line"}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn"}, "source.quickbooks_source.quickbooks.bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment"}, "source.quickbooks_source.quickbooks.bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line"}, "source.quickbooks_source.quickbooks.bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle"}, "source.quickbooks_source.quickbooks.bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle_item"}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn"}, "source.quickbooks_source.quickbooks.credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo"}, "source.quickbooks_source.quickbooks.credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line"}, "source.quickbooks_source.quickbooks.customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.customer"}, "source.quickbooks_source.quickbooks.department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.department"}, "source.quickbooks_source.quickbooks.deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit"}, "source.quickbooks_source.quickbooks.deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit_line"}, "source.quickbooks_source.quickbooks.estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate"}, "source.quickbooks_source.quickbooks.estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate_line"}, "source.quickbooks_source.quickbooks.invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice"}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle"}, "source.quickbooks_source.quickbooks.invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line"}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn"}, "source.quickbooks_source.quickbooks.item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.item"}, "source.quickbooks_source.quickbooks.journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry"}, "source.quickbooks_source.quickbooks.journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line"}, "source.quickbooks_source.quickbooks.payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment"}, "source.quickbooks_source.quickbooks.payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment_line"}, "source.quickbooks_source.quickbooks.purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase"}, "source.quickbooks_source.quickbooks.purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_line"}, "source.quickbooks_source.quickbooks.purchase_order": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order"}, "source.quickbooks_source.quickbooks.purchase_order_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line"}, "source.quickbooks_source.quickbooks.refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt"}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line"}, "source.quickbooks_source.quickbooks.sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt"}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line"}, "source.quickbooks_source.quickbooks.transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.transfer"}, "source.quickbooks_source.quickbooks.vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit"}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line"}, "source.quickbooks_source.quickbooks.vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T23:14:53.517126Z", "invocation_id": "76c252a5-fad4-463c-bb70-ab196883780d", "env": {}}, "nodes": {"seed.quickbooks_integration_tests.account_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.account_data"}, "seed.quickbooks_integration_tests.address_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.address_data"}, "seed.quickbooks_integration_tests.bill_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, "seed.quickbooks_integration_tests.bill_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, "seed.quickbooks_integration_tests.bill_payment_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, "seed.quickbooks_integration_tests.bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, "seed.quickbooks_integration_tests.bundle_item_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, "seed.quickbooks_integration_tests.credit_memo_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, "seed.quickbooks_integration_tests.customer_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, "seed.quickbooks_integration_tests.department_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.department_data"}, "seed.quickbooks_integration_tests.deposit_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, "seed.quickbooks_integration_tests.deposit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, "seed.quickbooks_integration_tests.estimate_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, "seed.quickbooks_integration_tests.estimate_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, "seed.quickbooks_integration_tests.invoice_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, "seed.quickbooks_integration_tests.invoice_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, "seed.quickbooks_integration_tests.item_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.item_data"}, "seed.quickbooks_integration_tests.journal_entry_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, "seed.quickbooks_integration_tests.payment_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, "seed.quickbooks_integration_tests.payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, "seed.quickbooks_integration_tests.purchase_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, "seed.quickbooks_integration_tests.purchase_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, "seed.quickbooks_integration_tests.purchase_order_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, "seed.quickbooks_integration_tests.refund_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, "seed.quickbooks_integration_tests.sales_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, "seed.quickbooks_integration_tests.transfer_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, "seed.quickbooks_integration_tests.vendor_credit_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, "seed.quickbooks_integration_tests.vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, "model.quickbooks.int_quickbooks__account_classifications": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__account_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 4, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 5, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 7, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 8, "name": "account_sub_type", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "classification": {"type": "text", "index": 17, "name": "classification", "comment": null}, "multiplier": {"type": "integer", "index": 18, "name": "multiplier", "comment": null}, "financial_statement_helper": {"type": "text", "index": 19, "name": "financial_statement_helper", "comment": null}, "transaction_type": {"type": "text", "index": 20, "name": "transaction_type", "comment": null}, "adjusted_balance": {"type": "integer", "index": 21, "name": "adjusted_balance", "comment": null}, "parent_account_number": {"type": "text", "index": 22, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 23, "name": "parent_account_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, "model.quickbooks.int_quickbooks__bill_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__bill_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "payable_account_id": {"type": "text", "index": 7, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 9, "name": "current_balance", "comment": null}, "due_date": {"type": "date", "index": 10, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "date", "index": 11, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "date", "index": 12, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "bigint", "index": 13, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, "model.quickbooks.int_quickbooks__bill_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__bill_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__cash_flow_classifications", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__credit_memo_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, "model.quickbooks.int_quickbooks__deposit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__deposit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, "model.quickbooks.int_quickbooks__expenses_union": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__expenses_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "numeric(28,6)", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "numeric(28,6)", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_balances", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "bigint", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__general_ledger_date_spine", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "financial_statement_helper": {"type": "text", "index": 11, "name": "financial_statement_helper", "comment": null}, "class_id": {"type": "text", "index": 12, "name": "class_id", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_index": {"type": "bigint", "index": 16, "name": "period_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, "model.quickbooks.int_quickbooks__invoice_join": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__invoice_join", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 8, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 9, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 10, "name": "delivery_type", "comment": null}, "total_amount": {"type": "integer", "index": 11, "name": "total_amount", "comment": null}, "current_balance": {"type": "integer", "index": 12, "name": "current_balance", "comment": null}, "estimate_total_amount": {"type": "double precision", "index": 13, "name": "estimate_total_amount", "comment": null}, "estimate_status": {"type": "text", "index": 14, "name": "estimate_status", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 15, "name": "due_date", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 16, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 17, "name": "recent_payment_date", "comment": null}, "total_current_payment": {"type": "double precision", "index": 18, "name": "total_current_payment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, "model.quickbooks.int_quickbooks__invoice_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__invoice_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__journal_entry_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, "model.quickbooks.int_quickbooks__purchase_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__purchase_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__refund_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, "model.quickbooks.int_quickbooks__retained_earnings": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__retained_earnings", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__sales_receipt_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 8, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "integer", "index": 9, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 12, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 13, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 14, "name": "vendor_id", "comment": null}, "billable_status": {"type": "text", "index": 15, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 17, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 18, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, "model.quickbooks.int_quickbooks__sales_union": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__sales_union", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "int_quickbooks__vendor_credit_transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 3, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 5, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "date", "index": 6, "name": "transaction_date", "comment": null}, "account_id": {"type": "text", "index": 7, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 8, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "billable_status": {"type": "character varying(100)", "index": 12, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__ap_ar_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_type": {"type": "text", "index": 1, "name": "transaction_type", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "estimate_id": {"type": "text", "index": 5, "name": "estimate_id", "comment": null}, "department_name": {"type": "text", "index": 6, "name": "department_name", "comment": null}, "transaction_with": {"type": "text", "index": 7, "name": "transaction_with", "comment": null}, "customer_vendor_name": {"type": "text", "index": 8, "name": "customer_vendor_name", "comment": null}, "customer_vendor_balance": {"type": "integer", "index": 9, "name": "customer_vendor_balance", "comment": null}, "customer_vendor_address_city": {"type": "text", "index": 10, "name": "customer_vendor_address_city", "comment": null}, "customer_vendor_address_country": {"type": "text", "index": 11, "name": "customer_vendor_address_country", "comment": null}, "customer_vendor_address_line": {"type": "text", "index": 12, "name": "customer_vendor_address_line", "comment": null}, "customer_vendor_website": {"type": "integer", "index": 13, "name": "customer_vendor_website", "comment": null}, "delivery_type": {"type": "text", "index": 14, "name": "delivery_type", "comment": null}, "estimate_status": {"type": "text", "index": 15, "name": "estimate_status", "comment": null}, "total_amount": {"type": "integer", "index": 16, "name": "total_amount", "comment": null}, "estimate_amount": {"type": "double precision", "index": 17, "name": "estimate_amount", "comment": null}, "current_balance": {"type": "integer", "index": 18, "name": "current_balance", "comment": null}, "total_current_payment": {"type": "double precision", "index": 19, "name": "total_current_payment", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 20, "name": "due_date", "comment": null}, "is_overdue": {"type": "boolean", "index": 21, "name": "is_overdue", "comment": null}, "days_overdue": {"type": "integer", "index": 22, "name": "days_overdue", "comment": null}, "initial_payment_date": {"type": "timestamp without time zone", "index": 23, "name": "initial_payment_date", "comment": null}, "recent_payment_date": {"type": "timestamp without time zone", "index": 24, "name": "recent_payment_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, "analysis.quickbooks.quickbooks__balance_sheet": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__balance_sheet", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, "model.quickbooks.quickbooks__cash_flow_statement": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__cash_flow_statement", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"cash_flow_period": {"type": "date", "index": 1, "name": "cash_flow_period", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "cash_ending_period": {"type": "numeric", "index": 13, "name": "cash_ending_period", "comment": null}, "account_unique_id": {"type": "text", "index": 14, "name": "account_unique_id", "comment": null}, "cash_flow_type": {"type": "text", "index": 15, "name": "cash_flow_type", "comment": null}, "cash_flow_ordinal": {"type": "integer", "index": 16, "name": "cash_flow_ordinal", "comment": null}, "cash_beginning_period": {"type": "numeric", "index": 17, "name": "cash_beginning_period", "comment": null}, "cash_net_period": {"type": "numeric", "index": 18, "name": "cash_net_period", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__expenses_sales_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_source": {"type": "text", "index": 1, "name": "transaction_source", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "transaction_type": {"type": "text", "index": 6, "name": "transaction_type", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_date", "comment": null}, "item_id": {"type": "text", "index": 8, "name": "item_id", "comment": null}, "item_quantity": {"type": "double precision", "index": 9, "name": "item_quantity", "comment": null}, "item_unit_price": {"type": "double precision", "index": 10, "name": "item_unit_price", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "account_sub_type": {"type": "text", "index": 13, "name": "account_sub_type", "comment": null}, "class_id": {"type": "text", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "department_name": {"type": "text", "index": 16, "name": "department_name", "comment": null}, "customer_id": {"type": "text", "index": 17, "name": "customer_id", "comment": null}, "customer_name": {"type": "text", "index": 18, "name": "customer_name", "comment": null}, "customer_website": {"type": "integer", "index": 19, "name": "customer_website", "comment": null}, "vendor_id": {"type": "text", "index": 20, "name": "vendor_id", "comment": null}, "vendor_name": {"type": "text", "index": 21, "name": "vendor_name", "comment": null}, "billable_status": {"type": "text", "index": 22, "name": "billable_status", "comment": null}, "description": {"type": "text", "index": 23, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 24, "name": "amount", "comment": null}, "total_amount": {"type": "integer", "index": 25, "name": "total_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, "model.quickbooks.quickbooks__general_ledger": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__general_ledger", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"unique_id": {"type": "text", "index": 1, "name": "unique_id", "comment": null}, "transaction_id": {"type": "text", "index": 2, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "transaction_index": {"type": "integer", "index": 4, "name": "transaction_index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 5, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 6, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 7, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 8, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 9, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 10, "name": "class_id", "comment": null}, "account_number": {"type": "text", "index": 11, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 13, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 14, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 15, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 16, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 17, "name": "account_sub_type", "comment": null}, "financial_statement_helper": {"type": "text", "index": 18, "name": "financial_statement_helper", "comment": null}, "account_current_balance": {"type": "integer", "index": 19, "name": "account_current_balance", "comment": null}, "account_class": {"type": "text", "index": 20, "name": "account_class", "comment": null}, "transaction_type": {"type": "text", "index": 21, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 22, "name": "transaction_source", "comment": null}, "account_transaction_type": {"type": "text", "index": 23, "name": "account_transaction_type", "comment": null}, "adjusted_amount": {"type": "integer", "index": 24, "name": "adjusted_amount", "comment": null}, "running_balance": {"type": "bigint", "index": 25, "name": "running_balance", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, "model.quickbooks.quickbooks__general_ledger_by_period": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__general_ledger_by_period", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_number": {"type": "text", "index": 3, "name": "account_number", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_class": {"type": "text", "index": 10, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 11, "name": "class_id", "comment": null}, "financial_statement_helper": {"type": "text", "index": 12, "name": "financial_statement_helper", "comment": null}, "date_year": {"type": "date", "index": 13, "name": "date_year", "comment": null}, "period_first_day": {"type": "date", "index": 14, "name": "period_first_day", "comment": null}, "period_last_day": {"type": "date", "index": 15, "name": "period_last_day", "comment": null}, "period_net_change": {"type": "numeric", "index": 16, "name": "period_net_change", "comment": null}, "period_beginning_balance": {"type": "numeric", "index": 17, "name": "period_beginning_balance", "comment": null}, "period_ending_balance": {"type": "numeric", "index": 18, "name": "period_ending_balance", "comment": null}, "account_ordinal": {"type": "integer", "index": 19, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, "model.quickbooks.quickbooks__profit_and_loss": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks", "name": "quickbooks__profit_and_loss", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"calendar_date": {"type": "date", "index": 1, "name": "calendar_date", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "account_class": {"type": "text", "index": 3, "name": "account_class", "comment": null}, "class_id": {"type": "text", "index": 4, "name": "class_id", "comment": null}, "is_sub_account": {"type": "boolean", "index": 5, "name": "is_sub_account", "comment": null}, "parent_account_number": {"type": "text", "index": 6, "name": "parent_account_number", "comment": null}, "parent_account_name": {"type": "text", "index": 7, "name": "parent_account_name", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 9, "name": "account_sub_type", "comment": null}, "account_number": {"type": "text", "index": 10, "name": "account_number", "comment": null}, "account_id": {"type": "text", "index": 11, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 12, "name": "account_name", "comment": null}, "amount": {"type": "numeric", "index": 13, "name": "amount", "comment": null}, "account_ordinal": {"type": "integer", "index": 14, "name": "account_ordinal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, "model.quickbooks.int_quickbooks__bill_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__bill_payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__credit_memo_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__deposit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__invoice_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__journal_entry_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, "model.quickbooks.int_quickbooks__payment_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__payment_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "double precision", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__purchase_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__refund_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__sales_receipt_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__transfer_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "bigint", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "name": "int_quickbooks__vendor_credit_double_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "text", "index": 1, "name": "transaction_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "transaction_date": {"type": "date", "index": 4, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 6, "name": "vendor_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "account_id": {"type": "text", "index": 8, "name": "account_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "transaction_type": {"type": "text", "index": 10, "name": "transaction_type", "comment": null}, "transaction_source": {"type": "text", "index": 11, "name": "transaction_source", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "index": 4, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 6, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 7, "name": "account_sub_type", "comment": null}, "classification": {"type": "text", "index": 8, "name": "classification", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, "model.quickbooks_source.stg_quickbooks__address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "text", "index": 1, "name": "address_id", "comment": null}, "city": {"type": "text", "index": 2, "name": "city", "comment": null}, "country": {"type": "text", "index": 3, "name": "country", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "postal_code": {"type": "integer", "index": 6, "name": "postal_code", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, "model.quickbooks_source.stg_quickbooks__bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "due_date_at": {"type": "date", "index": 6, "name": "due_date_at", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "payable_account_id": {"type": "text", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, "model.quickbooks_source.stg_quickbooks__bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 9, "name": "item_expense_customer_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 10, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "text", "index": 3, "name": "bill_payment_id", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "text", "index": 2, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 3, "name": "check_print_status", "comment": null}, "credit_card_account_id": {"type": "text", "index": 4, "name": "credit_card_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 5, "name": "exchange_rate", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "pay_type": {"type": "text", "index": 8, "name": "pay_type", "comment": null}, "total_amount": {"type": "integer", "index": 9, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "bill_id": {"type": "text", "index": 4, "name": "bill_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 6, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 7, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 8, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 9, "name": "vendor_credit_id", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, "model.quickbooks_source.stg_quickbooks__bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "fully_qualified_name": {"type": "text", "index": 4, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 5, "name": "updated_at", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "text", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "name": "item_quantity", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "class_id": {"type": "text", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 8, "name": "customer_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 10, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 5, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "text", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, "model.quickbooks_source.stg_quickbooks__customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "text", "index": 1, "name": "customer_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 3, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 4, "name": "balance_with_jobs", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 5, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "fully_qualified_name": {"type": "text", "index": 7, "name": "fully_qualified_name", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "website": {"type": "integer", "index": 10, "name": "website", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, "model.quickbooks_source.stg_quickbooks__department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "is_sub_department": {"type": "boolean", "index": 7, "name": "is_sub_department", "comment": null}, "parent_department_id": {"type": "integer", "index": 8, "name": "parent_department_id", "comment": null}, "source_relation": {"type": "text", "index": 9, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, "model.quickbooks_source.stg_quickbooks__deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "total_amount": {"type": "integer", "index": 6, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "integer", "index": 8, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "deposit_account_id": {"type": "text", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "text", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "text", "index": 7, "name": "deposit_customer_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, "model.quickbooks_source.stg_quickbooks__estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "text", "index": 2, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "due_date": {"type": "integer", "index": 7, "name": "due_date", "comment": null}, "total_amount": {"type": "double precision", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 10, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "discount_account_id": {"type": "integer", "index": 4, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 5, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 7, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 8, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "item_id": {"type": "integer", "index": 10, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "account_id": {"type": "integer", "index": 12, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "amount", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, "model.quickbooks_source.stg_quickbooks__invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 7, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "index": 11, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 12, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 13, "name": "delivery_type", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 14, "name": "due_date", "comment": null}, "class_id": {"type": "text", "index": 15, "name": "class_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 16, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 6, "name": "sales_item_class_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "integer", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 13, "name": "bundle_quantity", "comment": null}, "bundle_id": {"type": "text", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "text", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "text", "index": 16, "name": "item_id", "comment": null}, "source_relation": {"type": "text", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "text", "index": 3, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "text", "index": 7, "name": "item_id", "comment": null}, "quantity": {"type": "double precision", "index": 8, "name": "quantity", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "account_id": {"type": "text", "index": 10, "name": "account_id", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "invoice_line_index": {"type": "integer", "index": 12, "name": "invoice_line_index", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "text", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "text", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "text", "index": 1, "name": "item_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "income_account_id": {"type": "text", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "text", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "text", "index": 6, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "purchase_cost": {"type": "integer", "index": 8, "name": "purchase_cost", "comment": null}, "taxable": {"type": "boolean", "index": 9, "name": "taxable", "comment": null}, "type": {"type": "text", "index": 10, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "inventory_start_date": {"type": "integer", "index": 12, "name": "inventory_start_date", "comment": null}, "parent_item_id": {"type": "text", "index": 13, "name": "parent_item_id", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "is_adjustment": {"type": "boolean", "index": 2, "name": "is_adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 5, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 9, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 7, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "billable_status": {"type": "integer", "index": 9, "name": "billable_status", "comment": null}, "posting_type": {"type": "text", "index": 10, "name": "posting_type", "comment": null}, "vendor_id": {"type": "text", "index": 11, "name": "vendor_id", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, "model.quickbooks_source.stg_quickbooks__payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "unapplied_amount": {"type": "integer", "index": 2, "name": "unapplied_amount", "comment": null}, "total_amount": {"type": "double precision", "index": 3, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "receivable_account_id": {"type": "text", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 7, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 8, "name": "transaction_date", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "index": 1, "name": "payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "journal_entry_id": {"type": "integer", "index": 4, "name": "journal_entry_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "invoice_id": {"type": "text", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_id", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, "model.quickbooks_source.stg_quickbooks__purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "text", "index": 4, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "credit": {"type": "boolean", "index": 7, "name": "credit", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "payment_type": {"type": "text", "index": 9, "name": "payment_type", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 13, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 14, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 15, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 6, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 7, "name": "account_expense_tax_code_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 9, "name": "item_expense_billable_status", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 10, "name": "item_expense_customer_id", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "text", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 6, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "index": 9, "name": "customer_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 10, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 11, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 12, "name": "sales_item_tax_code_id", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "text", "index": 5, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "customer_id": {"type": "text", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "text", "index": 9, "name": "class_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "date", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 11, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 12, "name": "sales_item_unit_price", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "text", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "text", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "text", "index": 4, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, "model.quickbooks_source.stg_quickbooks__vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "text", "index": 1, "name": "vendor_id", "comment": null}, "account_number": {"type": "integer", "index": 2, "name": "account_number", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "billing_address_id": {"type": "text", "index": 5, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "web_url": {"type": "integer", "index": 10, "name": "web_url", "comment": null}, "is_vendor_1099": {"type": "boolean", "index": 11, "name": "is_vendor_1099", "comment": null}, "source_relation": {"type": "text", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "payable_account_id": {"type": "text", "index": 8, "name": "payable_account_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "transaction_date": {"type": "date", "index": 11, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "text", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "text", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_class_id": {"type": "text", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 9, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 10, "name": "item_expense_quantity", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 11, "name": "item_expense_unit_price", "comment": null}, "item_expense_class_id": {"type": "text", "index": 12, "name": "item_expense_class_id", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 13, "name": "item_expense_billable_status", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "description": {"type": "text", "index": 15, "name": "description", "comment": null}, "source_relation": {"type": "text", "index": 16, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.account"}, "source.quickbooks_source.quickbooks.address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.address"}, "source.quickbooks_source.quickbooks.bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill"}, "source.quickbooks_source.quickbooks.bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_line"}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn"}, "source.quickbooks_source.quickbooks.bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment"}, "source.quickbooks_source.quickbooks.bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "integer", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line"}, "source.quickbooks_source.quickbooks.bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle"}, "source.quickbooks_source.quickbooks.bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.bundle_item"}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn"}, "source.quickbooks_source.quickbooks.credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo"}, "source.quickbooks_source.quickbooks.credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line"}, "source.quickbooks_source.quickbooks.customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.customer"}, "source.quickbooks_source.quickbooks.department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.department"}, "source.quickbooks_source.quickbooks.deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit"}, "source.quickbooks_source.quickbooks.deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "bigint", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "bigint", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.deposit_line"}, "source.quickbooks_source.quickbooks.estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate"}, "source.quickbooks_source.quickbooks.estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.estimate_line"}, "source.quickbooks_source.quickbooks.invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice"}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle"}, "source.quickbooks_source.quickbooks.invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_line"}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn"}, "source.quickbooks_source.quickbooks.item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.item"}, "source.quickbooks_source.quickbooks.journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry"}, "source.quickbooks_source.quickbooks.journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line"}, "source.quickbooks_source.quickbooks.payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment"}, "source.quickbooks_source.quickbooks.payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.payment_line"}, "source.quickbooks_source.quickbooks.purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "boolean", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase"}, "source.quickbooks_source.quickbooks.purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "bigint", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_line"}, "source.quickbooks_source.quickbooks.purchase_order": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order"}, "source.quickbooks_source.quickbooks.purchase_order_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line"}, "source.quickbooks_source.quickbooks.refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt"}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line"}, "source.quickbooks_source.quickbooks.sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "date", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt"}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line"}, "source.quickbooks_source.quickbooks.transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "transfer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.transfer"}, "source.quickbooks_source.quickbooks.vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit"}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "character varying(100)", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "character varying(100)", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line"}, "source.quickbooks_source.quickbooks.vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_integrations_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.quickbooks_source.quickbooks.vendor"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index a84ef079..888d72ab 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T19:08:57.263722Z", "invocation_id": "740b6cd8-3bf3-4a2b-99f7-4f7af9e39f64", "env": {}, "project_id": "fb1a7b9ce88ce39cb54ba2ec5c0aaab3", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_integration_tests.bill_payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_data.csv", "original_file_path": "seeds/bill_payment_data.csv", "name": "bill_payment_data", "alias": "bill_payment_data", "checksum": {"name": "sha256", "checksum": "654e27fe99f7891483ba67ae67202f00a166df46c6463965f831bd47d3bc53cf"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.154881, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_data\""}, "seed.quickbooks_integration_tests.bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_data.csv", "original_file_path": "seeds/bundle_data.csv", "name": "bundle_data", "alias": "bundle_data", "checksum": {"name": "sha256", "checksum": "090d802f05c558f45f05a760b5fb1fa879dfeb26c737e6356dcf6bfcb9fbbefb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.162453, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_data\""}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_line_data.csv", "original_file_path": "seeds/bill_payment_line_data.csv", "name": "bill_payment_line_data", "alias": "bill_payment_line_data", "checksum": {"name": "sha256", "checksum": "ae8e7b58ddb78ecbcb7facd257a29f27db08cb69e4014ee40e3a07d02e7ea51a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.163966, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_integration_tests.payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_line_data.csv", "original_file_path": "seeds/payment_line_data.csv", "name": "payment_line_data", "alias": "payment_line_data", "checksum": {"name": "sha256", "checksum": "6e54b93beaddd05e86b071eb43833845bfc76a841b2780e3e1059f6d661cd238"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.1654348, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_line_data\""}, "seed.quickbooks_integration_tests.vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_data.csv", "original_file_path": "seeds/vendor_data.csv", "name": "vendor_data", "alias": "vendor_data", "checksum": {"name": "sha256", "checksum": "98ce313c6a3acf1262de91d25905b85fe760227a534703d9c6bc0e4149b055b5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676401663.167092, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_data\""}, "seed.quickbooks_integration_tests.address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "address_data"], "unique_id": "seed.quickbooks_integration_tests.address_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "address_data.csv", "original_file_path": "seeds/address_data.csv", "name": "address_data", "alias": "address_data", "checksum": {"name": "sha256", "checksum": "2b7bfb3f76e41e3fee0443c10a939053b0edb31b9f4be1bcd0af8d4b686da7b0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.168598, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"address_data\""}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_bundle_data.csv", "original_file_path": "seeds/invoice_line_bundle_data.csv", "name": "invoice_line_bundle_data", "alias": "invoice_line_bundle_data", "checksum": {"name": "sha256", "checksum": "f1cdc81c2fb1ec4f76c5226e2f5e4ed6f17f7b446cb53cfa539d8caafb252a5c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.1701272, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_integration_tests.invoice_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_data.csv", "original_file_path": "seeds/invoice_data.csv", "name": "invoice_data", "alias": "invoice_data", "checksum": {"name": "sha256", "checksum": "db4f065992372097a09aec08d7b346381eb542e8ee2668d7d664564262c60b55"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.171693, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_data\""}, "seed.quickbooks_integration_tests.payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_integration_tests.payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_data.csv", "original_file_path": "seeds/payment_data.csv", "name": "payment_data", "alias": "payment_data", "checksum": {"name": "sha256", "checksum": "8c2df9d7db2b4668ddbd1e1e3635cbaf40c798e19be2a83f65e09988771ebb38"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.173315, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_data\""}, "seed.quickbooks_integration_tests.invoice_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_data.csv", "original_file_path": "seeds/invoice_line_data.csv", "name": "invoice_line_data", "alias": "invoice_line_data", "checksum": {"name": "sha256", "checksum": "4318a37462107eb6c0548adfba95908611dd94a7ad816ef366524a9eaa4dc4da"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.174814, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_data\""}, "seed.quickbooks_integration_tests.deposit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"deposit_account_id": "bigint", "deposit_class_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_line_data.csv", "original_file_path": "seeds/deposit_line_data.csv", "name": "deposit_line_data", "alias": "deposit_line_data", "checksum": {"name": "sha256", "checksum": "43cf2e49d2ccc28c38ba7db60582b36e46c0ec96827b475e145975fdf8bf9d4e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deposit_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "deposit_class_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676401663.176335, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_line_data\""}, "seed.quickbooks_integration_tests.estimate_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_line_data.csv", "original_file_path": "seeds/estimate_line_data.csv", "name": "estimate_line_data", "alias": "estimate_line_data", "checksum": {"name": "sha256", "checksum": "cff0f0d902a16e9ab0b877d174dd67536537fc669c16505c2efadb0721ce6c26"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.178028, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_line_data\""}, "seed.quickbooks_integration_tests.purchase_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"credit": "bool"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_data.csv", "original_file_path": "seeds/purchase_data.csv", "name": "purchase_data", "alias": "purchase_data", "checksum": {"name": "sha256", "checksum": "b66de1a5aaf428b1f208ecb9edccd6394086db485d6fc7dde7b152862f03eac9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"credit": "{{ 'boolean' if target.name == 'snowflake' else 'bool' }}"}}, "created_at": 1676401663.1795552, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_data\""}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_line_data.csv", "original_file_path": "seeds/refund_receipt_line_data.csv", "name": "refund_receipt_line_data", "alias": "refund_receipt_line_data", "checksum": {"name": "sha256", "checksum": "8a67266f87e49dda0de57a6d66b4c1a053af545a6c8d394f8df6470b98cd31c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.181033, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_line_data.csv", "original_file_path": "seeds/credit_memo_line_data.csv", "name": "credit_memo_line_data", "alias": "credit_memo_line_data", "checksum": {"name": "sha256", "checksum": "01898bc6786c3c48ebf5aa4170ea54257dd66e6fc38931067c9012bc639f6994"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.182467, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_integration_tests.bill_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_integration_tests.bill_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_data.csv", "original_file_path": "seeds/bill_data.csv", "name": "bill_data", "alias": "bill_data", "checksum": {"name": "sha256", "checksum": "af6dcdb238e4819003cc182dc5f39a82a61ab19d1299752afc90d49578cfc79b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.184052, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_data\""}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_linked_txn_data.csv", "original_file_path": "seeds/bill_linked_txn_data.csv", "name": "bill_linked_txn_data", "alias": "bill_linked_txn_data", "checksum": {"name": "sha256", "checksum": "14f88fc0716d3c253043a68af9b026ab54a93a33784c682b6ec700671f1e03c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.1855009, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_integration_tests.vendor_credit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_data.csv", "original_file_path": "seeds/vendor_credit_data.csv", "name": "vendor_credit_data", "alias": "vendor_credit_data", "checksum": {"name": "sha256", "checksum": "ccc4a1ca3967e3eb7f61d2831242f07b1e5a77006dd4312a17fd36e7ea008bea"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.186955, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_data\""}, "seed.quickbooks_integration_tests.customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_integration_tests.customer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "customer_data.csv", "original_file_path": "seeds/customer_data.csv", "name": "customer_data", "alias": "customer_data", "checksum": {"name": "sha256", "checksum": "2b72eabf58923823033e461d1960295c156b31bf5ace046fc388c336fd96a29d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.188391, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"customer_data\""}, "seed.quickbooks_integration_tests.estimate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_data.csv", "original_file_path": "seeds/estimate_data.csv", "name": "estimate_data", "alias": "estimate_data", "checksum": {"name": "sha256", "checksum": "06ca472200a91b5758a0e9530e6c810a09e466cbf1aa7fbac215fee8a9f4d737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.19035, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_data\""}, "seed.quickbooks_integration_tests.purchase_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_line_data.csv", "original_file_path": "seeds/purchase_line_data.csv", "name": "purchase_line_data", "alias": "purchase_line_data", "checksum": {"name": "sha256", "checksum": "33355dd453e68ac5a5afa2f71e3c515dc414cdd55a489c65d2c2c4fa06fd18e7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676401663.1918468, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_line_data.csv", "original_file_path": "seeds/journal_entry_line_data.csv", "name": "journal_entry_line_data", "alias": "journal_entry_line_data", "checksum": {"name": "sha256", "checksum": "76d98c0fe816cb2d3790e1c63b61c0b6128de39e3175a231b98dbd640ba13cd4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.1933372, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_data.csv", "original_file_path": "seeds/journal_entry_data.csv", "name": "journal_entry_data", "alias": "journal_entry_data", "checksum": {"name": "sha256", "checksum": "6f717632a6fe0901786fbdfed63db69af1c928331ed9cb83f9fd389fe2b9ab83"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.194779, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_data\""}, "seed.quickbooks_integration_tests.bill_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_line_data.csv", "original_file_path": "seeds/bill_line_data.csv", "name": "bill_line_data", "alias": "bill_line_data", "checksum": {"name": "sha256", "checksum": "df882ab43a0bd79aed13e13dee1934269989ae1bea9d3672ed7cc9840c14d073"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1676401663.196643, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_line_data\""}, "seed.quickbooks_integration_tests.bundle_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_item_data.csv", "original_file_path": "seeds/bundle_item_data.csv", "name": "bundle_item_data", "alias": "bundle_item_data", "checksum": {"name": "sha256", "checksum": "69218d4dc89cf8da55d1a5aab12bbe45129b48377fa7615f0030616d8c34fe9d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.1981928, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_item_data\""}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_linked_txn_data.csv", "original_file_path": "seeds/invoice_linked_txn_data.csv", "name": "invoice_linked_txn_data", "alias": "invoice_linked_txn_data", "checksum": {"name": "sha256", "checksum": "88dda316adf9a5921231dbe5bd5d0c425391ccf9b72a7d6c937155d67b3b45ba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.199677, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_integration_tests.account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "account_data"], "unique_id": "seed.quickbooks_integration_tests.account_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "account_data.csv", "original_file_path": "seeds/account_data.csv", "name": "account_data", "alias": "account_data", "checksum": {"name": "sha256", "checksum": "82ea90640018b00ad075d5bc1f78bdf38e05b0359fda1b40f4dd249efe1d85d9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.201322, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"account_data\""}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_line_data.csv", "original_file_path": "seeds/purchase_order_line_data.csv", "name": "purchase_order_line_data", "alias": "purchase_order_line_data", "checksum": {"name": "sha256", "checksum": "39d5f88917f7d5d8ec70465d8569a38bd19d72bfb26bc495f3231b3e6599c945"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.202772, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_integration_tests.transfer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_integration_tests.transfer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "transfer_data.csv", "original_file_path": "seeds/transfer_data.csv", "name": "transfer_data", "alias": "transfer_data", "checksum": {"name": "sha256", "checksum": "8301e8b1cbaa430f338d9b589570efb442969ab67a24a92e615b08e3440431ce"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.2042189, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"transfer_data\""}, "seed.quickbooks_integration_tests.purchase_order_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_data.csv", "original_file_path": "seeds/purchase_order_data.csv", "name": "purchase_order_data", "alias": "purchase_order_data", "checksum": {"name": "sha256", "checksum": "41146f57f7697001a690027ea7182ef76dd5d591bb5dce7438edefb3e5fd0101"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.205662, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_data\""}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_line_data.csv", "original_file_path": "seeds/sales_receipt_line_data.csv", "name": "sales_receipt_line_data", "alias": "sales_receipt_line_data", "checksum": {"name": "sha256", "checksum": "19895ca1cfb2ebe0a4e8ef0e5c5ef9c0dbb505053cc4b98bb06de8bd3ead523f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.207247, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_line_data.csv", "original_file_path": "seeds/vendor_credit_line_data.csv", "name": "vendor_credit_line_data", "alias": "vendor_credit_line_data", "checksum": {"name": "sha256", "checksum": "8c60276eb72f29fcd60b6aff2615648b71ce47e0b738331b54f86c988a979737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1676401663.208718, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_card_payment_txn_data"], "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_card_payment_txn_data.csv", "original_file_path": "seeds/credit_card_payment_txn_data.csv", "name": "credit_card_payment_txn_data", "alias": "credit_card_payment_txn_data", "checksum": {"name": "sha256", "checksum": "df04fb5f0ab05dd015e6476d647f9564edf6f015cd1d429ceded40e9bfd915b9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.210191, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_card_payment_txn_data\""}, "seed.quickbooks_integration_tests.credit_memo_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_data.csv", "original_file_path": "seeds/credit_memo_data.csv", "name": "credit_memo_data", "alias": "credit_memo_data", "checksum": {"name": "sha256", "checksum": "3cef678ada5ab1119a096e5f6bea67c6680466ff2a21807512f1a4dba83b6139"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.211627, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_data\""}, "seed.quickbooks_integration_tests.department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "department_data"], "unique_id": "seed.quickbooks_integration_tests.department_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "department_data.csv", "original_file_path": "seeds/department_data.csv", "name": "department_data", "alias": "department_data", "checksum": {"name": "sha256", "checksum": "079a79543e6cfcdac83eeeeb9672451756cc6c48e7d4c572d9f761b9314b18d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.213197, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"department_data\""}, "seed.quickbooks_integration_tests.item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "item_data"], "unique_id": "seed.quickbooks_integration_tests.item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "item_data.csv", "original_file_path": "seeds/item_data.csv", "name": "item_data", "alias": "item_data", "checksum": {"name": "sha256", "checksum": "8057771cc5c837c6193ad423e6a52f7058f6001550eaa0c15098857415aee7d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.2146308, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"item_data\""}, "seed.quickbooks_integration_tests.sales_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_data.csv", "original_file_path": "seeds/sales_receipt_data.csv", "name": "sales_receipt_data", "alias": "sales_receipt_data", "checksum": {"name": "sha256", "checksum": "2ac15faf0cdff7d71155fc20bb86e69d0a67d25f2172f220dbe850d45738230b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1676401663.216107, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_data\""}, "seed.quickbooks_integration_tests.deposit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_data.csv", "original_file_path": "seeds/deposit_data.csv", "name": "deposit_data", "alias": "deposit_data", "checksum": {"name": "sha256", "checksum": "e0e4299672423dbdf3d63d050ecd34c29580b5a368b64307053a635e7dd9286e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676401663.2175932, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_data\""}, "seed.quickbooks_integration_tests.refund_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_data.csv", "original_file_path": "seeds/refund_receipt_data.csv", "name": "refund_receipt_data", "alias": "refund_receipt_data", "checksum": {"name": "sha256", "checksum": "0bfb44ee366239221dfee9e985b0c66d5a7cbc6d0bb8c18cf02acba7616c135d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1676401663.219201, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_data\""}, "model.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__balance_sheet"], "unique_id": "model.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__balance_sheet.sql", "original_file_path": "models/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2dfcdf44d9e54e45aad4ba6e1857e20aff338846ce16fc2e059774d1496ca222"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all asset, liability, and equity account classes by calendar year and month enriched with account type, class, and parent information.\n", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total ending period balance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.5970519, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\""}, "model.quickbooks.quickbooks__general_ledger_by_period": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger_by_period"], "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nretained_earnings as (\n\n select *\n from {{ ref('int_quickbooks__retained_earnings') }}\n),\n\n{% if var('financial_statement_ordinal') %}\nordinals as ( \n\n select \n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n ordinal\n from {{ var('financial_statement_ordinal') }}\n),\n{% endif %}\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n {% if var('financial_statement_ordinal') %}\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as account_ordinal\n {% else %}\n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n {% endif %}\n from balances_earnings_unioned\n {% if var('financial_statement_ordinal') %}\n left join ordinals as account_number_ordinal\n on balances_earnings_unioned.account_number = account_number_ordinal.account_number\n left join ordinals as account_sub_type_ordinal\n on balances_earnings_unioned.account_sub_type = account_sub_type_ordinal.account_sub_type\n left join ordinals as account_type_ordinal\n on balances_earnings_unioned.account_type = account_type_ordinal.account_type\n left join ordinals as account_class_ordinal\n on balances_earnings_unioned.account_class = account_class_ordinal.account_class\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger_by_period.sql", "original_file_path": "models/quickbooks__general_ledger_by_period.sql", "name": "quickbooks__general_ledger_by_period", "alias": "quickbooks__general_ledger_by_period", "checksum": {"name": "sha256", "checksum": "81b71ad880e03e46825645b549c5459da037d29b07524c66547764201690f1d9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"], ["int_quickbooks__retained_earnings"]], "sources": [], "metrics": [], "description": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year.", "columns": {"account_id": {"name": "account_id", "description": "The identifier of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account. with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Helper field identifying whether the account impacts the balances sheet or income statement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_year": {"name": "date_year", "description": "Timestamp of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_first_day": {"name": "period_first_day", "description": "Timestamp of the first date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_last_day": {"name": "period_last_day", "description": "Timestamp of the last date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_net_change": {"name": "period_net_change", "description": "Account balance difference from the beginning and ending of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_beginning_balance": {"name": "period_beginning_balance", "description": "Balance of the account as of the first date of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_ending_balance": {"name": "period_ending_balance", "description": "Sum of all transaction line adjusted_balances of the account for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger_by_period.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.591443, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nretained_earnings as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\"\n),\n\n\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n \n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n \n from balances_earnings_unioned\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\""}, "model.quickbooks.quickbooks__general_ledger": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks.get_enabled_unioned_models", "macro.dbt_utils.union_relations", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger"], "unique_id": "model.quickbooks.quickbooks__general_ledger", "raw_code": "with unioned_models as (\n\n {{ dbt_utils.union_relations(get_enabled_unioned_models()) }}\n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n),\n\n\nadjusted_gl as (\n \n select\n {{ dbt_utils.generate_surrogate_key(['gl_union.transaction_id', 'gl_union.index', 'gl_union.account_id', ' gl_union.transaction_type', 'gl_union.transaction_source']) }} as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger.sql", "original_file_path": "models/quickbooks__general_ledger.sql", "name": "quickbooks__general_ledger", "alias": "quickbooks__general_ledger", "checksum": {"name": "sha256", "checksum": "b1c31176369acc7045e2d328f3603cbe99c014621e59c82d7f281a4521310e6c"}, "tags": [], "refs": [["int_quickbooks__purchase_double_entry"], ["int_quickbooks__bill_double_entry"], ["int_quickbooks__credit_memo_double_entry"], ["int_quickbooks__deposit_double_entry"], ["int_quickbooks__invoice_double_entry"], ["int_quickbooks__journal_entry_double_entry"], ["int_quickbooks__payment_double_entry"], ["int_quickbooks__refund_receipt_double_entry"], ["int_quickbooks__sales_receipt_double_entry"], ["int_quickbooks__transfer_double_entry"], ["int_quickbooks__vendor_credit_double_entry"], ["int_quickbooks__bill_payment_double_entry"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction.", "columns": {"unique_id": {"name": "unique_id", "description": "Unique identifier of the general ledger line, dependent on `transaction_id`, `transaction_index`, `account_id`, `transaction_type`, `transaction_source`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction. Each transaction will have an offsetting debit and credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_index": {"name": "transaction_index", "description": "Unique identifier of the individual debit and credit records of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Either 'balance sheet' or 'income statement' and is used to determine that financial statement the account impacts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_current_balance": {"name": "account_current_balance", "description": "Total current balance of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the transaction line. Will be one of 'Expense', 'Revenue', 'Asset', 'Liability', and 'Equity'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Identifier of whether the transaction is a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_source": {"name": "transaction_source", "description": "Field signifying the source of transaction (eg. Bill, Invoice, Deposit, Journal Entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_transaction_type": {"name": "account_transaction_type", "description": "Identifier of whether the account is increased by either a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjusted_amount": {"name": "adjusted_amount", "description": "The amount that impacts the account. If the transaction_type = account_transaction_type then the impact will increase, otherwise it will decrease the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "running_balance": {"name": "running_balance", "description": "The running balance of the account by each individual day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.587584, "compiled_code": "with unioned_models as (\n\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"\n\n \n )\n\n \n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n),\n\n\nadjusted_gl as (\n \n select\n \n \nmd5(cast(coalesce(cast(gl_union.transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast( gl_union.transaction_type as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.transaction_source as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\""}, "model.quickbooks.quickbooks__profit_and_loss": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__profit_and_loss"], "unique_id": "model.quickbooks.quickbooks__profit_and_loss", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__profit_and_loss.sql", "original_file_path": "models/quickbooks__profit_and_loss.sql", "name": "quickbooks__profit_and_loss", "alias": "quickbooks__profit_and_loss", "checksum": {"name": "sha256", "checksum": "20c36e05d01bfc1acee632ee45fe2861296d19a4dbf6826b0a3dcee5a7933bdd"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information.", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total period net change for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__profit_and_loss.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.594048, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\""}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true"], "nodes": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__expenses_sales_enhanced"], "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced", "raw_code": "with expenses as (\n\n select *\n from {{ ref('int_quickbooks__expenses_union') }}\n),\n\n{% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\nsales as (\n\n select *\n from {{ ref('int_quickbooks__sales_union') }}\n),\n{% endif %}\n\nfinal as (\n \n select *\n from expenses\n\n {% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from sales\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__expenses_sales_enhanced.sql", "original_file_path": "models/quickbooks__expenses_sales_enhanced.sql", "name": "quickbooks__expenses_sales_enhanced", "alias": "quickbooks__expenses_sales_enhanced", "checksum": {"name": "sha256", "checksum": "14dc301b814cc78cbd136971e534e3611271de7a4b36bf8f1d5f8af5ed1947c1"}, "tags": [], "refs": [["int_quickbooks__expenses_union"], ["int_quickbooks__sales_union"]], "sources": [], "metrics": [], "description": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records.", "columns": {"transaction_source": {"name": "transaction_source", "description": "Set to 'expense' if the transaction type is an expense and 'sale' if the transaction type is a sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Specifies the expense or sale transaction type (ie. invoice, sales_receipt, deposit, journal entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Unique identifier of the item included in a sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Quantity of items included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_unit_price": {"name": "item_unit_price", "description": "Unit price of the item included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_name": {"name": "customer_name", "description": "Name of the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_website": {"name": "customer_website", "description": "The website url of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_name": {"name": "vendor_name", "description": "Name of the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status indicating whether the expense or sale is billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description given to either the expense or sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__expenses_sales_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.582964, "compiled_code": "with expenses as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\"\n),\n\n\nsales as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_union\"\n),\n\n\nfinal as (\n \n select *\n from expenses\n\n \n union all\n\n select *\n from sales\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\""}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.datediff"], "nodes": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__ap_ar_enhanced"], "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_join as (\n\n select *\n from {{ref('int_quickbooks__bill_join')}}\n),\n\n{% if var('using_invoice', True) %}\ninvoice_join as (\n\n select *\n from {{ref('int_quickbooks__invoice_join')}}\n),\n{% endif %}\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\n{% if var('using_address', True) %}\naddresses as (\n\n select *\n from {{ref('stg_quickbooks__address')}}\n),\n{% endif %}\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as {{ dbt.type_string() }}) as estimate_id, \n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n \n vendors.web_url as customer_vendor_website,\n cast(null as {{ dbt.type_string() }}) as delivery_type,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n bill_join.total_amount,\n cast(null as {{ dbt.type_numeric() }}) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n {% if var('using_department', True) %}\n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n {% endif %}\n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n {% if var('using_address', True) %}\n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n {% endif %}\n \n {% if var('using_invoice', True) %}\n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n {% if var('using_department', True) %}\n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n {% endif %}\n\n {% if var('using_address', True) %}\n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n {% endif %}\n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n {% endif %}\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__ap_ar_enhanced.sql", "original_file_path": "models/quickbooks__ap_ar_enhanced.sql", "name": "quickbooks__ap_ar_enhanced", "alias": "quickbooks__ap_ar_enhanced", "checksum": {"name": "sha256", "checksum": "a46a57fcf6a2966d9bba092f18cc5f3c39404ad382dab921ba31caef80b49417"}, "tags": [], "refs": [["int_quickbooks__bill_join"], ["int_quickbooks__invoice_join"], ["stg_quickbooks__department"], ["stg_quickbooks__address"], ["stg_quickbooks__customer"], ["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time.", "columns": {"transaction_type": {"name": "transaction_type", "description": "Set to 'bill' of the transaction is a bill and 'invoice' if the transaction is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_with": {"name": "transaction_with", "description": "Set to 'vendor' if the transaction type is a bill and 'customer' if the transaction type is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_name": {"name": "customer_vendor_name", "description": "Full name of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_balance": {"name": "customer_vendor_balance", "description": "Total current account balance of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_city": {"name": "customer_vendor_address_city", "description": "City of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_country": {"name": "customer_vendor_address_country", "description": "Country of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_line": {"name": "customer_vendor_address_line", "description": "Address line of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_website": {"name": "customer_vendor_website", "description": "The website url of the customer or vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice was delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_status": {"name": "estimate_status", "description": "The status of the invoice estimate (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The total monetary amount of the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_amount": {"name": "estimate_amount", "description": "The total amount estimated of the bill or invoice (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_balance": {"name": "current_balance", "description": "The bill or invoice defined remaining balance of the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_current_payment": {"name": "total_current_payment", "description": "Sum of all total payments made towards the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the due date for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_overdue": {"name": "is_overdue", "description": "Boolean indicating whether the bill or invoice full payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "days_overdue": {"name": "days_overdue", "description": "The recent payment minus the due date to show the total days the total payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "initial_payment_date": {"name": "initial_payment_date", "description": "The first date a payment was provided for the bill or invoice", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recent_payment_date": {"name": "recent_payment_date", "description": "The last date a payment was provided for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__ap_ar_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.573803, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith bill_join as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_join\"\n),\n\n\ninvoice_join as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\"\n),\n\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\n\naddresses as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n),\n\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as TEXT) as estimate_id, \n\n \n departments.fully_qualified_name as department_name,\n \n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n \n vendors.web_url as customer_vendor_website,\n cast(null as TEXT) as delivery_type,\n cast(null as TEXT) as estimate_status,\n bill_join.total_amount,\n cast(null as numeric(28,6)) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n \n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n \n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n \n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n \n \n \n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n \n departments.fully_qualified_name as department_name,\n \n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n \n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n \n\n \n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n \n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\""}, "model.quickbooks.quickbooks__cash_flow_statement": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__cash_flow_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__cash_flow_statement"], "unique_id": "model.quickbooks.quickbooks__cash_flow_statement", "raw_code": "with cash_flow_classifications as (\n \n select *\n from {{ ref('int_quickbooks__cash_flow_classifications') }}\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__cash_flow_statement.sql", "original_file_path": "models/quickbooks__cash_flow_statement.sql", "name": "quickbooks__cash_flow_statement", "alias": "quickbooks__cash_flow_statement", "checksum": {"name": "sha256", "checksum": "08755f384d8c772516c9ee251fe73ceda61e54f61a0db87d7514347247d54ef7"}, "tags": [], "refs": [["int_quickbooks__cash_flow_classifications"]], "sources": [], "metrics": [], "description": "Table that provides all line items necessary to construct a cash flow statement.", "columns": {"account_unique_id": {"name": "account_unique_id", "description": "Unique identifier of the cash flow statement account line, dependent on account_id, class_id, source_relation and calendar_date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_period": {"name": "cash_flow_period", "description": "Timestamp of the first date for the cash flow period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_type": {"name": "cash_flow_type", "description": "The type of cash flow (Defaults are Cash or Cash Equivalents, Investing, Operating, Financing). The customer can also configure the cash flow type; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_ordinal": {"name": "cash_flow_ordinal", "description": "Integer value to order the account within final cash flow statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_ending_period": {"name": "cash_ending_period", "description": "The total ending period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_beginning_period": {"name": "cash_beginning_period", "description": "The total beginning period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_net_period": {"name": "cash_net_period", "description": "The net cash change from the beginning to the end of the period for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__cash_flow_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.5778902, "compiled_code": "with cash_flow_classifications as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\"\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\""}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__transfer_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry", "raw_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith transfers as (\n\n select *\n from {{ ref('stg_quickbooks__transfer') }}\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "name": "int_quickbooks__transfer_double_entry", "alias": "int_quickbooks__transfer_double_entry", "checksum": {"name": "sha256", "checksum": "08b6fc8e3b028b3ff6f5f7b2ca25776e1531ef90e62bc71c95a7c3bad16710ed"}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the receiving account and a credit record to the sending account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.5642061, "compiled_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith transfers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\""}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_memo_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry", "raw_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "name": "int_quickbooks__credit_memo_double_entry", "alias": "int_quickbooks__credit_memo_double_entry", "checksum": {"name": "sha256", "checksum": "e0d97e4dccb230ea8aa258b5cb258e43881fe5de6ded72058163645cc705d3ea"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.561735, "compiled_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\""}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__refund_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "name": "int_quickbooks__refund_receipt_double_entry", "alias": "int_quickbooks__refund_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "8324e59e150115fdea6272a77fc9868ff3343f9d6768236f654d670ee7b02e5e"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified asset account and a credit record the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.56369, "compiled_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__journal_entry_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry", "raw_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "name": "int_quickbooks__journal_entry_double_entry", "alias": "int_quickbooks__journal_entry_double_entry", "checksum": {"name": "sha256", "checksum": "5a1a31080d550c5cea879594f8ac10b70b52dd0d3403ec150a50c3375bd8560e"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that provides the debit and credit records of a journal entry transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.562819, "compiled_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\""}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "name": "int_quickbooks__bill_payment_double_entry", "alias": "int_quickbooks__bill_payment_double_entry", "checksum": {"name": "sha256", "checksum": "7681540e1b8b756efaf589a11195020a1300b6ed9f70d52546a5871054c29b95"}, "tags": [], "refs": [["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts payable and a credit record to the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.5614238, "compiled_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith bill_payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\""}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__deposit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n\n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "name": "int_quickbooks__deposit_double_entry", "alias": "int_quickbooks__deposit_double_entry", "checksum": {"name": "sha256", "checksum": "9f702e78f5e48d8771a24b5e372b77bfb41fa9e78fed48c4123fdc3770b40296"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to either undeposited funds or a specific other account indicated in the deposit line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.562289, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\""}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__purchase_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry", "raw_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\npurchase_lines as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "name": "int_quickbooks__purchase_double_entry", "alias": "int_quickbooks__purchase_double_entry", "checksum": {"name": "sha256", "checksum": "6928b3fc773e3881f03746c0e7c86e9edb1169d5bf456c219694efc2eaefcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__purchase_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to a specified expense account and a credit record to the payment account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate"}, "created_at": 1676401664.563429, "compiled_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\npurchase_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\""}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__sales_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "name": "int_quickbooks__sales_receipt_double_entry", "alias": "int_quickbooks__sales_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "b2e5219c2adae8a87d3d6e813730f3344cbae070efdec77f2fc16e63abdcc857"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to the specified asset account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.563947, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__vendor_credit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "raw_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "name": "int_quickbooks__vendor_credit_double_entry", "alias": "int_quickbooks__vendor_credit_double_entry", "checksum": {"name": "sha256", "checksum": "d5b5913d12d2880d19f2b17f6a3fd395a84ea8b7d2a5e965a25cf04ba9534236"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to payable account and a credit record to the expense account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.564461, "compiled_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\""}, "model.quickbooks.int_quickbooks__bill_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "name": "int_quickbooks__bill_double_entry", "alias": "int_quickbooks__bill_double_entry", "checksum": {"name": "sha256", "checksum": "95a197d82bcd77753581efdd590be8ad9652f318837a2380dd9e7b50d9b812a9"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.56108, "compiled_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\""}, "model.quickbooks.int_quickbooks__payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry", "raw_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith payments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "name": "int_quickbooks__payment_double_entry", "alias": "int_quickbooks__payment_double_entry", "checksum": {"name": "sha256", "checksum": "c8e70c76ebc6641a9817adca7d113a3997d9c3376df1b29ca25201c32cdb33ec"}, "tags": [], "refs": [["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.563162, "compiled_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__invoice_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\n\n{% if var('using_invoice_bundle', True) %}\n\ninvoice_bundles as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line_bundle') }}\n),\n\nbundles as (\n\n select *\n from {{ ref('stg_quickbooks__bundle') }}\n),\n\nbundle_items as (\n\n select *\n from {{ ref('stg_quickbooks__bundle_item') }}\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n{% endif %}\n\nar_accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n {% if var('using_invoice_bundle', True) %}\n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n {% else %}\n coalesce(invoice_lines.account_id, items.income_account_id) as account_id,\n {% endif %}\n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n {% if var('using_invoice_bundle', True) %}\n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n {% else %}\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id) is not null \n\n {% endif %}\n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "name": "int_quickbooks__invoice_double_entry", "alias": "int_quickbooks__invoice_double_entry", "checksum": {"name": "sha256", "checksum": "ff00ba3d0bd575bb253363bfd2fbcd791cedc27c83d757af54d0e5adbccda142"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"], ["stg_quickbooks__account"], ["stg_quickbooks__invoice_line_bundle"], ["stg_quickbooks__bundle"], ["stg_quickbooks__bundle_item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676401664.5625548, "compiled_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\n\n\n\ninvoice_bundles as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n),\n\nbundles as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n),\n\nbundle_items as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n\n\nar_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n \n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n \n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n \n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n \n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__invoice_transactions"], "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__invoice_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__invoice_transactions.sql", "name": "int_quickbooks__invoice_transactions", "alias": "int_quickbooks__invoice_transactions", "checksum": {"name": "sha256", "checksum": "e02921a0f4ebbd0d0bfeee8cc7ed8136497c3d7e2cb5826922c2fc2f164e01b9"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__invoice_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401663.397239, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\""}, "model.quickbooks.int_quickbooks__bill_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__bill_transactions"], "unique_id": "model.quickbooks.int_quickbooks__bill_transactions", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }} \n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__bill_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__bill_transactions.sql", "name": "int_quickbooks__bill_transactions", "alias": "int_quickbooks__bill_transactions", "checksum": {"name": "sha256", "checksum": "42a5c76a8c69ea3b6f162addd1c69d225b8ff912543b8d5502712ae76b506ae2"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the bill and corresponding bill lines into a single bill transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__bill_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.564717, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\" \n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\""}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__journal_entry_transactions"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as {{ dbt.type_string() }}) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__journal_entry_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "name": "int_quickbooks__journal_entry_transactions", "alias": "int_quickbooks__journal_entry_transactions", "checksum": {"name": "sha256", "checksum": "5df763182668b5667cc91f518169b228c9726c03a97626e4bb7ae5a710602bf7"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that joins the journal entry and corresponding journal entry lines into a single journal entry transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.565483, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as TEXT) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\""}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__refund_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "name": "int_quickbooks__refund_receipt_transactions", "alias": "int_quickbooks__refund_receipt_transactions", "checksum": {"name": "sha256", "checksum": "097df40c7a3b5554bec4b1f96af80c7065d5ed99f9a3877f5b8c639263c3a35d"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the refund receipt and corresponding refund receipt lines into a single refund receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.5659919, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\""}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__vendor_credit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n \n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "name": "int_quickbooks__vendor_credit_transactions", "alias": "int_quickbooks__vendor_credit_transactions", "checksum": {"name": "sha256", "checksum": "15380e78bc581c3192a7370b6c62f9805accc3b5bda2f200f68aa066db4785b0"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the vendor credit and corresponding vendor credit lines into a single vendor credit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.5665998, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\""}, "model.quickbooks.int_quickbooks__purchase_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__purchase_transactions"], "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions", "raw_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_purchase', True)) }}\n\nwith purchases as (\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\npurchase_lines as (\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__purchase_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__purchase_transactions.sql", "name": "int_quickbooks__purchase_transactions", "alias": "int_quickbooks__purchase_transactions", "checksum": {"name": "sha256", "checksum": "bead953d0576140a7d67c3764c62993abf6809d601ccd20000aa5ea7a73c7172"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__item"], ["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "Table that joins the purchase and corresponding purchase lines into a single purchase transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__purchase_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.565738, "compiled_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n\n\nwith purchases as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\npurchase_lines as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\""}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__sales_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions", "raw_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "name": "int_quickbooks__sales_receipt_transactions", "alias": "int_quickbooks__sales_receipt_transactions", "checksum": {"name": "sha256", "checksum": "2e01630bf25cd736b93b07ec7b98887fbe62d8f9f34fd4fed820862a44d1c68d"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the sales receipt and corresponding sales receipt lines into a single sales receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.566338, "compiled_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\""}, "model.quickbooks.int_quickbooks__deposit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__deposit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n \n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as {{ dbt.type_string() }}) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__deposit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__deposit_transactions.sql", "name": "int_quickbooks__deposit_transactions", "alias": "int_quickbooks__deposit_transactions", "checksum": {"name": "sha256", "checksum": "750c679ea708e917039ddcc2502e672fb77f769a9370028c77f7beef15868fc6"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "Table that joins the deposit and corresponding deposit lines into a single deposit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__deposit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.565228, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as TEXT) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\""}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__credit_memo_transactions"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__credit_memo_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "name": "int_quickbooks__credit_memo_transactions", "alias": "int_quickbooks__credit_memo_transactions", "checksum": {"name": "sha256", "checksum": "e671668964b67084e2953c82076642f09a1cf6055a3366b15fc9eec8a77222ae"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the credit memo and credit memo lines into a single credit memo transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.564974, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\""}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__cash_flow_classifications"], "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications", "raw_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n {{ dbt_utils.generate_surrogate_key(['account_id', 'source_relation', 'calendar_date', 'class_id']) }} as account_unique_id\n from {{ ref('quickbooks__balance_sheet') }}\n),\n \n{% if var('cash_flow_statement_type_ordinal') %}\nordinals as (\n \n select\n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n cast(cash_flow_type as {{ dbt.type_string() }}) as cash_flow_type,\n ordinal\n from {{ var('cash_flow_statement_type_ordinal') }}\n),\n{% endif %}\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n {% if var('cash_flow_statement_type_ordinal') %}\n coalesce(account_number_ordinal.cash_flow_type, account_sub_type_ordinal.cash_flow_type, account_type_ordinal.cash_flow_type, account_class_ordinal.cash_flow_type) as cash_flow_type,\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as cash_flow_ordinal \n {% else %}\n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n {% endif %}\n\n from cash_flow_key\n \n {% if var('cash_flow_statement_type_ordinal') %}\n\n {% set cash_flow_type_fields = ['account_number', 'account_sub_type', 'account_type', 'account_class'] %}\n \n {% for cash_flow_type_field in cash_flow_type_fields %} \n left join ordinals as {{ cash_flow_type_field }}_ordinal\n on cash_flow_key.{{ cash_flow_type_field }} = {{ cash_flow_type_field }}_ordinal.{{ cash_flow_type_field }}\n {% endfor %}\n \n {% endif %}\n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__cash_flow_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__cash_flow_classifications.sql", "name": "int_quickbooks__cash_flow_classifications", "alias": "int_quickbooks__cash_flow_classifications", "checksum": {"name": "sha256", "checksum": "c76ef90529e969f875f192f8a236430430ab2c9d2dbf52885875ee854a1a3886"}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "Table that provides additional classifications necessary for the cash flow statement, like the cash flow type and ordinals.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__cash_flow_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.568882, "compiled_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n \n \nmd5(cast(coalesce(cast(account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(calendar_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(class_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as account_unique_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n),\n \n\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n \n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n \n\n from cash_flow_key\n \n \n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\""}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.int_quickbooks__general_ledger_date_spine"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_balances"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances", "raw_code": "with general_ledger as (\n\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ngl_accounting_periods as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_date_spine') }}\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast({{ dbt.date_trunc(\"year\", \"transaction_date\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"transaction_date\") }} as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n {{ dbt_utils.group_by(14) }}\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_balances.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_balances.sql", "name": "int_quickbooks__general_ledger_balances", "alias": "int_quickbooks__general_ledger_balances", "checksum": {"name": "sha256", "checksum": "23b725ae7388455419b95572539a4ceb3b7fdaf0d7ee77154d11acedae1f118c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["int_quickbooks__general_ledger_date_spine"]], "sources": [], "metrics": [], "description": "Table that aggregates quickbooks__general_ledger account level transactions per period into a period_beginning_balance, period_ending_balance, and period_net_change for each period through the use of the int_quickbooks__general_ledger_date_spine model. Further, period balances are only applied to balance sheet accounts while income statement accounts do not have a persisting balance rather a period net change. Please note, a period equates to one month. \n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_balances.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.567623, "compiled_code": "with general_ledger as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ngl_accounting_periods as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\"\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast(date_trunc('year', transaction_date) as date) as date_year,\n cast(date_trunc('month', transaction_date) as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\""}, "model.quickbooks.int_quickbooks__account_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__account_classifications"], "unique_id": "model.quickbooks.int_quickbooks__account_classifications", "raw_code": "with accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__account_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__account_classifications.sql", "name": "int_quickbooks__account_classifications", "alias": "int_quickbooks__account_classifications", "checksum": {"name": "sha256", "checksum": "757b4fa3587f332bcccc9e1b7a494c99166bbd77f93a3be09bd1d027e73315f4"}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that adds missing detail to the account table. This table adds the following:\nA financial statement helper field that specifies the account as either a balance sheet or income statement account.\nAdds a transaction type to the specified account. The transaction type (debit or credit) is the type of transaction that increases the account.\nAdds a multiplier of -1 to Liability and Equity accounts to offset the account balance so liability and equity accounts do not show up as negative balances.\nCreates a new classification field that fills in the gaps if classifications were incorrectly set on certain s. For more information on how these classifications were determined you can refer to the [QuickBooks API Docs](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account) that was used as reference.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__account_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.5668612, "compiled_code": "with accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\""}, "model.quickbooks.int_quickbooks__expenses_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric"], "nodes": ["model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__expenses_union"], "unique_id": "model.quickbooks.int_quickbooks__expenses_union", "raw_code": "with expense_union as (\n\n select *\n from {{ ref('int_quickbooks__purchase_transactions') }}\n\n {% if var('using_bill', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__bill_transactions') }}\n {% endif %} \n\n {% if var('using_journal_entry', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__journal_entry_transactions')}}\n {% endif %} \n\n {% if var('using_deposit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__deposit_transactions')}}\n {% endif %} \n\n {% if var('using_vendor_credit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__vendor_credit_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nexpense_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as {{ dbt.type_string() }}) as item_id,\n cast(null as {{ dbt.type_numeric() }}) as item_quantity,\n cast(null as {{ dbt.type_numeric() }}) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__expenses_union.sql", "original_file_path": "models/intermediate/int_quickbooks__expenses_union.sql", "name": "int_quickbooks__expenses_union", "alias": "int_quickbooks__expenses_union", "checksum": {"name": "sha256", "checksum": "1281caef70631920ac2b25aef0d702c469f4641eb0b173e49c244aa064bf1d34"}, "tags": [], "refs": [["int_quickbooks__purchase_transactions"], ["int_quickbooks__bill_transactions"], ["int_quickbooks__journal_entry_transactions"], ["int_quickbooks__deposit_transactions"], ["int_quickbooks__vendor_credit_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of an expense. The expense transactional tables included are: int_quickbooks__purchase_transactions, int_quickbooks__bill_transactions, int_quickbooks_journal_entry_transactions, int_quickbooks__deposit_transactions, int_quickbooks__vendor_credit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-expense transactions an inner join on accounts with the sub_type equal to Expense is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__expenses_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.56737, "compiled_code": "with expense_union as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\"\n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nexpense_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as TEXT) as item_id,\n cast(null as numeric(28,6)) as item_quantity,\n cast(null as numeric(28,6)) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n \n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\""}, "model.quickbooks.int_quickbooks__invoice_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__invoice_join"], "unique_id": "model.quickbooks.int_quickbooks__invoice_join", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice')) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_linked as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_linked_txn') }}\n),\n\n{% if var('using_estimate', True) %}\nestimates as (\n\n select *\n from {{ ref('stg_quickbooks__estimate') }}\n),\n{% endif %}\n\npayments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines_payment as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as {{ dbt.type_string() }}) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n {% if var('using_estimate', True) %}\n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n {% else %}\n cast(null as {{ dbt.type_numeric() }}) as estimate_total_amount,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n\n {% endif %}\n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n {% if var('using_estimate', True) %}\n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n {% endif %}\n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n {{ dbt_utils.group_by(15) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__invoice_join.sql", "original_file_path": "models/intermediate/int_quickbooks__invoice_join.sql", "name": "int_quickbooks__invoice_join", "alias": "int_quickbooks__invoice_join", "checksum": {"name": "sha256", "checksum": "541d06a75aca5faa32943aaf2e74935402d051e7fdfd0887badea48b38ae62c1"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_linked_txn"], ["stg_quickbooks__estimate"], ["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single invoice transactions with the corresponding payment (if paid) and corresponding estimate (if provided).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__invoice_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.568127, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_linked as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\n),\n\n\nestimates as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n),\n\n\npayments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines_payment as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as TEXT) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n \n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n \n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n \n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n \n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\""}, "model.quickbooks.int_quickbooks__retained_earnings": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.group_by", "macro.dbt.type_string", "macro.dbt.date_trunc", "macro.dbt.last_day"], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__retained_earnings"], "unique_id": "model.quickbooks.int_quickbooks__retained_earnings", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as {{ dbt.type_string() }}) as account_id,\n source_relation,\n cast('9999-00' as {{ dbt.type_string() }}) as account_number,\n cast('Net Income Adjustment' as {{ dbt.type_string() }}) as account_name,\n false as is_sub_account,\n cast(null as {{ dbt.type_string() }}) as parent_account_number,\n cast(null as {{ dbt.type_string() }}) as parent_account_name,\n cast('Equity' as {{ dbt.type_string() }}) as account_type,\n cast('RetainedEarnings' as {{ dbt.type_string() }}) as account_sub_type,\n cast('Equity' as {{ dbt.type_string() }}) as account_class,\n cast(null as {{ dbt.type_string() }}) as class_id,\n cast('balance_sheet' as {{ dbt.type_string() }}) as financial_statement_helper,\n cast({{ dbt.date_trunc(\"year\", \"period_first_day\") }} as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n {{ dbt.last_day(\"period_first_day\", \"month\") }} as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__retained_earnings.sql", "original_file_path": "models/intermediate/int_quickbooks__retained_earnings.sql", "name": "int_quickbooks__retained_earnings", "alias": "int_quickbooks__retained_earnings", "checksum": {"name": "sha256", "checksum": "bc108322a5b746dbee6f3ac5d80bee9f601f55568e9f5547780bf107d3d549a9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"]], "sources": [], "metrics": [], "description": "Table that creates an adjusting entry for retained earnings each month. The retained earnings account is created as account_id 9999 and is listed as an Equity class. This table generates the retained earnings period beginning balance, ending balance, and net change by adding the period revenues and subtracting by the period expenses. This total is set as the period ending balance. From the period ending balance the net change and beginning balances are calculated. This is table is then unioned with in_quickbooks__general_ledger_balances.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__retained_earnings.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.568631, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n group by 1,2 \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n group by 1,2 \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as TEXT) as account_id,\n source_relation,\n cast('9999-00' as TEXT) as account_number,\n cast('Net Income Adjustment' as TEXT) as account_name,\n false as is_sub_account,\n cast(null as TEXT) as parent_account_number,\n cast(null as TEXT) as parent_account_name,\n cast('Equity' as TEXT) as account_type,\n cast('RetainedEarnings' as TEXT) as account_sub_type,\n cast('Equity' as TEXT) as account_class,\n cast(null as TEXT) as class_id,\n cast('balance_sheet' as TEXT) as financial_statement_helper,\n cast(date_trunc('year', period_first_day) as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', period_first_day) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\""}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt.date_trunc", "macro.dbt.last_day", "macro.dbt.run_query"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_date_spine"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine", "raw_code": "-- depends_on: {{ ref('quickbooks__general_ledger') }}\n\nwith spine as (\n\n {% if execute %}\n {% set first_date_query %}\n select min( transaction_date ) as min_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n {% set first_date = run_query(first_date_query).columns[0][0]|string %}\n \n {% if target.type == 'postgres' %}\n {% set first_date_adjust = \"cast('\" ~ first_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set first_date_adjust = \"'\" ~ first_date[0:10] ~ \"'\" %}\n\n {% endif %}\n\n {% else %} {% set first_date_adjust = \"'2000-01-01'\" %}\n {% endif %}\n\n {% if execute %}\n {% set last_date_query %}\n select max( transaction_date ) as max_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n\n {% set current_date_query %}\n select current_date\n {% endset %}\n\n {% if run_query(current_date_query).columns[0][0]|string < run_query(last_date_query).columns[0][0]|string %}\n\n {% set last_date = run_query(last_date_query).columns[0][0]|string %}\n\n {% else %} {% set last_date = run_query(current_date_query).columns[0][0]|string %}\n {% endif %}\n \n {% if target.type == 'postgres' %}\n {% set last_date_adjust = \"cast('\" ~ last_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set last_date_adjust = \"'\" ~ last_date[0:10] ~ \"'\" %}\n\n {% endif %}\n {% endif %}\n\n {{ dbt_utils.date_spine(\n datepart=\"month\",\n start_date=first_date_adjust,\n end_date=dbt.dateadd(\"month\", 1, last_date_adjust)\n )\n }}\n),\n\ngeneral_ledger as (\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ndate_spine as (\n select\n cast({{ dbt.date_trunc(\"year\", \"date_month\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date) as period_first_day,\n {{ dbt.last_day(\"date_month\", \"month\") }} as period_last_day,\n row_number() over (order by cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_date_spine.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "name": "int_quickbooks__general_ledger_date_spine", "alias": "int_quickbooks__general_ledger_date_spine", "checksum": {"name": "sha256", "checksum": "aaf951b7837338c61415eb69d5d4518f45fbf6f5a78c0781833a64a1f08a596c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "Table that creates a date spine by month with the first date being the minimum transaction date from the quickbooks__general_ledger model and the last date being one month after the last transaction date from the quickbooks__general_ledger model.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401664.567876, "compiled_code": "-- depends_on: \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n\nwith spine as (\n\n \n \n \n \n \n \n\n \n\n \n\n \n \n\n \n\n \n \n \n \n \n\n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 50.0\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-02' as date) + ((interval '1 month') * (row_number() over (order by 1) - 1))\n\n\n ) as date_month\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_month <= \n\n cast('2023-02-14' as date) + ((interval '1 month') * (1))\n\n\n\n)\n\nselect * from filtered\n\n\n),\n\ngeneral_ledger as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ndate_spine as (\n select\n cast(date_trunc('year', date_month) as date) as date_year,\n cast(date_trunc('month', date_month) as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', date_month) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n row_number() over (order by cast(date_trunc('month', date_month) as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\""}, "model.quickbooks.int_quickbooks__bill_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__bill_join"], "unique_id": "model.quickbooks.int_quickbooks__bill_join", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nbills_linked as (\n\n select *\n from {{ ref('stg_quickbooks__bill_linked_txn') }}\n),\n\nbill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as {{ dbt.type_string() }}) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n {{ dbt_utils.group_by(10) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__bill_join.sql", "original_file_path": "models/intermediate/int_quickbooks__bill_join.sql", "name": "int_quickbooks__bill_join", "alias": "int_quickbooks__bill_join", "checksum": {"name": "sha256", "checksum": "26e2ff679cccf1e52083b6e91f4587982d85a6d1f2747ba4733e135992d53f26"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__bill_linked_txn"], ["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single bill transaction with the corresponding bill payment (if paid).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__bill_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.567113, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nbills_linked as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\n),\n\nbill_payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as TEXT) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n group by 1,2,3,4,5,6,7,8,9,10 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_join\""}, "model.quickbooks.int_quickbooks__sales_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true", "macro.fivetran_utils.enabled_vars"], "nodes": ["model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__sales_union"], "unique_id": "model.quickbooks.int_quickbooks__sales_union", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice'])) }}\n\nwith sales_union as (\n\n {% if var('using_sales_receipt', True) %}\n select *\n from {{ ref('int_quickbooks__sales_receipt_transactions') }}\n {% endif %}\n\n {% if fivetran_utils.enabled_vars(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n\n {% else %}\n\n {% if var('using_invoice', True) %}\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n {% endif %} \n \n {% endif %}\n\n {% if var('using_refund_receipt', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__refund_receipt_transactions') }}\n {% endif %}\n\n {% if var('using_credit_memo', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__credit_memo_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nincome_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__sales_union.sql", "original_file_path": "models/intermediate/int_quickbooks__sales_union.sql", "name": "int_quickbooks__sales_union", "alias": "int_quickbooks__sales_union", "checksum": {"name": "sha256", "checksum": "e8efad88f641adc4d0e72e7bbb6334dc2af414b98b31c8b570dce3ca8bc4a917"}, "tags": [], "refs": [["int_quickbooks__sales_receipt_transactions"], ["int_quickbooks__invoice_transactions"], ["int_quickbooks__refund_receipt_transactions"], ["int_quickbooks__credit_memo_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of a sale. The sale transactional tables are: int_quickbooks__sales_receipt_transactions int_quickbooks__invoice_transactions, int_quickbooks__credit_memo_transactions, int_quickbooks__refund_receipt_transactions, int_quickbooks__journal_entry_transactions, int_quickbooks__deposit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-income transactions an inner join on accounts with the sub_type equal to Income is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__sales_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676401664.5683799, "compiled_code": "\n\nwith sales_union as (\n\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\"\n\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nincome_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n \n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_union\""}, "analysis.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__balance_sheet"], "unique_id": "analysis.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__balance_sheet.sql", "original_file_path": "analysis/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2d430f9f0571cf16e08e31820360dbb610c24d5fdc1ab38bd2943b4b7161bbda"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401663.545272, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "analysis.quickbooks.quickbooks__income_statement": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__income_statement"], "unique_id": "analysis.quickbooks.quickbooks__income_statement", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__income_statement.sql", "original_file_path": "analysis/quickbooks__income_statement.sql", "name": "quickbooks__income_statement", "alias": "quickbooks__income_statement", "checksum": {"name": "sha256", "checksum": "6a2926427516128d537ff107ec14a2338f89f3f2dec1d861ec7daab31fd2c87e"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__income_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676401663.548782, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__journal_entry_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_line_tmp')),\n staging_columns=get_journal_entry_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry_line.sql", "original_file_path": "models/stg_quickbooks__journal_entry_line.sql", "name": "stg_quickbooks__journal_entry_line", "alias": "stg_quickbooks__journal_entry_line", "checksum": {"name": "sha256", "checksum": "4a44ae6affd5281ee7cc64e05384fdb7ad18b15c18185cc970f9bd639bdf7a34"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Account id of the account which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.69917, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n billable_status\n \n as \n \n billable_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n posting_type\n \n as \n \n posting_type\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_applicable_on\n \n as \n \n tax_applicable_on\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as TEXT) as journal_entry_id,\n index,\n cast(account_id as TEXT) as account_id,\n amount,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as TEXT) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__transfer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__transfer_tmp')),\n staging_columns=get_transfer_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__transfer.sql", "original_file_path": "models/stg_quickbooks__transfer.sql", "name": "stg_quickbooks__transfer", "alias": "stg_quickbooks__transfer", "checksum": {"name": "sha256", "checksum": "2e5aeff4520b116401c48251bf9a3f2db443857c8c8f7c07aaf5b41286878746"}, "tags": [], "refs": [["stg_quickbooks__transfer_tmp"], ["stg_quickbooks__transfer_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"transfer_id": {"name": "transfer_id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "Account id of the account which the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "Account id of the account which the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__transfer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.731466, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n from_account_id\n \n as \n \n from_account_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n to_account_id\n \n as \n \n to_account_id\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as transfer_id,\n amount,\n cast(from_account_id as TEXT) as from_account_id,\n cast(to_account_id as TEXT) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_line_tmp')),\n staging_columns=get_bill_payment_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment_line.sql", "original_file_path": "models/stg_quickbooks__bill_payment_line.sql", "name": "stg_quickbooks__bill_payment_line", "alias": "stg_quickbooks__bill_payment_line", "checksum": {"name": "sha256", "checksum": "e0de0b712f688b7f8628fa17430dc3d700042e37a53783d3e8fc7ee0272a71db"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6531389, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_credit_card_id\n \n as \n \n bill_payment_credit_card_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n linked_bill_payment_id\n \n as \n \n linked_bill_payment_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as TEXT) as bill_payment_id,\n index,\n amount,\n cast(bill_id as TEXT) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_line_tmp')),\n staging_columns=get_payment_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment_line.sql", "original_file_path": "models/stg_quickbooks__payment_line.sql", "name": "stg_quickbooks__payment_line", "alias": "stg_quickbooks__payment_line", "checksum": {"name": "sha256", "checksum": "62737fcbdd45af89bc14370b70f36cfbd94391602da7a6afb4dd97e4a1120429"}, "tags": [], "refs": [["stg_quickbooks__payment_line_tmp"], ["stg_quickbooks__payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.7032828, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as TEXT) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as TEXT) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_tmp')),\n staging_columns=get_vendor_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor.sql", "original_file_path": "models/stg_quickbooks__vendor.sql", "name": "stg_quickbooks__vendor", "alias": "stg_quickbooks__vendor", "checksum": {"name": "sha256", "checksum": "6b6d5e653208581f032f6850766879795733912c64f11163419584210d386970"}, "tags": [], "refs": [["stg_quickbooks__vendor_tmp"], ["stg_quickbooks__vendor_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"vendor_id": {"name": "vendor_id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_vendor_1099": {"name": "is_vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.740448, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone\n \n as \n \n alternate_phone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n other_contacts\n \n as \n \n other_contacts\n \n, \n \n \n primary_phone\n \n as \n \n primary_phone\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_identifier\n \n as \n \n tax_identifier\n \n, \n \n \n term_id\n \n as \n \n term_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_1099\n \n as \n \n vendor_1099\n \n, \n \n \n web_url\n \n as \n \n web_url\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as TEXT) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_tmp')),\n staging_columns=get_invoice_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line.sql", "original_file_path": "models/stg_quickbooks__invoice_line.sql", "name": "stg_quickbooks__invoice_line", "alias": "stg_quickbooks__invoice_line", "checksum": {"name": "sha256", "checksum": "acc22a519a861cd717e417884b61bc191432e1c46a31ea8ebde689e6f4223177"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_tmp"], ["stg_quickbooks__invoice_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.687397, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as TEXT) as bundle_id,\n cast(account_id as TEXT) as account_id,\n cast(item_id as TEXT) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_tmp') }}\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_tmp')),\n staging_columns=get_estimate_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as estimate_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate.sql", "original_file_path": "models/stg_quickbooks__estimate.sql", "name": "stg_quickbooks__estimate", "alias": "stg_quickbooks__estimate", "checksum": {"name": "sha256", "checksum": "501fe174a3a77c1f92407b060600528ce9e3b198e143ab2985f5a0f0e9c95c70"}, "tags": [], "refs": [["stg_quickbooks__estimate_tmp"], ["stg_quickbooks__estimate_tmp"]], "sources": [], "metrics": [], "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the estimate was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.67989, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\"\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepted_by\n \n as \n \n accepted_by\n \n, \n \n \n accepted_date\n \n as \n \n accepted_date\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n expiration_date\n \n as \n \n expiration_date\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as estimate_id,\n cast(class_id as TEXT) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_line_tmp')),\n staging_columns=get_credit_memo_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo_line.sql", "original_file_path": "models/stg_quickbooks__credit_memo_line.sql", "name": "stg_quickbooks__credit_memo_line", "alias": "stg_quickbooks__credit_memo_line", "checksum": {"name": "sha256", "checksum": "b7cf6d56a640a9f0700a3620a94fc61a422c8db6dfdbcbbb5939e0fd80c5a3b7"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line_tmp"], ["stg_quickbooks__credit_memo_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.666482, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as TEXT) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_tmp')),\n staging_columns=get_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle.sql", "original_file_path": "models/stg_quickbooks__bundle.sql", "name": "stg_quickbooks__bundle", "alias": "stg_quickbooks__bundle", "checksum": {"name": "sha256", "checksum": "8e3f27ad4f72eb020a1c32b3654e9306ef2f878a0c52ac8356b695a0c03c2611"}, "tags": [], "refs": [["stg_quickbooks__bundle_tmp"], ["stg_quickbooks__bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the bundle was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6614568, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n print_grouped_items\n \n as \n \n print_grouped_items\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__department_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__department_tmp')),\n staging_columns=get_department_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__department.sql", "original_file_path": "models/stg_quickbooks__department.sql", "name": "stg_quickbooks__department", "alias": "stg_quickbooks__department", "checksum": {"name": "sha256", "checksum": "61c0a5d8287b3e73bbee2986e1d0914da2cdc67a88534bd2be26264eb6e29a67"}, "tags": [], "refs": [["stg_quickbooks__department_tmp"], ["stg_quickbooks__department_tmp"]], "sources": [], "metrics": [], "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"department_id": {"name": "department_id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the department was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_department": {"name": "is_sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if is_sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__department.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.673451, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_department_id\n \n as \n \n parent_department_id\n \n, \n \n \n sub_department\n \n as \n \n sub_department\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "raw_code": "with base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_line_tmp')),\n staging_columns=get_purchase_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_line.sql", "original_file_path": "models/stg_quickbooks__purchase_line.sql", "name": "stg_quickbooks__purchase_line", "alias": "stg_quickbooks__purchase_line", "checksum": {"name": "sha256", "checksum": "1ffe50688ea656d1019565cd7238adef008dc1e1e7e97ba2048bb6c4628f873d"}, "tags": [], "refs": [["stg_quickbooks__purchase_line_tmp"], ["stg_quickbooks__purchase_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based expense purchase line", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.708535, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as TEXT) as purchase_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__purchase_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_tmp')),\n staging_columns=get_purchase_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase.sql", "original_file_path": "models/stg_quickbooks__purchase.sql", "name": "stg_quickbooks__purchase", "alias": "stg_quickbooks__purchase", "checksum": {"name": "sha256", "checksum": "cde15943157fb1be413075f3aa62e1670fb0e6bb5118ca59ea5f75f816487d4a"}, "tags": [], "refs": [["stg_quickbooks__purchase_tmp"], ["stg_quickbooks__purchase_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of purchase expenses.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Specifies the account reference to which this purchase is applied based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.7116249, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remit_to_address_id\n \n as \n \n remit_to_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as purchase_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n cast(vendor_id as TEXT) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_line_tmp')),\n staging_columns=get_refund_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id, \n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt_line.sql", "original_file_path": "models/stg_quickbooks__refund_receipt_line.sql", "name": "stg_quickbooks__refund_receipt_line", "alias": "stg_quickbooks__refund_receipt_line", "checksum": {"name": "sha256", "checksum": "6e468b38cb9d0067dad366c52ec5e366a4455ed5158fc38d6502f1520529cfe9"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line_tmp"], ["stg_quickbooks__refund_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account which the refund is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.721289, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as TEXT) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id, \n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_item_tmp')),\n staging_columns=get_bundle_item_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle_item.sql", "original_file_path": "models/stg_quickbooks__bundle_item.sql", "name": "stg_quickbooks__bundle_item", "alias": "stg_quickbooks__bundle_item", "checksum": {"name": "sha256", "checksum": "c5e85a89debd33e5f789ef58fa05a1bf931b63a0451c0ab7d8f6b0b565895a4d"}, "tags": [], "refs": [["stg_quickbooks__bundle_item_tmp"], ["stg_quickbooks__bundle_item_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing all bundle and item combinations.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bunlde and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle_item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.659637, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n item_quantity\n \n as \n \n item_quantity\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as TEXT) as bundle_id,\n cast(item_id as TEXT) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_tmp')),\n staging_columns=get_credit_memo_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo.sql", "original_file_path": "models/stg_quickbooks__credit_memo.sql", "name": "stg_quickbooks__credit_memo", "alias": "stg_quickbooks__credit_memo", "checksum": {"name": "sha256", "checksum": "3757765d000c8762afea93869ab1ba6c3d5f22574c7b3d90cd91f4ecb894f85d"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_tmp"], ["stg_quickbooks__credit_memo_tmp"]], "sources": [], "metrics": [], "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier for a credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.669067, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remaining_credit\n \n as \n \n remaining_credit\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as credit_memo_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as TEXT) as class_id,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_line_tmp')),\n staging_columns=get_sales_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt_line.sql", "original_file_path": "models/stg_quickbooks__sales_receipt_line.sql", "name": "stg_quickbooks__sales_receipt_line", "alias": "stg_quickbooks__sales_receipt_line", "checksum": {"name": "sha256", "checksum": "050d2104a9f5c48e73b726f52bc9472987b3581193a9694bc6744324ba43b82b"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line_tmp"], ["stg_quickbooks__sales_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.726946, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as TEXT) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_tmp')),\n staging_columns=get_sales_receipt_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt.sql", "original_file_path": "models/stg_quickbooks__sales_receipt.sql", "name": "stg_quickbooks__sales_receipt", "alias": "stg_quickbooks__sales_receipt", "checksum": {"name": "sha256", "checksum": "42e250594a269ed1d23ffcce0276c23ce7304ebaf20e55336607dcda12c46dae"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_tmp"], ["stg_quickbooks__sales_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account to which payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the sale was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the sold to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.729876, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as sales_receipt_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_linked_txn_tmp')),\n staging_columns=get_invoice_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_linked_txn.sql", "original_file_path": "models/stg_quickbooks__invoice_linked_txn.sql", "name": "stg_quickbooks__invoice_linked_txn", "alias": "stg_quickbooks__invoice_linked_txn", "checksum": {"name": "sha256", "checksum": "f2b779facddf42a3e62603a1254b1503c2b8a8f52dd69a27ed8a14625c1c5953"}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn_tmp"], ["stg_quickbooks__invoice_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.683923, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n charge_credit_id\n \n as \n \n charge_credit_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n reimburse_charge_id\n \n as \n \n reimburse_charge_id\n \n, \n \n \n statement_charge_id\n \n as \n \n statement_charge_id\n \n, \n \n \n time_activity_id\n \n as \n \n time_activity_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n cast(payment_id as TEXT) as payment_id,\n cast(estimate_id as TEXT) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_tmp')),\n staging_columns=get_invoice_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice.sql", "original_file_path": "models/stg_quickbooks__invoice.sql", "name": "stg_quickbooks__invoice", "alias": "stg_quickbooks__invoice", "checksum": {"name": "sha256", "checksum": "6d5a6ee2afa37a3567700cccf5831e3f27446303711dfaab707579d6c3ae4082"}, "tags": [], "refs": [["stg_quickbooks__invoice_tmp"], ["stg_quickbooks__invoice_tmp"]], "sources": [], "metrics": [], "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer reference is associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class to which the invoice is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.693562, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allow_ipnpayment\n \n as \n \n allow_ipnpayment\n \n, \n \n \n allow_online_achpayment\n \n as \n \n allow_online_achpayment\n \n, \n \n \n allow_online_credit_card_payment\n \n as \n \n allow_online_credit_card_payment\n \n, \n \n \n allow_online_payment\n \n as \n \n allow_online_payment\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n billing_bcc_email\n \n as \n \n billing_bcc_email\n \n, \n \n \n billing_cc_email\n \n as \n \n billing_cc_email\n \n, \n \n \n billing_email\n \n as \n \n billing_email\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n custom_sales_rep\n \n as \n \n custom_sales_rep\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit\n \n as \n \n deposit\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as invoice_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n cast(billing_address_id as TEXT) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as TEXT) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_tmp')),\n staging_columns=get_bill_payment_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment.sql", "original_file_path": "models/stg_quickbooks__bill_payment.sql", "name": "stg_quickbooks__bill_payment", "alias": "stg_quickbooks__bill_payment", "checksum": {"name": "sha256", "checksum": "20561d9a7ab619d2b9872cdb42a90fc7ac99f8eb10715a5ab068f9856fbeb3b5"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_tmp"], ["stg_quickbooks__bill_payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to a Department object specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6558468, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n check_bank_account_id\n \n as \n \n check_bank_account_id\n \n, \n \n \n check_print_status\n \n as \n \n check_print_status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_account_id\n \n as \n \n credit_card_account_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n pay_type\n \n as \n \n pay_type\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_bill_payment\n \n as \n \n process_bill_payment\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bill_payment_id,\n cast(check_bank_account_id as TEXT) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as TEXT) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_bundle_tmp')),\n staging_columns=get_invoice_line_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line_bundle.sql", "original_file_path": "models/stg_quickbooks__invoice_line_bundle.sql", "name": "stg_quickbooks__invoice_line_bundle", "alias": "stg_quickbooks__invoice_line_bundle", "checksum": {"name": "sha256", "checksum": "0f971477ce0e36654a8571afaa3c4de0ca048b529a182bd4d63aa79874676719"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle_tmp"], ["stg_quickbooks__invoice_line_bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line_bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.690103, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n discount_amount\n \n as \n \n discount_amount\n \n, \n \n \n discount_rate\n \n as \n \n discount_rate\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n invoice_line_index\n \n as \n \n invoice_line_index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n line_num\n \n as \n \n line_num\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n service_date\n \n as \n \n service_date\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n cast(class_id as TEXT) as class_id,\n description,\n amount,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(item_id as TEXT) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as TEXT) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "raw_code": "with base as (\n select *\n from {{ ref('stg_quickbooks__account_tmp') }}\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as account_id,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt.type_string() }}) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__account.sql", "original_file_path": "models/stg_quickbooks__account.sql", "name": "stg_quickbooks__account", "alias": "stg_quickbooks__account", "checksum": {"name": "sha256", "checksum": "c363c2c2ed0bd1cdb52064560957c75ad004c3e727f72b5b1bc361e9d8ccf37a"}, "tags": [], "refs": [["stg_quickbooks__account_tmp"], ["stg_quickbooks__account_tmp"]], "sources": [], "metrics": [], "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"account_id": {"name": "account_id", "description": "Unique identifier for an account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__account.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.64556, "compiled_code": "with base as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\"\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n account_sub_type\n \n as \n \n account_sub_type\n \n, \n \n \n account_type\n \n as \n \n account_type\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_sub_accounts\n \n as \n \n balance_with_sub_accounts\n \n, \n \n \n classification\n \n as \n \n classification\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_account_id\n \n as \n \n parent_account_id\n \n, \n \n \n sub_account\n \n as \n \n sub_account\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as account_id,\n cast(account_number as TEXT) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as TEXT) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_tmp')),\n staging_columns=get_payment_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment.sql", "original_file_path": "models/stg_quickbooks__payment.sql", "name": "stg_quickbooks__payment", "alias": "stg_quickbooks__payment", "checksum": {"name": "sha256", "checksum": "f8b0ad9217d505ec03b1868643d078257992cf4dc4a1b524cab1bc454aeb4a27"}, "tags": [], "refs": [["stg_quickbooks__payment_tmp"], ["stg_quickbooks__payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "Identifies the account for obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to a customer or job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.705631, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_payment\n \n as \n \n process_payment\n \n, \n \n \n receivable_account_id\n \n as \n \n receivable_account_id\n \n, \n \n \n reference_number\n \n as \n \n reference_number\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n unapplied_amount\n \n as \n \n unapplied_amount\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as TEXT) as receivable_account_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_line_tmp')),\n staging_columns=get_estimate_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate_line.sql", "original_file_path": "models/stg_quickbooks__estimate_line.sql", "name": "stg_quickbooks__estimate_line", "alias": "stg_quickbooks__estimate_line", "checksum": {"name": "sha256", "checksum": "08e406854edfa3b633a1c7b434b2ee9e010a4e6c1bc49de7a37ef44c8d277451"}, "tags": [], "refs": [["stg_quickbooks__estimate_line_tmp"], ["stg_quickbooks__estimate_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Reference to the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6828392, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as TEXT) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_linked_txn_tmp')),\n staging_columns=get_bill_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_linked_txn.sql", "original_file_path": "models/stg_quickbooks__bill_linked_txn.sql", "name": "stg_quickbooks__bill_linked_txn", "alias": "stg_quickbooks__bill_linked_txn", "checksum": {"name": "sha256", "checksum": "aa0410b4e6baafc2e21269e6857ef88e84961b061e5007b0a7bb117c314f682d"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment id record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.651074, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(bill_payment_id as TEXT) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__address_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__address_tmp')),\n staging_columns=get_address_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__address.sql", "original_file_path": "models/stg_quickbooks__address.sql", "name": "stg_quickbooks__address", "alias": "stg_quickbooks__address", "checksum": {"name": "sha256", "checksum": "df30cdfedd8bc9f3eb2e7e7e62f55f3c1d4e1ac0a53012e4e2b567c8d4f34d63"}, "tags": [], "refs": [["stg_quickbooks__address_tmp"], ["stg_quickbooks__address_tmp"]], "sources": [], "metrics": [], "description": "Table containing address details.", "columns": {"address_id": {"name": "address_id", "description": "Unique identifier for an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_1": {"name": "address_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_2": {"name": "address_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__address.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.647221, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_sub_division_code\n \n as \n \n country_sub_division_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n line_1\n \n as \n \n line_1\n \n, \n \n \n line_2\n \n as \n \n line_2\n \n, \n \n \n line_3\n \n as \n \n line_3\n \n, \n \n \n line_4\n \n as \n \n line_4\n \n, \n \n \n line_5\n \n as \n \n line_5\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n postal_code\n \n as \n \n postal_code\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_tmp')),\n staging_columns=get_bill_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill.sql", "original_file_path": "models/stg_quickbooks__bill.sql", "name": "stg_quickbooks__bill", "alias": "stg_quickbooks__bill", "checksum": {"name": "sha256", "checksum": "fc4dc80f5295a1755ea41bcfd621db97343c27e09c1646d98c1d04c2cc30f418"}, "tags": [], "refs": [["stg_quickbooks__bill_tmp"], ["stg_quickbooks__bill_tmp"]], "sources": [], "metrics": [], "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of all bill line items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id of the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6587431, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as TEXT) as bill_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as TEXT) as payable_account_id,\n total_amount,\n cast(vendor_id as TEXT) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_line_tmp')),\n staging_columns=get_bill_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_line.sql", "original_file_path": "models/stg_quickbooks__bill_line.sql", "name": "stg_quickbooks__bill_line", "alias": "stg_quickbooks__bill_line", "checksum": {"name": "sha256", "checksum": "d541cef41b0a6505a9ac44d9317a77d9b6addf43cb083219fb9c92a2c793f401"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The id of the account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6500638, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_tmp')),\n staging_columns=get_journal_entry_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry.sql", "original_file_path": "models/stg_quickbooks__journal_entry.sql", "name": "stg_quickbooks__journal_entry", "alias": "stg_quickbooks__journal_entry", "checksum": {"name": "sha256", "checksum": "4f62753998ceb5f5764a9fba39a9fbd9fb87a16abf35090e50f2dd18eac58346"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_tmp"], ["stg_quickbooks__journal_entry_tmp"]], "sources": [], "metrics": [], "description": "Table containing journal entry transactions.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the journal entry was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.701596, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adjustment\n \n as \n \n adjustment\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as TEXT) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_tmp')),\n staging_columns=get_refund_receipt_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt.sql", "original_file_path": "models/stg_quickbooks__refund_receipt.sql", "name": "stg_quickbooks__refund_receipt", "alias": "stg_quickbooks__refund_receipt", "checksum": {"name": "sha256", "checksum": "5cd054048b45bd2245f33de53658e58c23bf8eabb8e4cfdcc096c915a977a834"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_tmp"], ["stg_quickbooks__refund_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account from which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.7242072, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n check_payment_account_number\n \n as \n \n check_payment_account_number\n \n, \n \n \n check_payment_bank_name\n \n as \n \n check_payment_bank_name\n \n, \n \n \n check_payment_check_number\n \n as \n \n check_payment_check_number\n \n, \n \n \n check_payment_name_on_account\n \n as \n \n check_payment_name_on_account\n \n, \n \n \n check_payment_status\n \n as \n \n check_payment_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as refund_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(class_id as TEXT) as class_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_line_tmp')),\n staging_columns=get_deposit_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt.type_string() }}) as deposit_account_id,\n cast(deposit_class_id as {{ dbt.type_string() }}) as deposit_class_id,\n cast(deposit_customer_id as {{ dbt.type_string() }}) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit_line.sql", "original_file_path": "models/stg_quickbooks__deposit_line.sql", "name": "stg_quickbooks__deposit_line", "alias": "stg_quickbooks__deposit_line", "checksum": {"name": "sha256", "checksum": "f2f457f0503a22ec51d606aab2156f7534091b31840927c84bb5fc7a2d34c838"}, "tags": [], "refs": [["stg_quickbooks__deposit_line_tmp"], ["stg_quickbooks__deposit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class which the deposit line record is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "Account id of the account which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Customer id of the customer which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.675235, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n deposit_account_id\n \n as \n \n deposit_account_id\n \n, \n \n \n deposit_check_number\n \n as \n \n deposit_check_number\n \n, \n \n \n deposit_class_id\n \n as \n \n deposit_class_id\n \n, \n \n \n deposit_customer_id\n \n as \n \n deposit_customer_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n deposit_payment_method_id\n \n as \n \n deposit_payment_method_id\n \n, \n \n \n deposit_tax_applicable_on\n \n as \n \n deposit_tax_applicable_on\n \n, \n \n \n deposit_tax_code_id\n \n as \n \n deposit_tax_code_id\n \n, \n \n \n deposit_transaction_type\n \n as \n \n deposit_transaction_type\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n detail_type\n \n as \n \n detail_type\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n, \n \n \n refund_receipt_id\n \n as \n \n refund_receipt_id\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n transfer_id\n \n as \n \n transfer_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as TEXT) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as TEXT) as deposit_account_id,\n cast(deposit_class_id as TEXT) as deposit_class_id,\n cast(deposit_customer_id as TEXT) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_tmp')),\n staging_columns=get_vendor_credit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit.sql", "original_file_path": "models/stg_quickbooks__vendor_credit.sql", "name": "stg_quickbooks__vendor_credit", "alias": "stg_quickbooks__vendor_credit", "checksum": {"name": "sha256", "checksum": "bd2e5efc709f19666acabd4fdd2483c1013d05078dca5ff4ffb8a1975a4a9978"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_tmp"], ["stg_quickbooks__vendor_credit_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the vendor credit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Specifies to which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.737847, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_credit_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as TEXT) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_line_tmp')),\n staging_columns=get_vendor_credit_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit_line.sql", "original_file_path": "models/stg_quickbooks__vendor_credit_line.sql", "name": "stg_quickbooks__vendor_credit_line", "alias": "stg_quickbooks__vendor_credit_line", "checksum": {"name": "sha256", "checksum": "44764c7cbfb920e4b4c187299856d960ffdb9408d2e8dabc29c326c4c5e9f3c9"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line_tmp"], ["stg_quickbooks__vendor_credit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": [], "test": ["not_null"]}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account credited for the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Customer reference for the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Customer reference for the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.7348611, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as TEXT) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_tmp')),\n staging_columns=get_deposit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit.sql", "original_file_path": "models/stg_quickbooks__deposit.sql", "name": "stg_quickbooks__deposit", "alias": "stg_quickbooks__deposit", "checksum": {"name": "sha256", "checksum": "3a8f91dd22dbe918fccedae73ae5a3e2db38a6344ac0a39d885ef49b149c89ce"}, "tags": [], "refs": [["stg_quickbooks__deposit_tmp"], ["stg_quickbooks__deposit_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifies the account to be used for this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the deposit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676401664.6772869, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n cash_back_account_id\n \n as \n \n cash_back_account_id\n \n, \n \n \n cash_back_amount\n \n as \n \n cash_back_amount\n \n, \n \n \n cash_back_memo\n \n as \n \n cash_back_memo\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as deposit_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__item_tmp')),\n staging_columns=get_item_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt.type_string() }}) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as {{ dbt.type_string() }}) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__item.sql", "original_file_path": "models/stg_quickbooks__item.sql", "name": "stg_quickbooks__item", "alias": "stg_quickbooks__item", "checksum": {"name": "sha256", "checksum": "049dfdf58d6ee3ac495bb7f41562a880562a55f818a0fdfda3a14574f8dfc7ce"}, "tags": [], "refs": [["stg_quickbooks__item_tmp"], ["stg_quickbooks__item_tmp"]], "sources": [], "metrics": [], "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"item_id": {"name": "item_id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the item was created within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the posting account, that is, the account that records the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the Inventory Asset account that tracks the current value of the inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.696579, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n asset_account_id\n \n as \n \n asset_account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n \n \n inventory_start_date\n \n as \n \n inventory_start_date\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_item_id\n \n as \n \n parent_item_id\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n purchase_description\n \n as \n \n purchase_description\n \n, \n \n \n purchase_tax_code_id\n \n as \n \n purchase_tax_code_id\n \n, \n \n \n purchase_tax_included\n \n as \n \n purchase_tax_included\n \n, \n \n \n quantity_on_hand\n \n as \n \n quantity_on_hand\n \n, \n \n \n sales_tax_code_id\n \n as \n \n sales_tax_code_id\n \n, \n \n \n sales_tax_included\n \n as \n \n sales_tax_included\n \n, \n \n \n stock_keeping_unit\n \n as \n \n stock_keeping_unit\n \n, \n \n \n sub_item\n \n as \n \n sub_item\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n track_quantity_on_hand\n \n as \n \n track_quantity_on_hand\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as TEXT) as income_account_id,\n cast(asset_account_id as TEXT) as asset_account_id,\n cast(expense_account_id as TEXT) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as TEXT) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__customer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__customer.sql", "original_file_path": "models/stg_quickbooks__customer.sql", "name": "stg_quickbooks__customer", "alias": "stg_quickbooks__customer", "checksum": {"name": "sha256", "checksum": "b896108565ae7c6d917878e5c8c6dd77f3fa89e61e4bda773ab8f06dc77ad7f3"}, "tags": [], "refs": [["stg_quickbooks__customer_tmp"], ["stg_quickbooks__customer_tmp"]], "sources": [], "metrics": [], "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__customer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676401664.671624, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone_number\n \n as \n \n alternate_phone_number\n \n, \n \n \n ar_account_id\n \n as \n \n ar_account_id\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_jobs\n \n as \n \n balance_with_jobs\n \n, \n \n \n bill_address_id\n \n as \n \n bill_address_id\n \n, \n \n \n bill_with_parent\n \n as \n \n bill_with_parent\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n default_tax_code_id\n \n as \n \n default_tax_code_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job\n \n as \n \n job\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_number\n \n as \n \n mobile_number\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n open_balance_date\n \n as \n \n open_balance_date\n \n, \n \n \n parent_customer_id\n \n as \n \n parent_customer_id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n phone_number\n \n as \n \n phone_number\n \n, \n \n \n preferred_delivery_method\n \n as \n \n preferred_delivery_method\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n resale_number\n \n as \n \n resale_number\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_exemption_reason_id\n \n as \n \n tax_exemption_reason_id\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n website\n \n as \n \n website\n \n\n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "name": "stg_quickbooks__vendor_credit_tmp", "alias": "stg_quickbooks__vendor_credit_tmp", "checksum": {"name": "sha256", "checksum": "135d5b0865e271c5d29187680f97b226b40b1c6c1e618f9d0818f0b7122dcfe6"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.288554, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "name": "stg_quickbooks__refund_receipt_line_tmp", "alias": "stg_quickbooks__refund_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "b35b79d236200ea1e2d71df28d1d32dbc3d8ce93eb0c97fc2d502997e133055e"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.306033, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_line_tmp.sql", "name": "stg_quickbooks__estimate_line_tmp", "alias": "stg_quickbooks__estimate_line_tmp", "checksum": {"name": "sha256", "checksum": "e6b43f9598030c138d67898959d3bcc06d4b571b16bd790974c5bda4e90dfe18"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.311712, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "name": "stg_quickbooks__credit_memo_line_tmp", "alias": "stg_quickbooks__credit_memo_line_tmp", "checksum": {"name": "sha256", "checksum": "877429c46bb2ccc5558c8577eda2444270a82e5e7717aec418fba450db743924"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.323075, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_tmp.sql", "name": "stg_quickbooks__journal_entry_tmp", "alias": "stg_quickbooks__journal_entry_tmp", "checksum": {"name": "sha256", "checksum": "4cc1a32910c8e5255f3d3bbe4578fb9f562e3f2fb56eff69e22f7f69b11fa32e"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.328395, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line_bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line_bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "name": "stg_quickbooks__invoice_line_bundle_tmp", "alias": "stg_quickbooks__invoice_line_bundle_tmp", "checksum": {"name": "sha256", "checksum": "a2dc8302a76014fdede73acb185944cb3901457f568da00b9400dbadd61a4781"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line_bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.333587, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_tmp.sql", "name": "stg_quickbooks__payment_tmp", "alias": "stg_quickbooks__payment_tmp", "checksum": {"name": "sha256", "checksum": "afe62d4646d63e7fc44dbe73ad04eb3af6f94e1fd98953cfdd5a5fae5464818f"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.339637, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_tmp.sql", "name": "stg_quickbooks__invoice_line_tmp", "alias": "stg_quickbooks__invoice_line_tmp", "checksum": {"name": "sha256", "checksum": "ec89045532e817aed8e8dc0a09e66f53a2c88aba038c7dcbbb51f6875d044f5d"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.344859, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_line_tmp.sql", "name": "stg_quickbooks__deposit_line_tmp", "alias": "stg_quickbooks__deposit_line_tmp", "checksum": {"name": "sha256", "checksum": "2a560b4173366349cc88aa5c091b2f10c61f60c0bfe73b3b0f673877627002a4"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.3500009, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.customer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='customer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='customer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__customer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__customer_tmp.sql", "name": "stg_quickbooks__customer_tmp", "alias": "stg_quickbooks__customer_tmp", "checksum": {"name": "sha256", "checksum": "2125a8e00af7bd53a1c2d0b414a756fa128457d4ecda78c77f813ba133a81325"}, "tags": [], "refs": [], "sources": [["quickbooks", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__customer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.3551412, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_line_tmp.sql", "name": "stg_quickbooks__bill_line_tmp", "alias": "stg_quickbooks__bill_line_tmp", "checksum": {"name": "sha256", "checksum": "8f06919fa5048f09e127332ef0675a7fac11b3d0787e6672612010db4a7f6193"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.359925, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__item_tmp.sql", "name": "stg_quickbooks__item_tmp", "alias": "stg_quickbooks__item_tmp", "checksum": {"name": "sha256", "checksum": "0db4c37e6bea881ee6f85348bc069b1ba7d74ce4fd550ed0ac643d4ef780ab79"}, "tags": [], "refs": [], "sources": [["quickbooks", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.365242, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='account', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='account',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__account_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__account_tmp.sql", "name": "stg_quickbooks__account_tmp", "alias": "stg_quickbooks__account_tmp", "checksum": {"name": "sha256", "checksum": "1157f7c518bf6f5e15bd9080fe829b06b7e3ddf59ea3e3a06164fe453e0def85"}, "tags": [], "refs": [], "sources": [["quickbooks", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__account_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.37087, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"account_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "name": "stg_quickbooks__vendor_credit_line_tmp", "alias": "stg_quickbooks__vendor_credit_line_tmp", "checksum": {"name": "sha256", "checksum": "38b9e05b27c7db52aa41fa740caa437895743d5de562b476917f75b55277debc"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.381061, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.department"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='department', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='department',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__department_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__department_tmp.sql", "name": "stg_quickbooks__department_tmp", "alias": "stg_quickbooks__department_tmp", "checksum": {"name": "sha256", "checksum": "ea310c765f23c51e6a2ef7bef84749f2a3fa89ac06b768173788080096354a00"}, "tags": [], "refs": [], "sources": [["quickbooks", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__department_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.3861818, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"department_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_tmp.sql", "name": "stg_quickbooks__bundle_tmp", "alias": "stg_quickbooks__bundle_tmp", "checksum": {"name": "sha256", "checksum": "722d0a1b955a8c123522a87f6b97c8770d00365b98d1fc057d1724e9c5c06667"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.39134, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle_item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle_item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_item_tmp.sql", "name": "stg_quickbooks__bundle_item_tmp", "alias": "stg_quickbooks__bundle_item_tmp", "checksum": {"name": "sha256", "checksum": "29e60e9dfb0da56786a41a51e1f1d441ae47d0e7b43727f8a31af463d6daf588"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle_item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.396675, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "name": "stg_quickbooks__bill_payment_line_tmp", "alias": "stg_quickbooks__bill_payment_line_tmp", "checksum": {"name": "sha256", "checksum": "914efeefeb70efc2b64e7bae87b298f93f419a08b170e06c3efb825f8eca1968"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.407975, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_tmp.sql", "name": "stg_quickbooks__estimate_tmp", "alias": "stg_quickbooks__estimate_tmp", "checksum": {"name": "sha256", "checksum": "bd7a335748a13aae584ae7ee6a45b8565299cf7a48a0495be863920c797d83c6"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.413122, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_tmp.sql", "name": "stg_quickbooks__purchase_tmp", "alias": "stg_quickbooks__purchase_tmp", "checksum": {"name": "sha256", "checksum": "1ad34ab2fb967805e5387b4dcf01716431d1008430faee53027f043466c3896d"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.4183118, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_tmp.sql", "name": "stg_quickbooks__credit_memo_tmp", "alias": "stg_quickbooks__credit_memo_tmp", "checksum": {"name": "sha256", "checksum": "1bbda612f739f980fcf68562c4efbd39bbae1e1a37713c7bd5c4deecc24660f0"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.423182, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_tmp.sql", "name": "stg_quickbooks__bill_tmp", "alias": "stg_quickbooks__bill_tmp", "checksum": {"name": "sha256", "checksum": "b579ba85c94cfa32fdb6fe9e65c2ee8e804c21417af340278c7370a7b9a31f2c"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.428451, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='transfer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='transfer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__transfer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__transfer_tmp.sql", "name": "stg_quickbooks__transfer_tmp", "alias": "stg_quickbooks__transfer_tmp", "checksum": {"name": "sha256", "checksum": "e46216a5c817a4e27af2ac9a936e7e21dc89127c20a0775d7e21c63cbdb4e173"}, "tags": [], "refs": [], "sources": [["quickbooks", "transfer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__transfer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.4344661, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='vendor', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_tmp.sql", "name": "stg_quickbooks__vendor_tmp", "alias": "stg_quickbooks__vendor_tmp", "checksum": {"name": "sha256", "checksum": "e106f714c2f307d3d50e99e8bd61cd4c03e96002006ce67191e182f2e1b19f7a"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.439741, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_line_tmp.sql", "name": "stg_quickbooks__purchase_line_tmp", "alias": "stg_quickbooks__purchase_line_tmp", "checksum": {"name": "sha256", "checksum": "39c7787a6481961b9d80bf3173afd5ece106fdb67bad2edbd69d436c6bbc3aca"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676401664.4446778, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.address"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='address', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='address',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__address_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__address_tmp.sql", "name": "stg_quickbooks__address_tmp", "alias": "stg_quickbooks__address_tmp", "checksum": {"name": "sha256", "checksum": "39a9820afa24c94b220f35fa72a0452806f5cdb828e5eb70583cded4ceb71454"}, "tags": [], "refs": [], "sources": [["quickbooks", "address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.4494798, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"address_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_line_tmp.sql", "name": "stg_quickbooks__payment_line_tmp", "alias": "stg_quickbooks__payment_line_tmp", "checksum": {"name": "sha256", "checksum": "333d6ce9e2621c99b011bfbb668c38c1fe20d45a9e155278371ad1c5c19fffa3"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.4546938, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "name": "stg_quickbooks__refund_receipt_tmp", "alias": "stg_quickbooks__refund_receipt_tmp", "checksum": {"name": "sha256", "checksum": "274dbd883a2adaf7559f8bc8812a558a95b52329f18218fe5494c63b7abcf7a5"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.460636, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "name": "stg_quickbooks__sales_receipt_tmp", "alias": "stg_quickbooks__sales_receipt_tmp", "checksum": {"name": "sha256", "checksum": "bb64ce4afbe0e70f70d7c9dae8a57423d5ee7dc2326107fa4c5d4371ca911fce"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.466006, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_tmp.sql", "name": "stg_quickbooks__bill_payment_tmp", "alias": "stg_quickbooks__bill_payment_tmp", "checksum": {"name": "sha256", "checksum": "f956078b3ec8d833f517f431c67509fe75f494b11a6fa4a735b85d232453dba4"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.471169, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "name": "stg_quickbooks__journal_entry_line_tmp", "alias": "stg_quickbooks__journal_entry_line_tmp", "checksum": {"name": "sha256", "checksum": "bcba66ad0358646e9993b39ecdd17c69130874858cb027ed198364bb77a3d283"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.4763148, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_tmp.sql", "name": "stg_quickbooks__deposit_tmp", "alias": "stg_quickbooks__deposit_tmp", "checksum": {"name": "sha256", "checksum": "e1f40c890b39fe0dd1bcec03c90b403c4e77015c805426b90ca3c3b1c93eb3b2"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.4816341, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "name": "stg_quickbooks__bill_linked_txn_tmp", "alias": "stg_quickbooks__bill_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "2583068246d6617f1e99a3b11589211fb7cb90f66035526cee17be299ba826ec"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.48688, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "name": "stg_quickbooks__invoice_linked_txn_tmp", "alias": "stg_quickbooks__invoice_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "813acd5c2445c8886b2aa20afb05c5dc8165b9d38b3081b12a879e67abc67520"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.492799, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "name": "stg_quickbooks__sales_receipt_line_tmp", "alias": "stg_quickbooks__sales_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "87037987bd00e48e0a7fe6300511bcf7c80031e6fe4ba3b77902a7baa5752132"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.527099, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_tmp.sql", "name": "stg_quickbooks__invoice_tmp", "alias": "stg_quickbooks__invoice_tmp", "checksum": {"name": "sha256", "checksum": "c901088fa713bc1e59f7299c7c7d6ac7aea71b7c97e5a2821fd8efd33214bfc1"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676401664.5375402, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "estimate_id"], "model": "{{ get_where_subquery(ref('quickbooks__ap_ar_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__ap_ar_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id", "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__ap_ar_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d"}, "created_at": 1676401664.602985, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, estimate_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\"\n group by transaction_id, source_relation, estimate_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__ap_ar_enhanced"}, "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "unique_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "unique_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "unique_quickbooks__cash_flow_statement_account_unique_id", "alias": "unique_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/unique_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.613695, "compiled_code": "\n \n \n\nselect\n account_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is not null\ngroup by account_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "not_null_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "not_null_quickbooks__cash_flow_statement_account_unique_id", "alias": "not_null_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.6149702, "compiled_code": "\n \n \n\n\n\nselect account_unique_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "transaction_line_id", "item_id"], "model": "{{ get_where_subquery(ref('quickbooks__expenses_sales_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__expenses_sales_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id", "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__expenses_sales_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938"}, "created_at": 1676401664.616246, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, transaction_line_id, item_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\"\n group by transaction_id, source_relation, transaction_line_id, item_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__expenses_sales_enhanced"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["unique_id", "source_relation"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation", "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0"}, "created_at": 1676401664.620394, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n unique_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n group by unique_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "period_first_day"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger_by_period')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day", "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782"}, "created_at": 1676401664.624096, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, period_first_day\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n group by account_id, class_id, source_relation, period_first_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger_by_period"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "calendar_date"], "model": "{{ get_where_subquery(ref('quickbooks__profit_and_loss')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__profit_and_loss"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date", "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__profit_and_loss"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381"}, "created_at": 1676401664.628053, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, calendar_date\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\"\n group by account_id, class_id, source_relation, calendar_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__profit_and_loss"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation", "calendar_date", "class_id"], "model": "{{ get_where_subquery(ref('quickbooks__balance_sheet')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id", "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827"}, "created_at": 1676401664.6323252, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation, calendar_date, class_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n group by account_id, source_relation, calendar_date, class_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__balance_sheet"}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__account_account_id", "alias": "not_null_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.7410922, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Asset", "Equity", "Expense", "Liability", "Revenue"], "column_name": "classification", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9"}, "created_at": 1676401664.742712, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n classification as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by classification\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Asset','Equity','Expense','Liability','Revenue'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "classification", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29"}, "created_at": 1676401664.749324, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by account_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "address_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__address_address_id", "alias": "not_null_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__address_address_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.752788, "compiled_code": "\n \n \n\n\n\nselect address_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\nwhere address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id", "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["address_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation", "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772"}, "created_at": 1676401664.754053, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n address_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n group by address_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_line_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_line_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_line_bill_id", "alias": "not_null_stg_quickbooks__bill_line_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_line_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.7575, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1"}, "created_at": 1676401664.7587469, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n group by bill_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.76248, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.763716, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_line_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.765122, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614"}, "created_at": 1676401664.766358, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n group by bill_payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.7700639, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec"}, "created_at": 1676401664.771311, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n group by bill_payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_bill_id", "alias": "not_null_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.774772, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation", "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4"}, "created_at": 1676401664.776025, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n group by bill_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle_item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_item_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_item_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_item_bundle_id", "alias": "not_null_stg_quickbooks__bundle_item_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle_item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_item_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.779619, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle_item"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_bundle_id", "alias": "not_null_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.780859, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bundle_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation", "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727"}, "created_at": 1676401664.782271, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bundle_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n group by bundle_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_line_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.7856362, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858"}, "created_at": 1676401664.7872279, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n group by credit_memo_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.7908459, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation", "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083"}, "created_at": 1676401664.7920918, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n group by credit_memo_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__customer_customer_id", "alias": "not_null_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__customer_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.795894, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation", "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a"}, "created_at": 1676401664.797152, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n group by customer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_line_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_line_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_line_deposit_id", "alias": "not_null_stg_quickbooks__deposit_line_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_line_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.8006442, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b"}, "created_at": 1676401664.801885, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n group by deposit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_deposit_id", "alias": "not_null_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.80554, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation", "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb"}, "created_at": 1676401664.806796, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n group by deposit_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_estimate_id", "alias": "not_null_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.810307, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation", "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68"}, "created_at": 1676401664.8115652, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n group by estimate_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_line_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_line_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_line_estimate_id", "alias": "not_null_stg_quickbooks__estimate_line_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_line_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.8150048, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a"}, "created_at": 1676401664.81626, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\n group by estimate_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "alias": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.819885, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.821184, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0"}, "created_at": 1676401664.822617, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n group by invoice_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.826313, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "invoice_line_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation", "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a"}, "created_at": 1676401664.8275661, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, invoice_line_index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n group by invoice_id, index, invoice_line_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_invoice_id", "alias": "not_null_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.8313758, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation", "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c"}, "created_at": 1676401664.83263, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n group by invoice_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__item_item_id", "alias": "not_null_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__item_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.836045, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation", "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5"}, "created_at": 1676401664.837334, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n item_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n group by item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_line_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.8408241, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Credit", "Debit"], "column_name": "posting_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55"}, "created_at": 1676401664.8420649, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n posting_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by posting_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Credit','Debit'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "posting_type", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["journal_entry_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee"}, "created_at": 1676401664.8456142, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n journal_entry_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by journal_entry_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.849726, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_line_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_line_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_line_payment_id", "alias": "not_null_stg_quickbooks__payment_line_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_line_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.850964, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625"}, "created_at": 1676401664.852372, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n group by payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_payment_id", "alias": "not_null_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.855885, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557"}, "created_at": 1676401664.857273, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n group by payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_line_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_line_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_line_purchase_id", "alias": "not_null_stg_quickbooks__purchase_line_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_line_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.860715, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153"}, "created_at": 1676401664.862018, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n group by purchase_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_purchase_id", "alias": "not_null_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.865699, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Cash", "Check", "CreditCard"], "column_name": "payment_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216"}, "created_at": 1676401664.866953, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n payment_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by payment_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Cash','Check','CreditCard'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_type", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation", "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563"}, "created_at": 1676401664.870594, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by purchase_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_line_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.8740401, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943"}, "created_at": 1676401664.8752902, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_linked_txn')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1"}, "created_at": 1676401664.87905, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.880353, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Open", "Closed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614"}, "created_at": 1676401664.881793, "column_name": "status", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation", "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d"}, "created_at": 1676401664.885144, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_line_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.888591, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576"}, "created_at": 1676401664.889848, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n group by refund_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.893482, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation", "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605"}, "created_at": 1676401664.894946, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n group by refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.898319, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899"}, "created_at": 1676401664.900059, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n group by sales_receipt_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.903701, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation", "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d"}, "created_at": 1676401664.90496, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n group by sales_receipt_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transfer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__transfer_transfer_id", "alias": "not_null_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__transfer_transfer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.9084108, "compiled_code": "\n \n \n\n\n\nselect transfer_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\nwhere transfer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id", "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transfer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233"}, "created_at": 1676401664.909672, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transfer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n group by transfer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_credit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b"}, "created_at": 1676401664.913148, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_credit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n group by vendor_credit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor_credit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "alias": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.916773, "compiled_code": "\n \n \n\n\n\nselect vendor_credit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\nwhere vendor_credit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id", "file_key_name": "models.stg_quickbooks__vendor_credit"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_vendor_id", "alias": "not_null_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676401664.9180229, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_quickbooks__vendor"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation", "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4"}, "created_at": 1676401664.9192681, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n group by vendor_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "account", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "account_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"id": {"name": "id", "description": "Unique identifier of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_account": {"name": "sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"account_data\"", "created_at": 1676401665.037816}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "address", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing address details.", "columns": {"id": {"name": "id", "description": "Unique identifier of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_1": {"name": "line_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_2": {"name": "line_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"address_data\"", "created_at": 1676401665.0379462}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"", "created_at": 1676401665.0380428}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The \"Unique identifier of the bill payment id record.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"", "created_at": 1676401665.0381272}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"", "created_at": 1676401665.0382159}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"", "created_at": 1676401665.0383098}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total \"Monetary amount of all bill line items.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"", "created_at": 1676401665.038403}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle_item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing all bundle and item combinations", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bundle and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"", "created_at": 1676401665.038482}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"", "created_at": 1676401665.038563}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"fqn": ["quickbooks_source", "quickbooks", "credit_card_payment_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_card_payment_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_card_payment_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all credit card payment transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "The identifier of the account associated with the bank which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credit card which the payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_card_payment_txn_data\"", "created_at": 1676401665.03865}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"", "created_at": 1676401665.038739}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"", "created_at": 1676401665.0388281}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "customer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "customer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website url associated with the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"", "created_at": 1676401665.038916}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "department", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "department_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_department": {"name": "sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"department_data\"", "created_at": 1676401665.038999}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class associated the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "The identifier of the account associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Reference to the customer associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"", "created_at": 1676401665.03908}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"id": {"name": "id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"", "created_at": 1676401665.0391638}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"id": {"name": "id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"", "created_at": 1676401665.0393128}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"", "created_at": 1676401665.039405}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"", "created_at": 1676401665.0394828}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"", "created_at": 1676401665.039575}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line_bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for sales on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"", "created_at": 1676401665.039664}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"id": {"name": "id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"", "created_at": 1676401665.039756}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the item within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "The identifier of the account associated with the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "The identifier of the account associated with the inventory asset that tracks its current value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "The identifier of the account associated used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"item_data\"", "created_at": 1676401665.039846}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"", "created_at": 1676401665.039933}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing journal entry transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjustment": {"name": "adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"", "created_at": 1676401665.0400178}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"", "created_at": 1676401665.0400991}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"id": {"name": "id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "The identifier of the account associated with obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with the deposit to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"", "created_at": 1676401665.040183}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"", "created_at": 1676401665.04027}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase expenses.", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the applied purchase based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"", "created_at": 1676401665.04036}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase order.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_line_data\"", "created_at": 1676401665.040475}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for purchase order records to respective bill and purchase objects.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_linked_txn_data\"", "created_at": 1676401665.040555}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase orders (PO).", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_customer_type": {"name": "custom_customer_type", "description": "Custom field for customer type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "A message for the vendor. This text appears on the purchase order object sent to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction. This note does not appear on the purchase order to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_data\"", "created_at": 1676401665.040648}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"", "created_at": 1676401665.040737}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"id": {"name": "id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the refund receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"", "created_at": 1676401665.0408251}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"", "created_at": 1676401665.0409138}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"id": {"name": "id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with where payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated sales receipt to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"", "created_at": 1676401665.041004}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "transfer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "transfer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"id": {"name": "id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "The identifier of the account associated with where the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "The identifier of the account associated with where the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"", "created_at": 1676401665.041085}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"", "created_at": 1676401665.041176}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"", "created_at": 1676401665.0412679}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_1099": {"name": "vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"", "created_at": 1676401665.041357}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.228574, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.22891, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2290618, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2292101, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2293582, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2309499, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.231918, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.239767, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.240462, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.240913, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.241358, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.242027, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2425542, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.242794, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.243288, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.24393, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2451992, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.245504, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.245965, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2463481, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.246969, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2472808, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.248124, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2484128, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2485728, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.249234, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.250308, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2507, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.251641, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.25617, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.256468, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2572422, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.257901, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2594612, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.259736, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.259935, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.260129, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.260332, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.260915, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.261332, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.261756, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.262463, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.262846, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.267668, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2679071, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.268211, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.269214, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.269442, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.269682, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.271647, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2735791, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2791948, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.279604, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2798421, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.279964, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.280164, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.28032, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.280601, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2818382, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.2821, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.28245, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.283044, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.291677, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.294605, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.295306, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.295818, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.296478, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.297017, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.299232, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.300003, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.300929, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.301261, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3022552, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.308471, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.310734, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3110669, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.31213, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.312503, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.313411, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.314379, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.315614, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.315938, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3161979, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3165581, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3168159, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.317179, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.317439, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3178, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.318059, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.318263, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.31866, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3254888, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.333036, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.334734, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.33646, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.337692, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.341312, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.342108, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.342371, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.342976, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.343555, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.347142, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.347641, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.347956, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3500931, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.350658, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.350889, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.351137, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.351498, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.356079, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.362797, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.364064, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3643909, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.365062, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3653288, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.365509, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3657, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.36586, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.366079, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.366244, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.366907, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.367163, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.368924, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3695402, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.369903, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.370719, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3710878, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.371489, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3721159, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3724642, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3730218, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3735218, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.373937, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.374795, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3768718, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.377762, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3781672, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.380736, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3823822, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3834171, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.383734, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.384139, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.384244, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3848162, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3850439, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.385468, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3856452, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3860931, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3862422, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.386784, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.387011, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3874009, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3875048, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.387946, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.388154, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.388643, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.388915, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3898618, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3904178, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.390958, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.391181, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.391649, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.391834, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.392267, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.392491, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3929029, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.393118, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.393534, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3936799, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3941572, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3943381, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3947551, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.394898, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.396225, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.396439, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3967419, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3969522, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3971782, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.397385, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3976052, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3978539, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3980758, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.39828, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3985012, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.398699, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.398916, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.399116, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.3995872, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.399771, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.400191, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4003289, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.400872, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4012392, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.401448, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.40223, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.402456, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.402845, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4033122, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4034839, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.40407, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.404402, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.404865, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.405045, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.405616, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.405866, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.406084, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.406334, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4070442, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.407251, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.407441, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.407579, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.407804, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.407906, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.40813, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.408354, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4090471, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.409313, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4095302, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.410091, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4145548, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.414796, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4150982, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.415498, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.415841, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.416288, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.416534, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4168231, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.417074, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.41729, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.417569, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.417953, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.418292, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.419054, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.41945, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4196422, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4199018, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.420596, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4211788, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.423451, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.423607, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.423841, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4239922, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.424464, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.424722, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.424858, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4251661, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4254222, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4257338, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.425993, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.426312, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4272408, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.427753, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.428094, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.428432, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.430059, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4310489, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.431288, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.431565, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.431796, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.432163, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.432828, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.434867, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4352179, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4354718, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.43569, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.435935, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4362721, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.436573, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4369972, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.437249, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.437473, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.439787, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4401028, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4405272, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.440779, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.441246, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.441569, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.442393, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.442741, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.443813, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4458408, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.446496, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4471219, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.447687, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4477801, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.44854, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.448853, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.449248, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.449624, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.450189, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.45086, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4516008, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.452605, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.453116, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.453553, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.455094, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4565382, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.45779, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.459305, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.460268, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4607518, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.46183, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4630332, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4637382, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.464384, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4652858, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.465942, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.466779, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.467315, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4680169, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.468759, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.469693, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.470604, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.471406, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.471885, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.472516, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.473012, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.47394, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.475074, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.476348, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.477619, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.478668, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.480025, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"unique_id": "macro.dbt_utils.test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.480921, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"unique_id": "macro.dbt_utils.default__test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.481347, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.486021, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.488223, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.48869, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.488928, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4896278, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.49009, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.490359, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4907892, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4910421, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.491991, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.493206, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.4942222, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.49506, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.495397, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.495907, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.496439, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.496918, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.497944, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.49924, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.500437, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5010078, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.501269, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5019798, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.502992, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.504253, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.504941, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5053492, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5071502, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.509139, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.511023, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.513344, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"unique_id": "macro.dbt_utils.safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.513835, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"unique_id": "macro.dbt_utils.default__safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.514016, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.518369, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.523227, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5237372, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.524083, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5251389, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.525439, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.525717, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.525985, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.526212, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.526452, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5270689, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.527391, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.52798, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5287879, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5293639, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.529829, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.532232, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.532759, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.533846, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.534556, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.536213, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.538357, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.539914, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.541116, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5418408, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.542866, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.544951, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5456052, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.546255, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.546515, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.547134, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5479622, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"unique_id": "macro.dbt_utils.generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5486772, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"unique_id": "macro.dbt_utils.default__generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.549603, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.550238, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.550442, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.550634, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"unique_id": "macro.dbt_utils.get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.551414, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"unique_id": "macro.dbt_utils.default__get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.552536, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.554034, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5544288, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.555234, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.556361, "supported_languages": null}, "macro.quickbooks.get_enabled_unioned_models": {"unique_id": "macro.quickbooks.get_enabled_unioned_models", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "macros/get_enabled_unioned_models.sql", "original_file_path": "macros/get_enabled_unioned_models.sql", "name": "get_enabled_unioned_models", "macro_sql": "{% macro get_enabled_unioned_models(unioned_models = [ \n 'bill',\n 'credit_memo',\n 'deposit',\n 'invoice',\n 'journal_entry',\n 'payment',\n 'refund_receipt',\n 'sales_receipt',\n 'transfer',\n 'vendor_credit']) %} \n\n{% set enabled_unioned_models = [] %}\n\n{{ enabled_unioned_models.append(ref('int_quickbooks__purchase_double_entry')) }}\n\n{% for unioned_model in unioned_models %} \n {% if var('using_' ~ unioned_model, True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__' ~ unioned_model ~ '_double_entry')) }}\n {% endif %}\n {% endfor %} \n \n{% if var('using_bill', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__bill_payment_double_entry')) }}\n{% endif %}\n\n{% if var('using_credit_card_payment_txn', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__credit_card_pymt_double_entry')) }}\n{% endif %}\n\n{{ return(enabled_unioned_models) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "This macro takes models from the `double_entry_transactions` folder and appends them together in an array of relations if these models are enabled. This will then be unioned together using `dbt_utils.union_relations` in the `quickbooks__general_ledger` model. `int_quickbooks__purchase_double_entry` is included by default. `int_quickbooks__bill_payment_double_entry` and `int_quickbooks__credit_card_pymt_double_entry` are appended separately because their `using_` variables do not match up like the other variables, which can't be modified.\n", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://macros/quickbooks_macros.yml", "arguments": [{"name": "unioned_models", "type": "list", "description": "List of strings referring to particular models to then be appended and eventually unioned if enabled."}, {"name": "enabled_unioned_models", "type": "list", "description": "List of relations of models that are enabled to eventually be unioned into a general ledger model."}], "created_at": 1676401664.6381109, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.558761, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.560101, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.56033, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.560556, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.560786, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5609841, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.561213, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.562426, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.563405, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.564948, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.565293, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.565629, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.56605, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.56638, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.566751, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.567111, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.567631, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.567775, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.567911, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.568047, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.568637, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5695171, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.570685, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.571396, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5715818, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.571761, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.571937, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5721228, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.576148, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5763788, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.576606, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.57682, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5793622, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5805929, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5807848, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5811672, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.581567, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.581747, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5819168, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5820851, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.582826, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.583638, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.584382, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.584661, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.584963, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5853992, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.587003, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.592834, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.593339, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.593943, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.596261, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.597051, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.59792, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.598135, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.598351, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.598586, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.598794, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.5990021, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6000419, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.601414, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6024451, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.602669, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6028879, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.603107, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6033332, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.603576, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6040099, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.604149, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6043751, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.605348, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.607324, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.610661, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.612721, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.613182, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.613325, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.613462, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6140969, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.614728, "supported_languages": null}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_line_columns.sql", "original_file_path": "macros/get_deposit_line_columns.sql", "name": "get_deposit_line_columns", "macro_sql": "{% macro get_deposit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.618432, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_line_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_line_columns.sql", "original_file_path": "macros/get_vendor_credit_line_columns.sql", "name": "get_vendor_credit_line_columns", "macro_sql": "{% macro get_vendor_credit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6214662, "supported_languages": null}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "name": "get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6244009, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_linked_txn_columns.sql", "original_file_path": "macros/get_purchase_order_linked_txn_columns.sql", "name": "get_purchase_order_linked_txn_columns", "macro_sql": "{% macro get_purchase_order_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.625567, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_line_columns.sql", "original_file_path": "macros/get_sales_receipt_line_columns.sql", "name": "get_sales_receipt_line_columns", "macro_sql": "{% macro get_sales_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.629369, "supported_languages": null}, "macro.quickbooks_source.get_bill_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_bill_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_linked_txn_columns.sql", "original_file_path": "macros/get_bill_linked_txn_columns.sql", "name": "get_bill_linked_txn_columns", "macro_sql": "{% macro get_bill_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.630302, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_line_columns.sql", "original_file_path": "macros/get_bill_payment_line_columns.sql", "name": "get_bill_payment_line_columns", "macro_sql": "{% macro get_bill_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6325812, "supported_languages": null}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_transfer_columns.sql", "original_file_path": "macros/get_transfer_columns.sql", "name": "get_transfer_columns", "macro_sql": "{% macro get_transfer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.63442, "supported_languages": null}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_columns.sql", "original_file_path": "macros/get_purchase_columns.sql", "name": "get_purchase_columns", "macro_sql": "{% macro get_purchase_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.638417, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_line_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_line_columns.sql", "original_file_path": "macros/get_journal_entry_line_columns.sql", "name": "get_journal_entry_line_columns", "macro_sql": "{% macro get_journal_entry_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.641252, "supported_languages": null}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_columns.sql", "original_file_path": "macros/get_deposit_columns.sql", "name": "get_deposit_columns", "macro_sql": "{% macro get_deposit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6441972, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_columns.sql", "original_file_path": "macros/get_purchase_order_columns.sql", "name": "get_purchase_order_columns", "macro_sql": "{% macro get_purchase_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.648263, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_line_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_line_columns.sql", "original_file_path": "macros/get_credit_memo_line_columns.sql", "name": "get_credit_memo_line_columns", "macro_sql": "{% macro get_credit_memo_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.652012, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_columns.sql", "original_file_path": "macros/get_journal_entry_columns.sql", "name": "get_journal_entry_columns", "macro_sql": "{% macro get_journal_entry_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.654526, "supported_languages": null}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_columns.sql", "original_file_path": "macros/get_vendor_columns.sql", "name": "get_vendor_columns", "macro_sql": "{% macro get_vendor_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6587899, "supported_languages": null}, "macro.quickbooks_source.get_invoice_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_invoice_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_linked_txn_columns.sql", "original_file_path": "macros/get_invoice_linked_txn_columns.sql", "name": "get_invoice_linked_txn_columns", "macro_sql": "{% macro get_invoice_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6603642, "supported_languages": null}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_item_columns.sql", "original_file_path": "macros/get_item_columns.sql", "name": "get_item_columns", "macro_sql": "{% macro get_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.664565, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_columns.sql", "original_file_path": "macros/get_credit_memo_columns.sql", "name": "get_credit_memo_columns", "macro_sql": "{% macro get_credit_memo_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.669373, "supported_languages": null}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_item_columns.sql", "original_file_path": "macros/get_bundle_item_columns.sql", "name": "get_bundle_item_columns", "macro_sql": "{% macro get_bundle_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.670284, "supported_languages": null}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_columns.sql", "original_file_path": "macros/get_payment_columns.sql", "name": "get_payment_columns", "macro_sql": "{% macro get_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.675197, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_columns.sql", "original_file_path": "macros/get_vendor_credit_columns.sql", "name": "get_vendor_credit_columns", "macro_sql": "{% macro get_vendor_credit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.677844, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_columns.sql", "original_file_path": "macros/get_refund_receipt_columns.sql", "name": "get_refund_receipt_columns", "macro_sql": "{% macro get_refund_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.685684, "supported_languages": null}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_columns.sql", "original_file_path": "macros/get_bill_columns.sql", "name": "get_bill_columns", "macro_sql": "{% macro get_bill_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.6887639, "supported_languages": null}, "macro.quickbooks_source.get_credit_card_payment_txn_columns": {"unique_id": "macro.quickbooks_source.get_credit_card_payment_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_card_payment_txn_columns.sql", "original_file_path": "macros/get_credit_card_payment_txn_columns.sql", "name": "get_credit_card_payment_txn_columns", "macro_sql": "{% macro get_credit_card_payment_txn_columns() %}\n\n{% set columns = [ \t\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.690561, "supported_languages": null}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_line_columns.sql", "original_file_path": "macros/get_bill_line_columns.sql", "name": "get_bill_line_columns", "macro_sql": "{% macro get_bill_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.69342, "supported_languages": null}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "name": "get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.699696, "supported_languages": null}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_columns.sql", "original_file_path": "macros/get_invoice_columns.sql", "name": "get_invoice_columns", "macro_sql": "{% macro get_invoice_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allow_ipnpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_achpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_credit_card_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.706804, "supported_languages": null}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_line_columns.sql", "original_file_path": "macros/get_payment_line_columns.sql", "name": "get_payment_line_columns", "macro_sql": "{% macro get_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.708817, "supported_languages": null}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_department_columns.sql", "original_file_path": "macros/get_department_columns.sql", "name": "get_department_columns", "macro_sql": "{% macro get_department_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.710474, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_columns.sql", "original_file_path": "macros/get_invoice_line_columns.sql", "name": "get_invoice_line_columns", "macro_sql": "{% macro get_invoice_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.714805, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_line_columns.sql", "original_file_path": "macros/get_purchase_order_line_columns.sql", "name": "get_purchase_order_line_columns", "macro_sql": "{% macro get_purchase_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.717667, "supported_languages": null}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_line_columns.sql", "original_file_path": "macros/get_purchase_line_columns.sql", "name": "get_purchase_line_columns", "macro_sql": "{% macro get_purchase_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.720528, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_line_columns.sql", "original_file_path": "macros/get_refund_receipt_line_columns.sql", "name": "get_refund_receipt_line_columns", "macro_sql": "{% macro get_refund_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.724223, "supported_languages": null}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_columns.sql", "original_file_path": "macros/get_estimate_columns.sql", "name": "get_estimate_columns", "macro_sql": "{% macro get_estimate_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.729525, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_columns.sql", "original_file_path": "macros/get_bill_payment_columns.sql", "name": "get_bill_payment_columns", "macro_sql": "{% macro get_bill_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.7325828, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_columns.sql", "original_file_path": "macros/get_sales_receipt_columns.sql", "name": "get_sales_receipt_columns", "macro_sql": "{% macro get_sales_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.740247, "supported_languages": null}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_columns.sql", "original_file_path": "macros/get_bundle_columns.sql", "name": "get_bundle_columns", "macro_sql": "{% macro get_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.742381, "supported_languages": null}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_line_columns.sql", "original_file_path": "macros/get_estimate_line_columns.sql", "name": "get_estimate_line_columns", "macro_sql": "{% macro get_estimate_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.7467499, "supported_languages": null}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_address_columns.sql", "original_file_path": "macros/get_address_columns.sql", "name": "get_address_columns", "macro_sql": "{% macro get_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.7488692, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_bundle_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_bundle_columns.sql", "original_file_path": "macros/get_invoice_line_bundle_columns.sql", "name": "get_invoice_line_bundle_columns", "macro_sql": "{% macro get_invoice_line_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676401662.7519732, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "quickbooks.ap_ar_enhanced_table": {"unique_id": "quickbooks.ap_ar_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ap_ar_enhanced_table", "block_contents": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time."}, "quickbooks.cash_flow_statement_table": {"unique_id": "quickbooks.cash_flow_statement_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "cash_flow_statement_table", "block_contents": "Table that provides all line items necessary to construct a cash flow statement."}, "quickbooks.expenses_sales_enhanced_table": {"unique_id": "quickbooks.expenses_sales_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "expenses_sales_enhanced_table", "block_contents": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records."}, "quickbooks.general_ledger_table": {"unique_id": "quickbooks.general_ledger_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_table", "block_contents": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction."}, "quickbooks.general_ledger_by_period_table": {"unique_id": "quickbooks.general_ledger_by_period_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_by_period_table", "block_contents": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year."}, "quickbooks.profit_and_loss_table": {"unique_id": "quickbooks.profit_and_loss_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "profit_and_loss_table", "block_contents": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information."}, "quickbooks.account_class": {"unique_id": "quickbooks.account_class", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_class", "block_contents": "Class of the account associated"}, "quickbooks.account_name": {"unique_id": "quickbooks.account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "Name of the account associated"}, "quickbooks.account_number": {"unique_id": "quickbooks.account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_number", "block_contents": "User defined number of the account."}, "quickbooks.account_ordinal": {"unique_id": "quickbooks.account_ordinal", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_ordinal", "block_contents": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)"}, "quickbooks.account_sub_type": {"unique_id": "quickbooks.account_sub_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_sub_type", "block_contents": "Sub type of the account associated"}, "quickbooks.account_type": {"unique_id": "quickbooks.account_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_type", "block_contents": "The type of account associated"}, "quickbooks.calendar_date": {"unique_id": "quickbooks.calendar_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "calendar_date", "block_contents": "Timestamp of the first calendar date of the month."}, "quickbooks.is_sub_account": {"unique_id": "quickbooks.is_sub_account", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_sub_account", "block_contents": "Boolean indicating whether the account is a sub account (true) or a parent account (false)."}, "quickbooks.parent_account_name": {"unique_id": "quickbooks.parent_account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_name", "block_contents": "The parent account name. If the account is the parent account then the account name is recorded."}, "quickbooks.parent_account_number": {"unique_id": "quickbooks.parent_account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_number", "block_contents": "The parent account number. If the account is the parent account then the account number is recorded."}, "quickbooks.transaction_date": {"unique_id": "quickbooks.transaction_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_date", "block_contents": "Timestamp of the date that the transaction occurred."}, "quickbooks.transaction_id": {"unique_id": "quickbooks.transaction_id", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_id", "block_contents": "Unique identifier of the transaction"}, "quickbooks_source.account_table": {"unique_id": "quickbooks_source.account_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_table", "block_contents": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity."}, "quickbooks_source.address_table": {"unique_id": "quickbooks_source.address_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "address_table", "block_contents": "Table containing address details."}, "quickbooks_source.bill_line_table": {"unique_id": "quickbooks_source.bill_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_line_table", "block_contents": "Table containing distinct line items from bills within the `bill` table."}, "quickbooks_source.bill_linked_txn_table": {"unique_id": "quickbooks_source.bill_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_linked_txn_table", "block_contents": "Mapping table containing bill payment transactions linked to a bill."}, "quickbooks_source.bill_payment_line_table": {"unique_id": "quickbooks_source.bill_payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_line_table", "block_contents": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table."}, "quickbooks_source.bill_payment_table": {"unique_id": "quickbooks_source.bill_payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_table", "block_contents": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor."}, "quickbooks_source.bill_table": {"unique_id": "quickbooks_source.bill_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_table", "block_contents": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both."}, "quickbooks_source.bundle_item_table": {"unique_id": "quickbooks_source.bundle_item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_item_table", "block_contents": "Mapping table containing all bundle and item combinations."}, "quickbooks_source.bundle_table": {"unique_id": "quickbooks_source.bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_table", "block_contents": "Table containing all bundles possible to be used within an invoice."}, "quickbooks_source.credit_card_payment_txn_table": {"unique_id": "quickbooks_source.credit_card_payment_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_card_payment_txn_table", "block_contents": "Table containing all credit card payment transactions."}, "quickbooks_source.credit_memo_line_table": {"unique_id": "quickbooks_source.credit_memo_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_line_table", "block_contents": "Table containing individual records of credit memos."}, "quickbooks_source.credit_memo_table": {"unique_id": "quickbooks_source.credit_memo_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_table", "block_contents": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold."}, "quickbooks_source.customer_table": {"unique_id": "quickbooks_source.customer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_table", "block_contents": "Table containing customers of which are consumers of the service or product that your business offers."}, "quickbooks_source.department_table": {"unique_id": "quickbooks_source.department_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_table", "block_contents": "Table containing records representing physical locations such as stores, and sales regions."}, "quickbooks_source.deposit_line_table": {"unique_id": "quickbooks_source.deposit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_line_table", "block_contents": "Table containing individual line items comprising the deposit."}, "quickbooks_source.deposit_table": {"unique_id": "quickbooks_source.deposit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_table", "block_contents": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit."}, "quickbooks_source.estimate_line_table": {"unique_id": "quickbooks_source.estimate_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_line_table", "block_contents": "Table containing line item records of an estimate."}, "quickbooks_source.estimate_table": {"unique_id": "quickbooks_source.estimate_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_table", "block_contents": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing."}, "quickbooks_source.invoice_line_bundle_table": {"unique_id": "quickbooks_source.invoice_line_bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_bundle_table", "block_contents": "Table containing lines of an invoice which were bundled."}, "quickbooks_source.invoice_line_table": {"unique_id": "quickbooks_source.invoice_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_table", "block_contents": "Table containing individual records from invoices."}, "quickbooks_source.invoice_linked_txn_table": {"unique_id": "quickbooks_source.invoice_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_linked_txn_table", "block_contents": "Mapping table for invoices records to respective estimate and payment objects."}, "quickbooks_source.invoice_table": {"unique_id": "quickbooks_source.invoice_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_table", "block_contents": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later."}, "quickbooks_source.item_table": {"unique_id": "quickbooks_source.item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_table", "block_contents": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services."}, "quickbooks_source.journal_entry_line_table": {"unique_id": "quickbooks_source.journal_entry_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_line_table", "block_contents": "Table containing individual line items of a transaction associated with a journal entry."}, "quickbooks_source.journal_entry_table": {"unique_id": "quickbooks_source.journal_entry_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_table", "block_contents": "Table containing journal entry transactions."}, "quickbooks_source.payment_line_table": {"unique_id": "quickbooks_source.payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_line_table", "block_contents": "Table containing individual line items recorded within a payment."}, "quickbooks_source.payment_table": {"unique_id": "quickbooks_source.payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_table", "block_contents": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount."}, "quickbooks_source.purchase_line_table": {"unique_id": "quickbooks_source.purchase_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase."}, "quickbooks_source.purchase_order_line_table": {"unique_id": "quickbooks_source.purchase_order_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase order."}, "quickbooks_source.purchase_order_linked_txn_table": {"unique_id": "quickbooks_source.purchase_order_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_linked_txn_table", "block_contents": "Mapping table for purchase order records to respective bill and purchase objects."}, "quickbooks_source.purchase_order_table": {"unique_id": "quickbooks_source.purchase_order_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_table", "block_contents": "Table containing records of purchase orders (PO)."}, "quickbooks_source.purchase_table": {"unique_id": "quickbooks_source.purchase_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_table", "block_contents": "Table containing records of purchase expenses."}, "quickbooks_source.refund_receipt_line_table": {"unique_id": "quickbooks_source.refund_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_line_table", "block_contents": "Table containing individual line items of a refund transaction."}, "quickbooks_source.refund_receipt_table": {"unique_id": "quickbooks_source.refund_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_table", "block_contents": "Table containing refunds to the customer for a product or service that was provided."}, "quickbooks_source.sales_receipt_line_table": {"unique_id": "quickbooks_source.sales_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_line_table", "block_contents": "Table containing individual line items of a sales transaction."}, "quickbooks_source.sales_receipt_table": {"unique_id": "quickbooks_source.sales_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_table", "block_contents": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited."}, "quickbooks_source.transfer_table": {"unique_id": "quickbooks_source.transfer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transfer_table", "block_contents": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts."}, "quickbooks_source.vendor_credit_line_table": {"unique_id": "quickbooks_source.vendor_credit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_line_table", "block_contents": "Table containing individual vendor credit line items."}, "quickbooks_source.vendor_credit_table": {"unique_id": "quickbooks_source.vendor_credit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_table", "block_contents": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services."}, "quickbooks_source.vendor_table": {"unique_id": "quickbooks_source.vendor_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product."}, "quickbooks_source.account_id": {"unique_id": "quickbooks_source.account_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The identifier of the account associated"}, "quickbooks_source.amount": {"unique_id": "quickbooks_source.amount", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "amount", "block_contents": "Monetary amount of"}, "quickbooks_source.class_id": {"unique_id": "quickbooks_source.class_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "Reference to the class associated"}, "quickbooks_source.created_at": {"unique_id": "quickbooks_source.created_at", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of the creation date"}, "quickbooks_source.currency_id": {"unique_id": "quickbooks_source.currency_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "Reference to the currency"}, "quickbooks_source.customer_id": {"unique_id": "quickbooks_source.customer_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Reference to the customer associated"}, "quickbooks_source.department_id": {"unique_id": "quickbooks_source.department_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "Reference to the department"}, "quickbooks_source.id": {"unique_id": "quickbooks_source.id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "id", "block_contents": "Unique identifier of the"}, "quickbooks_source.item_id": {"unique_id": "quickbooks_source.item_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "Reference to the item"}, "quickbooks_source._fivetran_deleted": {"unique_id": "quickbooks_source._fivetran_deleted", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {"model.quickbooks.int_quickbooks__credit_card_pymt_double_entry": [{"resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_card_pymt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_card_pymt_double_entry", "raw_code": "/*\nTable that creates a debit record to the associated bank account and a credit record to the specified credit card account.\n*/\n\n--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith credit_card_payments as (\n \n select *\n from {{ ref('stg_quickbooks__credit_card_payment_txn') }}\n where is_most_recent_record\n),\n\ncredit_card_payment_prep as (\n\n select\n credit_card_payments.credit_card_payment_id as transaction_id,\n credit_card_payments.source_relation,\n row_number() over (partition by credit_card_payments.credit_card_payment_id order by credit_card_payments.transaction_date) - 1 as index,\n credit_card_payments.transaction_date,\n credit_card_payments.amount,\n credit_card_payments.bank_account_id,\n credit_card_payments.credit_card_account_id,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as class_id\n from credit_card_payments\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount, \n cast(bank_account_id as {{ dbt.type_string() }}) as account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as account_id,\n class_id, \n 'debit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "name": "int_quickbooks__credit_card_pymt_double_entry", "alias": "int_quickbooks__credit_card_pymt_double_entry", "checksum": {"name": "sha256", "checksum": "b0b069fdb6c61a9cccf3f4ab656a9afb040568c0a0d9262943d2fce376b70e57"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to credit card payment transactions.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": false}, "created_at": 1676401664.56202, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_card_payment_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_card_payment_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn", "raw_code": "--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_card_payment_txn_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_card_payment_txn_tmp')),\n staging_columns=get_credit_card_payment_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_card_payment_id,\n amount,\n bank_account_id,\n credit_card_account_id,\n created_at,\n updated_at,\n currency_id,\n transaction_date,\n _fivetran_deleted,\n row_number() over (partition by id, updated_at order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_card_payment_txn.sql", "original_file_path": "models/stg_quickbooks__credit_card_payment_txn.sql", "name": "stg_quickbooks__credit_card_payment_txn", "alias": "stg_quickbooks__credit_card_payment_txn", "checksum": {"name": "sha256", "checksum": "a8274053455a19f46f54111bac914dd48d1365ce550d73b051c8b22f9fafef0b"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn_tmp"], ["stg_quickbooks__credit_card_payment_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('credit_card_payment_txn_table') }}", "columns": {"credit_card_payment_id": {"name": "credit_card_payment_id", "description": "{{ doc('id') }} credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "Reference to the bank account which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Reference to the credit card account which the credit card payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating if the record is the most recent updated version of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676401664.663882, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_tmp')),\n staging_columns=get_purchase_order_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order.sql", "original_file_path": "models/stg_quickbooks__purchase_order.sql", "name": "stg_quickbooks__purchase_order", "alias": "stg_quickbooks__purchase_order", "checksum": {"name": "sha256", "checksum": "697ef46b9a8ee1073daf25c393eca18697b1c95b1b57914e5a9cef8bd8adcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676401664.718511, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_line_tmp')),\n staging_columns=get_purchase_order_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_line.sql", "original_file_path": "models/stg_quickbooks__purchase_order_line.sql", "name": "stg_quickbooks__purchase_order_line", "alias": "stg_quickbooks__purchase_order_line", "checksum": {"name": "sha256", "checksum": "a2b4b3ba47604cb6f1391043643e49168328c1ab7df52754f699748f11fa8888"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_line_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase order is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676401664.714237, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_linked_txn_tmp')),\n staging_columns=get_purchase_order_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_linked_txn.sql", "original_file_path": "models/stg_quickbooks__purchase_order_linked_txn.sql", "name": "stg_quickbooks__purchase_order_linked_txn", "alias": "stg_quickbooks__purchase_order_linked_txn", "checksum": {"name": "sha256", "checksum": "3e9cbee58cb2dab37c5798fd7a97954b3eae45670cc0288ce232394180fd1605"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_linked_txn_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676401664.7155871, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "name": "stg_quickbooks__purchase_order_line_tmp", "alias": "stg_quickbooks__purchase_order_line_tmp", "checksum": {"name": "sha256", "checksum": "be4cdef26ee4b271e7c425130b4c3b80be45214b5be926af060d32331badcc0f"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676401664.317321, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_card_payment_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp", "raw_code": "--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_card_payment_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_card_payment_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "name": "stg_quickbooks__credit_card_payment_txn_tmp", "alias": "stg_quickbooks__credit_card_payment_txn_tmp", "checksum": {"name": "sha256", "checksum": "b1910ce2b3a9463b6c4b232fa24e807de5c899a1d03dde1feef6bc43dbe8b3d6"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_card_payment_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676401664.375691, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_tmp.sql", "name": "stg_quickbooks__purchase_order_tmp", "alias": "stg_quickbooks__purchase_order_tmp", "checksum": {"name": "sha256", "checksum": "a14f234fcfdc6777fe2bb8898ce79b14b45590d19bd6eab25d33ee95cc899bbd"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676401664.402804, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "alias": "stg_quickbooks__purchase_order_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "926409c011fa67fdcd598c4c0c21b87fb5dabe8654d46f0ee7caac0a028d5d99"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676401664.532274, "config_call_dict": {"enabled": false}}]}, "parent_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__general_ledger_by_period": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry"], "model.quickbooks.quickbooks__profit_and_loss": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.quickbooks__cash_flow_statement": ["model.quickbooks.int_quickbooks__cash_flow_classifications"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__balance_sheet"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "analysis.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "analysis.quickbooks.quickbooks__income_statement": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["source.quickbooks_source.quickbooks.vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["source.quickbooks_source.quickbooks.refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["source.quickbooks_source.quickbooks.estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["source.quickbooks_source.quickbooks.credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["source.quickbooks_source.quickbooks.journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["source.quickbooks_source.quickbooks.invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["source.quickbooks_source.quickbooks.payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["source.quickbooks_source.quickbooks.invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["source.quickbooks_source.quickbooks.deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["source.quickbooks_source.quickbooks.customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["source.quickbooks_source.quickbooks.bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["source.quickbooks_source.quickbooks.item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["source.quickbooks_source.quickbooks.account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["source.quickbooks_source.quickbooks.vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["source.quickbooks_source.quickbooks.department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["source.quickbooks_source.quickbooks.bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["source.quickbooks_source.quickbooks.bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["source.quickbooks_source.quickbooks.bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["source.quickbooks_source.quickbooks.estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["source.quickbooks_source.quickbooks.purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["source.quickbooks_source.quickbooks.credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["source.quickbooks_source.quickbooks.bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["source.quickbooks_source.quickbooks.transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["source.quickbooks_source.quickbooks.vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["source.quickbooks_source.quickbooks.purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["source.quickbooks_source.quickbooks.address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["source.quickbooks_source.quickbooks.payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["source.quickbooks_source.quickbooks.refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["source.quickbooks_source.quickbooks.sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["source.quickbooks_source.quickbooks.bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["source.quickbooks_source.quickbooks.journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["source.quickbooks_source.quickbooks.deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["source.quickbooks_source.quickbooks.bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["source.quickbooks_source.quickbooks.invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["source.quickbooks_source.quickbooks.sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["source.quickbooks_source.quickbooks.invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": ["model.quickbooks.quickbooks__general_ledger"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": ["model.quickbooks.quickbooks__general_ledger_by_period"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": ["model.quickbooks.quickbooks__profit_and_loss"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": ["model.quickbooks.quickbooks__balance_sheet"], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": ["model.quickbooks_source.stg_quickbooks__bundle_item"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": ["model.quickbooks_source.stg_quickbooks__vendor"], "source.quickbooks_source.quickbooks.account": [], "source.quickbooks_source.quickbooks.address": [], "source.quickbooks_source.quickbooks.bill_line": [], "source.quickbooks_source.quickbooks.bill_linked_txn": [], "source.quickbooks_source.quickbooks.bill_payment_line": [], "source.quickbooks_source.quickbooks.bill_payment": [], "source.quickbooks_source.quickbooks.bill": [], "source.quickbooks_source.quickbooks.bundle_item": [], "source.quickbooks_source.quickbooks.bundle": [], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": [], "source.quickbooks_source.quickbooks.credit_memo": [], "source.quickbooks_source.quickbooks.customer": [], "source.quickbooks_source.quickbooks.department": [], "source.quickbooks_source.quickbooks.deposit_line": [], "source.quickbooks_source.quickbooks.deposit": [], "source.quickbooks_source.quickbooks.estimate": [], "source.quickbooks_source.quickbooks.estimate_line": [], "source.quickbooks_source.quickbooks.invoice_linked_txn": [], "source.quickbooks_source.quickbooks.invoice_line": [], "source.quickbooks_source.quickbooks.invoice_line_bundle": [], "source.quickbooks_source.quickbooks.invoice": [], "source.quickbooks_source.quickbooks.item": [], "source.quickbooks_source.quickbooks.journal_entry_line": [], "source.quickbooks_source.quickbooks.journal_entry": [], "source.quickbooks_source.quickbooks.payment_line": [], "source.quickbooks_source.quickbooks.payment": [], "source.quickbooks_source.quickbooks.purchase_line": [], "source.quickbooks_source.quickbooks.purchase": [], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": [], "source.quickbooks_source.quickbooks.refund_receipt": [], "source.quickbooks_source.quickbooks.sales_receipt_line": [], "source.quickbooks_source.quickbooks.sales_receipt": [], "source.quickbooks_source.quickbooks.transfer": [], "source.quickbooks_source.quickbooks.vendor_credit_line": [], "source.quickbooks_source.quickbooks.vendor_credit": [], "source.quickbooks_source.quickbooks.vendor": []}, "child_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.int_quickbooks__cash_flow_classifications", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"], "model.quickbooks.quickbooks__general_ledger_by_period": ["analysis.quickbooks.quickbooks__balance_sheet", "analysis.quickbooks.quickbooks__income_statement", "model.quickbooks.quickbooks__balance_sheet", "model.quickbooks.quickbooks__profit_and_loss", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"], "model.quickbooks.quickbooks__profit_and_loss": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"], "model.quickbooks.quickbooks__cash_flow_statement": ["test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__cash_flow_statement"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__retained_earnings", "model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "analysis.quickbooks.quickbooks__balance_sheet": [], "analysis.quickbooks.quickbooks__income_statement": [], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks.int_quickbooks__transfer_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks.int_quickbooks__bill_join", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["model.quickbooks_source.stg_quickbooks__estimate_line", "model.quickbooks_source.stg_quickbooks__estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["model.quickbooks_source.stg_quickbooks__transfer", "model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry_line", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": [], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": [], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": [], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": [], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": [], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": [], "source.quickbooks_source.quickbooks.account": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "source.quickbooks_source.quickbooks.address": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "source.quickbooks_source.quickbooks.bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "source.quickbooks_source.quickbooks.bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "source.quickbooks_source.quickbooks.bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "source.quickbooks_source.quickbooks.bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "source.quickbooks_source.quickbooks.bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "source.quickbooks_source.quickbooks.bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "source.quickbooks_source.quickbooks.bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "source.quickbooks_source.quickbooks.credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "source.quickbooks_source.quickbooks.customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "source.quickbooks_source.quickbooks.department": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "source.quickbooks_source.quickbooks.deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "source.quickbooks_source.quickbooks.deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "source.quickbooks_source.quickbooks.estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "source.quickbooks_source.quickbooks.estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "source.quickbooks_source.quickbooks.invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "source.quickbooks_source.quickbooks.invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "source.quickbooks_source.quickbooks.invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "source.quickbooks_source.quickbooks.invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "source.quickbooks_source.quickbooks.item": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "source.quickbooks_source.quickbooks.journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "source.quickbooks_source.quickbooks.journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "source.quickbooks_source.quickbooks.payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "source.quickbooks_source.quickbooks.payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "source.quickbooks_source.quickbooks.purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "source.quickbooks_source.quickbooks.purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "source.quickbooks_source.quickbooks.refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "source.quickbooks_source.quickbooks.sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "source.quickbooks_source.quickbooks.sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "source.quickbooks_source.quickbooks.transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "source.quickbooks_source.quickbooks.vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "source.quickbooks_source.quickbooks.vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "source.quickbooks_source.quickbooks.vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"]}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T23:14:34.741492Z", "invocation_id": "76c252a5-fad4-463c-bb70-ab196883780d", "env": {}, "project_id": "fb1a7b9ce88ce39cb54ba2ec5c0aaab3", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_integration_tests.bill_payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_data.csv", "original_file_path": "seeds/bill_payment_data.csv", "name": "bill_payment_data", "alias": "bill_payment_data", "checksum": {"name": "sha256", "checksum": "654e27fe99f7891483ba67ae67202f00a166df46c6463965f831bd47d3bc53cf"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.125942, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_data\""}, "seed.quickbooks_integration_tests.bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_data.csv", "original_file_path": "seeds/bundle_data.csv", "name": "bundle_data", "alias": "bundle_data", "checksum": {"name": "sha256", "checksum": "090d802f05c558f45f05a760b5fb1fa879dfeb26c737e6356dcf6bfcb9fbbefb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.133603, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_data\""}, "seed.quickbooks_integration_tests.bill_payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_payment_line_data.csv", "original_file_path": "seeds/bill_payment_line_data.csv", "name": "bill_payment_line_data", "alias": "bill_payment_line_data", "checksum": {"name": "sha256", "checksum": "ae8e7b58ddb78ecbcb7facd257a29f27db08cb69e4014ee40e3a07d02e7ea51a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.1351008, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_integration_tests.payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_integration_tests.payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_line_data.csv", "original_file_path": "seeds/payment_line_data.csv", "name": "payment_line_data", "alias": "payment_line_data", "checksum": {"name": "sha256", "checksum": "6e54b93beaddd05e86b071eb43833845bfc76a841b2780e3e1059f6d661cd238"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.136568, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_line_data\""}, "seed.quickbooks_integration_tests.vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_data.csv", "original_file_path": "seeds/vendor_data.csv", "name": "vendor_data", "alias": "vendor_data", "checksum": {"name": "sha256", "checksum": "98ce313c6a3acf1262de91d25905b85fe760227a534703d9c6bc0e4149b055b5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676416400.138245, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_data\""}, "seed.quickbooks_integration_tests.address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "address_data"], "unique_id": "seed.quickbooks_integration_tests.address_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "address_data.csv", "original_file_path": "seeds/address_data.csv", "name": "address_data", "alias": "address_data", "checksum": {"name": "sha256", "checksum": "2b7bfb3f76e41e3fee0443c10a939053b0edb31b9f4be1bcd0af8d4b686da7b0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.139731, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"address_data\""}, "seed.quickbooks_integration_tests.invoice_line_bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_bundle_data.csv", "original_file_path": "seeds/invoice_line_bundle_data.csv", "name": "invoice_line_bundle_data", "alias": "invoice_line_bundle_data", "checksum": {"name": "sha256", "checksum": "f1cdc81c2fb1ec4f76c5226e2f5e4ed6f17f7b446cb53cfa539d8caafb252a5c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.141206, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_integration_tests.invoice_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_data.csv", "original_file_path": "seeds/invoice_data.csv", "name": "invoice_data", "alias": "invoice_data", "checksum": {"name": "sha256", "checksum": "db4f065992372097a09aec08d7b346381eb542e8ee2668d7d664564262c60b55"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.142796, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_data\""}, "seed.quickbooks_integration_tests.payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_integration_tests.payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "payment_data.csv", "original_file_path": "seeds/payment_data.csv", "name": "payment_data", "alias": "payment_data", "checksum": {"name": "sha256", "checksum": "8c2df9d7db2b4668ddbd1e1e3635cbaf40c798e19be2a83f65e09988771ebb38"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.144619, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_data\""}, "seed.quickbooks_integration_tests.invoice_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_line_data.csv", "original_file_path": "seeds/invoice_line_data.csv", "name": "invoice_line_data", "alias": "invoice_line_data", "checksum": {"name": "sha256", "checksum": "4318a37462107eb6c0548adfba95908611dd94a7ad816ef366524a9eaa4dc4da"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.146126, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_data\""}, "seed.quickbooks_integration_tests.deposit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"deposit_account_id": "bigint", "deposit_class_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_line_data.csv", "original_file_path": "seeds/deposit_line_data.csv", "name": "deposit_line_data", "alias": "deposit_line_data", "checksum": {"name": "sha256", "checksum": "43cf2e49d2ccc28c38ba7db60582b36e46c0ec96827b475e145975fdf8bf9d4e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deposit_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "deposit_class_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676416400.14765, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_line_data\""}, "seed.quickbooks_integration_tests.estimate_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_line_data.csv", "original_file_path": "seeds/estimate_line_data.csv", "name": "estimate_line_data", "alias": "estimate_line_data", "checksum": {"name": "sha256", "checksum": "cff0f0d902a16e9ab0b877d174dd67536537fc669c16505c2efadb0721ce6c26"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.1493518, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_line_data\""}, "seed.quickbooks_integration_tests.purchase_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"credit": "bool"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_data.csv", "original_file_path": "seeds/purchase_data.csv", "name": "purchase_data", "alias": "purchase_data", "checksum": {"name": "sha256", "checksum": "b66de1a5aaf428b1f208ecb9edccd6394086db485d6fc7dde7b152862f03eac9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"credit": "{{ 'boolean' if target.name == 'snowflake' else 'bool' }}"}}, "created_at": 1676416400.150839, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_data\""}, "seed.quickbooks_integration_tests.refund_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_line_data.csv", "original_file_path": "seeds/refund_receipt_line_data.csv", "name": "refund_receipt_line_data", "alias": "refund_receipt_line_data", "checksum": {"name": "sha256", "checksum": "8a67266f87e49dda0de57a6d66b4c1a053af545a6c8d394f8df6470b98cd31c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.152334, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_integration_tests.credit_memo_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_line_data.csv", "original_file_path": "seeds/credit_memo_line_data.csv", "name": "credit_memo_line_data", "alias": "credit_memo_line_data", "checksum": {"name": "sha256", "checksum": "01898bc6786c3c48ebf5aa4170ea54257dd66e6fc38931067c9012bc639f6994"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.1538298, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_integration_tests.bill_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_integration_tests.bill_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_data.csv", "original_file_path": "seeds/bill_data.csv", "name": "bill_data", "alias": "bill_data", "checksum": {"name": "sha256", "checksum": "af6dcdb238e4819003cc182dc5f39a82a61ab19d1299752afc90d49578cfc79b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.155495, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_data\""}, "seed.quickbooks_integration_tests.bill_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_linked_txn_data.csv", "original_file_path": "seeds/bill_linked_txn_data.csv", "name": "bill_linked_txn_data", "alias": "bill_linked_txn_data", "checksum": {"name": "sha256", "checksum": "14f88fc0716d3c253043a68af9b026ab54a93a33784c682b6ec700671f1e03c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.1569438, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_integration_tests.vendor_credit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_data.csv", "original_file_path": "seeds/vendor_credit_data.csv", "name": "vendor_credit_data", "alias": "vendor_credit_data", "checksum": {"name": "sha256", "checksum": "ccc4a1ca3967e3eb7f61d2831242f07b1e5a77006dd4312a17fd36e7ea008bea"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.158394, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_data\""}, "seed.quickbooks_integration_tests.customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_integration_tests.customer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "customer_data.csv", "original_file_path": "seeds/customer_data.csv", "name": "customer_data", "alias": "customer_data", "checksum": {"name": "sha256", "checksum": "2b72eabf58923823033e461d1960295c156b31bf5ace046fc388c336fd96a29d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.159842, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"customer_data\""}, "seed.quickbooks_integration_tests.estimate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_integration_tests.estimate_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "estimate_data.csv", "original_file_path": "seeds/estimate_data.csv", "name": "estimate_data", "alias": "estimate_data", "checksum": {"name": "sha256", "checksum": "06ca472200a91b5758a0e9530e6c810a09e466cbf1aa7fbac215fee8a9f4d737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.161887, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_data\""}, "seed.quickbooks_integration_tests.purchase_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_line_data.csv", "original_file_path": "seeds/purchase_line_data.csv", "name": "purchase_line_data", "alias": "purchase_line_data", "checksum": {"name": "sha256", "checksum": "33355dd453e68ac5a5afa2f71e3c515dc414cdd55a489c65d2c2c4fa06fd18e7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_account_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "created_at": 1676416400.1633768, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_line_data.csv", "original_file_path": "seeds/journal_entry_line_data.csv", "name": "journal_entry_line_data", "alias": "journal_entry_line_data", "checksum": {"name": "sha256", "checksum": "76d98c0fe816cb2d3790e1c63b61c0b6128de39e3175a231b98dbd640ba13cd4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.164932, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_integration_tests.journal_entry_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_integration_tests.journal_entry_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "journal_entry_data.csv", "original_file_path": "seeds/journal_entry_data.csv", "name": "journal_entry_data", "alias": "journal_entry_data", "checksum": {"name": "sha256", "checksum": "6f717632a6fe0901786fbdfed63db69af1c928331ed9cb83f9fd389fe2b9ab83"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.166375, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_data\""}, "seed.quickbooks_integration_tests.bill_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_integration_tests.bill_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bill_line_data.csv", "original_file_path": "seeds/bill_line_data.csv", "name": "bill_line_data", "alias": "bill_line_data", "checksum": {"name": "sha256", "checksum": "df882ab43a0bd79aed13e13dee1934269989ae1bea9d3672ed7cc9840c14d073"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1676416400.167994, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_line_data\""}, "seed.quickbooks_integration_tests.bundle_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_integration_tests.bundle_item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "bundle_item_data.csv", "original_file_path": "seeds/bundle_item_data.csv", "name": "bundle_item_data", "alias": "bundle_item_data", "checksum": {"name": "sha256", "checksum": "69218d4dc89cf8da55d1a5aab12bbe45129b48377fa7615f0030616d8c34fe9d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.169475, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_item_data\""}, "seed.quickbooks_integration_tests.invoice_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "invoice_linked_txn_data.csv", "original_file_path": "seeds/invoice_linked_txn_data.csv", "name": "invoice_linked_txn_data", "alias": "invoice_linked_txn_data", "checksum": {"name": "sha256", "checksum": "88dda316adf9a5921231dbe5bd5d0c425391ccf9b72a7d6c937155d67b3b45ba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.1710012, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_integration_tests.account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "account_data"], "unique_id": "seed.quickbooks_integration_tests.account_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "account_data.csv", "original_file_path": "seeds/account_data.csv", "name": "account_data", "alias": "account_data", "checksum": {"name": "sha256", "checksum": "82ea90640018b00ad075d5bc1f78bdf38e05b0359fda1b40f4dd249efe1d85d9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.172651, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"account_data\""}, "seed.quickbooks_integration_tests.purchase_order_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_line_data.csv", "original_file_path": "seeds/purchase_order_line_data.csv", "name": "purchase_order_line_data", "alias": "purchase_order_line_data", "checksum": {"name": "sha256", "checksum": "39d5f88917f7d5d8ec70465d8569a38bd19d72bfb26bc495f3231b3e6599c945"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.1741068, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_integration_tests.transfer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_integration_tests.transfer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "transfer_data.csv", "original_file_path": "seeds/transfer_data.csv", "name": "transfer_data", "alias": "transfer_data", "checksum": {"name": "sha256", "checksum": "8301e8b1cbaa430f338d9b589570efb442969ab67a24a92e615b08e3440431ce"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.175543, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"transfer_data\""}, "seed.quickbooks_integration_tests.purchase_order_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_integration_tests.purchase_order_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "purchase_order_data.csv", "original_file_path": "seeds/purchase_order_data.csv", "name": "purchase_order_data", "alias": "purchase_order_data", "checksum": {"name": "sha256", "checksum": "41146f57f7697001a690027ea7182ef76dd5d591bb5dce7438edefb3e5fd0101"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.17698, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_data\""}, "seed.quickbooks_integration_tests.sales_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_line_data.csv", "original_file_path": "seeds/sales_receipt_line_data.csv", "name": "sales_receipt_line_data", "alias": "sales_receipt_line_data", "checksum": {"name": "sha256", "checksum": "19895ca1cfb2ebe0a4e8ef0e5c5ef9c0dbb505053cc4b98bb06de8bd3ead523f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.178571, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_integration_tests.vendor_credit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"item_expense_billable_status": "varchar(100)", "account_expense_billable_status": "varchar(100)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "vendor_credit_line_data.csv", "original_file_path": "seeds/vendor_credit_line_data.csv", "name": "vendor_credit_line_data", "alias": "vendor_credit_line_data", "checksum": {"name": "sha256", "checksum": "8c60276eb72f29fcd60b6aff2615648b71ce47e0b738331b54f86c988a979737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"item_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}", "account_expense_billable_status": "{{ 'varchar(100)' if target.name in ('redshift', 'postgres') else 'string' }}"}}, "created_at": 1676416400.180057, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_integration_tests.credit_card_payment_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_card_payment_txn_data"], "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_card_payment_txn_data.csv", "original_file_path": "seeds/credit_card_payment_txn_data.csv", "name": "credit_card_payment_txn_data", "alias": "credit_card_payment_txn_data", "checksum": {"name": "sha256", "checksum": "df04fb5f0ab05dd015e6476d647f9564edf6f015cd1d429ceded40e9bfd915b9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.181571, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_card_payment_txn_data\""}, "seed.quickbooks_integration_tests.credit_memo_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_integration_tests.credit_memo_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "credit_memo_data.csv", "original_file_path": "seeds/credit_memo_data.csv", "name": "credit_memo_data", "alias": "credit_memo_data", "checksum": {"name": "sha256", "checksum": "3cef678ada5ab1119a096e5f6bea67c6680466ff2a21807512f1a4dba83b6139"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.1830342, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_data\""}, "seed.quickbooks_integration_tests.department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "department_data"], "unique_id": "seed.quickbooks_integration_tests.department_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "department_data.csv", "original_file_path": "seeds/department_data.csv", "name": "department_data", "alias": "department_data", "checksum": {"name": "sha256", "checksum": "079a79543e6cfcdac83eeeeb9672451756cc6c48e7d4c572d9f761b9314b18d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.1846159, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"department_data\""}, "seed.quickbooks_integration_tests.item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "item_data"], "unique_id": "seed.quickbooks_integration_tests.item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "item_data.csv", "original_file_path": "seeds/item_data.csv", "name": "item_data", "alias": "item_data", "checksum": {"name": "sha256", "checksum": "8057771cc5c837c6193ad423e6a52f7058f6001550eaa0c15098857415aee7d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.186049, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"item_data\""}, "seed.quickbooks_integration_tests.sales_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "sales_receipt_data.csv", "original_file_path": "seeds/sales_receipt_data.csv", "name": "sales_receipt_data", "alias": "sales_receipt_data", "checksum": {"name": "sha256", "checksum": "2ac15faf0cdff7d71155fc20bb86e69d0a67d25f2172f220dbe850d45738230b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1676416400.187566, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_data\""}, "seed.quickbooks_integration_tests.deposit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_integration_tests.deposit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "deposit_data.csv", "original_file_path": "seeds/deposit_data.csv", "name": "deposit_data", "alias": "deposit_data", "checksum": {"name": "sha256", "checksum": "e0e4299672423dbdf3d63d050ecd34c29580b5a368b64307053a635e7dd9286e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1676416400.189055, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_data\""}, "seed.quickbooks_integration_tests.refund_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"transaction_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_integration_tests", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests", "path": "refund_receipt_data.csv", "original_file_path": "seeds/refund_receipt_data.csv", "name": "refund_receipt_data", "alias": "refund_receipt_data", "checksum": {"name": "sha256", "checksum": "0bfb44ee366239221dfee9e985b0c66d5a7cbc6d0bb8c18cf02acba7616c135d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"transaction_date": "date"}}, "created_at": 1676416400.190677, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_data\""}, "model.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__balance_sheet"], "unique_id": "model.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__balance_sheet.sql", "original_file_path": "models/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2dfcdf44d9e54e45aad4ba6e1857e20aff338846ce16fc2e059774d1496ca222"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all asset, liability, and equity account classes by calendar year and month enriched with account type, class, and parent information.\n", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the balance sheet line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total ending period balance.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.6762729, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'balance_sheet'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_ending_balance as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\""}, "model.quickbooks.quickbooks__general_ledger_by_period": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger_by_period"], "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nretained_earnings as (\n\n select *\n from {{ ref('int_quickbooks__retained_earnings') }}\n),\n\n{% if var('financial_statement_ordinal') %}\nordinals as ( \n\n select \n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n ordinal\n from {{ var('financial_statement_ordinal') }}\n),\n{% endif %}\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n {% if var('financial_statement_ordinal') %}\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as account_ordinal\n {% else %}\n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n {% endif %}\n from balances_earnings_unioned\n {% if var('financial_statement_ordinal') %}\n left join ordinals as account_number_ordinal\n on balances_earnings_unioned.account_number = account_number_ordinal.account_number\n left join ordinals as account_sub_type_ordinal\n on balances_earnings_unioned.account_sub_type = account_sub_type_ordinal.account_sub_type\n left join ordinals as account_type_ordinal\n on balances_earnings_unioned.account_type = account_type_ordinal.account_type\n left join ordinals as account_class_ordinal\n on balances_earnings_unioned.account_class = account_class_ordinal.account_class\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger_by_period.sql", "original_file_path": "models/quickbooks__general_ledger_by_period.sql", "name": "quickbooks__general_ledger_by_period", "alias": "quickbooks__general_ledger_by_period", "checksum": {"name": "sha256", "checksum": "81b71ad880e03e46825645b549c5459da037d29b07524c66547764201690f1d9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"], ["int_quickbooks__retained_earnings"]], "sources": [], "metrics": [], "description": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year.", "columns": {"account_id": {"name": "account_id", "description": "The identifier of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account. with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the period balance transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Helper field identifying whether the account impacts the balances sheet or income statement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_year": {"name": "date_year", "description": "Timestamp of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_first_day": {"name": "period_first_day", "description": "Timestamp of the first date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_last_day": {"name": "period_last_day", "description": "Timestamp of the last date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_net_change": {"name": "period_net_change", "description": "Account balance difference from the beginning and ending of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_beginning_balance": {"name": "period_beginning_balance", "description": "Balance of the account as of the first date of the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "period_ending_balance": {"name": "period_ending_balance", "description": "Sum of all transaction line adjusted_balances of the account for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger_by_period.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.6699378, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nretained_earnings as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\"\n),\n\n\n\nbalances_earnings_unioned as (\n\n select *\n from general_ledger_balances\n\n union all \n\n select *\n from retained_earnings\n), \n\nfinal as (\n\n select \n balances_earnings_unioned.*,\n \n case \n when account_class = 'Asset' then 1\n when account_class = 'Liability' then 2\n when account_class = 'Equity' then 3\n when account_class = 'Revenue' then 1\n when account_class = 'Expense' then 2\n end as account_ordinal \n \n from balances_earnings_unioned\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\""}, "model.quickbooks.quickbooks__general_ledger": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks.get_enabled_unioned_models", "macro.dbt_utils.union_relations", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__general_ledger"], "unique_id": "model.quickbooks.quickbooks__general_ledger", "raw_code": "with unioned_models as (\n\n {{ dbt_utils.union_relations(get_enabled_unioned_models()) }}\n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n),\n\n\nadjusted_gl as (\n \n select\n {{ dbt_utils.generate_surrogate_key(['gl_union.transaction_id', 'gl_union.index', 'gl_union.account_id', ' gl_union.transaction_type', 'gl_union.transaction_source']) }} as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__general_ledger.sql", "original_file_path": "models/quickbooks__general_ledger.sql", "name": "quickbooks__general_ledger", "alias": "quickbooks__general_ledger", "checksum": {"name": "sha256", "checksum": "b1c31176369acc7045e2d328f3603cbe99c014621e59c82d7f281a4521310e6c"}, "tags": [], "refs": [["int_quickbooks__purchase_double_entry"], ["int_quickbooks__bill_double_entry"], ["int_quickbooks__credit_memo_double_entry"], ["int_quickbooks__deposit_double_entry"], ["int_quickbooks__invoice_double_entry"], ["int_quickbooks__journal_entry_double_entry"], ["int_quickbooks__payment_double_entry"], ["int_quickbooks__refund_receipt_double_entry"], ["int_quickbooks__sales_receipt_double_entry"], ["int_quickbooks__transfer_double_entry"], ["int_quickbooks__vendor_credit_double_entry"], ["int_quickbooks__bill_payment_double_entry"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction.", "columns": {"unique_id": {"name": "unique_id", "description": "Unique identifier of the general ledger line, dependent on `transaction_id`, `transaction_index`, `account_id`, `transaction_type`, `transaction_source`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction. Each transaction will have an offsetting debit and credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_index": {"name": "transaction_index", "description": "Unique identifier of the individual debit and credit records of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "financial_statement_helper": {"name": "financial_statement_helper", "description": "Either 'balance sheet' or 'income statement' and is used to determine that financial statement the account impacts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_current_balance": {"name": "account_current_balance", "description": "Total current balance of the account associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the transaction line. Will be one of 'Expense', 'Revenue', 'Asset', 'Liability', and 'Equity'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Identifier of whether the transaction is a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_source": {"name": "transaction_source", "description": "Field signifying the source of transaction (eg. Bill, Invoice, Deposit, Journal Entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_transaction_type": {"name": "account_transaction_type", "description": "Identifier of whether the account is increased by either a debit or credit entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjusted_amount": {"name": "adjusted_amount", "description": "The amount that impacts the account. If the transaction_type = account_transaction_type then the impact will increase, otherwise it will decrease the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "running_balance": {"name": "running_balance", "description": "The running balance of the account by each individual day.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__general_ledger.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.665997, "compiled_code": "with unioned_models as (\n\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\"\n\n \n )\n\n union all\n \n\n (\n select\n cast('\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"' as TEXT) as _dbt_source_relation,\n\n \n cast(\"transaction_id\" as text) as \"transaction_id\" ,\n cast(\"source_relation\" as text) as \"source_relation\" ,\n cast(\"index\" as integer) as \"index\" ,\n cast(\"transaction_date\" as timestamp without time zone) as \"transaction_date\" ,\n cast(\"customer_id\" as text) as \"customer_id\" ,\n cast(\"vendor_id\" as text) as \"vendor_id\" ,\n cast(\"amount\" as integer) as \"amount\" ,\n cast(\"account_id\" as text) as \"account_id\" ,\n cast(\"class_id\" as text) as \"class_id\" ,\n cast(\"transaction_type\" as text) as \"transaction_type\" ,\n cast(\"transaction_source\" as text) as \"transaction_source\" \n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\"\n\n \n )\n\n \n),\n\ngl_union as (\n\n select transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n account_id,\n class_id,\n transaction_type,\n transaction_source \n from unioned_models\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n),\n\n\nadjusted_gl as (\n \n select\n \n \nmd5(cast(coalesce(cast(gl_union.transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.index as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast( gl_union.transaction_type as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(gl_union.transaction_source as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as unique_id,\n gl_union.transaction_id,\n gl_union.source_relation,\n gl_union.index as transaction_index,\n gl_union.transaction_date,\n gl_union.customer_id,\n gl_union.vendor_id,\n gl_union.amount,\n gl_union.account_id,\n gl_union.class_id,\n accounts.account_number,\n accounts.name as account_name,\n accounts.is_sub_account,\n accounts.parent_account_number,\n accounts.parent_account_name,\n accounts.account_type,\n accounts.account_sub_type,\n accounts.financial_statement_helper,\n accounts.balance as account_current_balance,\n accounts.classification as account_class, \n gl_union.transaction_type,\n gl_union.transaction_source,\n accounts.transaction_type as account_transaction_type,\n case when accounts.transaction_type = gl_union.transaction_type\n then gl_union.amount\n else gl_union.amount * -1\n end as adjusted_amount\n from gl_union\n\n left join accounts\n on gl_union.account_id = accounts.account_id\n and gl_union.source_relation = accounts.source_relation\n),\n\nfinal as (\n\n select\n *,\n sum(adjusted_amount) over (partition by account_id order by transaction_date, account_id rows unbounded preceding) as running_balance\n from adjusted_gl\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\""}, "model.quickbooks.quickbooks__profit_and_loss": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__profit_and_loss"], "unique_id": "model.quickbooks.quickbooks__profit_and_loss", "raw_code": "with general_ledger_by_period as (\n\n select *\n from {{ ref('quickbooks__general_ledger_by_period') }}\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__profit_and_loss.sql", "original_file_path": "models/quickbooks__profit_and_loss.sql", "name": "quickbooks__profit_and_loss", "alias": "quickbooks__profit_and_loss", "checksum": {"name": "sha256", "checksum": "20c36e05d01bfc1acee632ee45fe2861296d19a4dbf6826b0a3dcee5a7933bdd"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information.", "columns": {"calendar_date": {"name": "calendar_date", "description": "Timestamp of the first calendar date of the month.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the profit and loss line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total period net change for the period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_ordinal": {"name": "account_ordinal", "description": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__profit_and_loss.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.6732092, "compiled_code": "with general_ledger_by_period as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where financial_statement_helper = 'income_statement'\n), \n\nfinal as (\n select\n period_first_day as calendar_date,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n period_net_change as amount,\n account_ordinal\n from general_ledger_by_period\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\""}, "model.quickbooks.quickbooks__expenses_sales_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true"], "nodes": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__expenses_sales_enhanced"], "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced", "raw_code": "with expenses as (\n\n select *\n from {{ ref('int_quickbooks__expenses_union') }}\n),\n\n{% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\nsales as (\n\n select *\n from {{ ref('int_quickbooks__sales_union') }}\n),\n{% endif %}\n\nfinal as (\n \n select *\n from expenses\n\n {% if fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from sales\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__expenses_sales_enhanced.sql", "original_file_path": "models/quickbooks__expenses_sales_enhanced.sql", "name": "quickbooks__expenses_sales_enhanced", "alias": "quickbooks__expenses_sales_enhanced", "checksum": {"name": "sha256", "checksum": "14dc301b814cc78cbd136971e534e3611271de7a4b36bf8f1d5f8af5ed1947c1"}, "tags": [], "refs": [["int_quickbooks__expenses_union"], ["int_quickbooks__sales_union"]], "sources": [], "metrics": [], "description": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records.", "columns": {"transaction_source": {"name": "transaction_source", "description": "Set to 'expense' if the transaction type is an expense and 'sale' if the transaction type is a sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Specifies the expense or sale transaction type (ie. invoice, sales_receipt, deposit, journal entry, etc.).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date that the transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Unique identifier of the item included in a sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Quantity of items included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_unit_price": {"name": "item_unit_price", "description": "Unit price of the item included in the sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_name": {"name": "customer_name", "description": "Name of the customer associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_website": {"name": "customer_website", "description": "The website url of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_name": {"name": "vendor_name", "description": "Name of the vendor associated with either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status indicating whether the expense or sale is billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description given to either the expense or sale transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of either the expense or sale line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of either the expense or sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__expenses_sales_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.661008, "compiled_code": "with expenses as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\"\n),\n\n\nsales as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_union\"\n),\n\n\nfinal as (\n \n select *\n from expenses\n\n \n union all\n\n select *\n from sales\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\""}, "model.quickbooks.quickbooks__ap_ar_enhanced": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.datediff"], "nodes": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__ap_ar_enhanced"], "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_join as (\n\n select *\n from {{ref('int_quickbooks__bill_join')}}\n),\n\n{% if var('using_invoice', True) %}\ninvoice_join as (\n\n select *\n from {{ref('int_quickbooks__invoice_join')}}\n),\n{% endif %}\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\n{% if var('using_address', True) %}\naddresses as (\n\n select *\n from {{ref('stg_quickbooks__address')}}\n),\n{% endif %}\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as {{ dbt.type_string() }}) as estimate_id, \n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n \n vendors.web_url as customer_vendor_website,\n cast(null as {{ dbt.type_string() }}) as delivery_type,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n bill_join.total_amount,\n cast(null as {{ dbt.type_numeric() }}) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"bill_join.recent_payment_date\", \"bill_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n {% if var('using_department', True) %}\n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n {% endif %}\n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n {% if var('using_address', True) %}\n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n {% endif %}\n \n {% if var('using_invoice', True) %}\n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n {% if var('using_address', True) %}\n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n {% endif %}\n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} < 0\n then {{ dbt.datediff(\"invoice_join.recent_payment_date\", \"invoice_join.due_date\", 'day') }} * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n {% if var('using_department', True) %}\n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n {% endif %}\n\n {% if var('using_address', True) %}\n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n {% endif %}\n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n {% endif %}\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__ap_ar_enhanced.sql", "original_file_path": "models/quickbooks__ap_ar_enhanced.sql", "name": "quickbooks__ap_ar_enhanced", "alias": "quickbooks__ap_ar_enhanced", "checksum": {"name": "sha256", "checksum": "a46a57fcf6a2966d9bba092f18cc5f3c39404ad382dab921ba31caef80b49417"}, "tags": [], "refs": [["int_quickbooks__bill_join"], ["int_quickbooks__invoice_join"], ["stg_quickbooks__department"], ["stg_quickbooks__address"], ["stg_quickbooks__customer"], ["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time.", "columns": {"transaction_type": {"name": "transaction_type", "description": "Set to 'bill' of the transaction is a bill and 'invoice' if the transaction is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Unique identifier of the transaction for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "The QuickBooks document number reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department associated with either the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_with": {"name": "transaction_with", "description": "Set to 'vendor' if the transaction type is a bill and 'customer' if the transaction type is an invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_name": {"name": "customer_vendor_name", "description": "Full name of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_balance": {"name": "customer_vendor_balance", "description": "Total current account balance of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_city": {"name": "customer_vendor_address_city", "description": "City of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_country": {"name": "customer_vendor_address_country", "description": "Country of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_address_line": {"name": "customer_vendor_address_line", "description": "Address line of the vendor (if a bill) or the customer (if an invoice).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_vendor_website": {"name": "customer_vendor_website", "description": "The website url of the customer or vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice was delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_status": {"name": "estimate_status", "description": "The status of the invoice estimate (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The total monetary amount of the invoice or bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_amount": {"name": "estimate_amount", "description": "The total amount estimated of the bill or invoice (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_balance": {"name": "current_balance", "description": "The bill or invoice defined remaining balance of the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_current_payment": {"name": "total_current_payment", "description": "Sum of all total payments made towards the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the due date for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_overdue": {"name": "is_overdue", "description": "Boolean indicating whether the bill or invoice full payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "days_overdue": {"name": "days_overdue", "description": "The recent payment minus the due date to show the total days the total payment is overdue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "initial_payment_date": {"name": "initial_payment_date", "description": "The first date a payment was provided for the bill or invoice", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recent_payment_date": {"name": "recent_payment_date", "description": "The last date a payment was provided for the bill or invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__ap_ar_enhanced.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.650639, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith bill_join as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_join\"\n),\n\n\ninvoice_join as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\"\n),\n\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\n\naddresses as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n),\n\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nfinal as (\n\n select\n bill_join.transaction_type,\n bill_join.transaction_id,\n bill_join.source_relation,\n doc_number,\n cast(null as TEXT) as estimate_id, \n\n \n departments.fully_qualified_name as department_name,\n \n\n 'vendor' as transaction_with,\n vendors.display_name as customer_vendor_name,\n vendors.balance as customer_vendor_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n \n vendors.web_url as customer_vendor_website,\n cast(null as TEXT) as delivery_type,\n cast(null as TEXT) as estimate_status,\n bill_join.total_amount,\n cast(null as numeric(28,6)) as estimate_amount,\n bill_join.current_balance,\n bill_join.total_current_payment,\n bill_join.due_date,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when bill_join.current_balance != 0 and \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n < 0\n then \n ((bill_join.due_date)::date - (bill_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n bill_join.initial_payment_date,\n bill_join.recent_payment_date\n from bill_join\n\n \n left join departments \n on bill_join.department_id = departments.department_id\n and bill_join.source_relation = departments.source_relation\n \n\n left join vendors\n on bill_join.vendor_id = vendors.vendor_id\n and bill_join.source_relation = vendors.source_relation\n \n \n left join addresses as billing_address\n on vendors.billing_address_id = billing_address.address_id\n and vendors.source_relation = billing_address.source_relation\n \n \n \n union all\n\n select \n invoice_join.transaction_type,\n invoice_join.transaction_id,\n invoice_join.source_relation,\n doc_number,\n invoice_join.estimate_id,\n\n \n departments.fully_qualified_name as department_name,\n \n\n 'customer' as transaction_with,\n customers.fully_qualified_name as customer_vendor_name,\n customers.balance as customer_vendor_current_balance,\n\n \n billing_address.city as customer_vendor_address_city,\n billing_address.country as customer_vendor_address_country,\n concat(billing_address.address_1, billing_address.address_2) as customer_vendor_address_line,\n \n\n customers.website as customer_vendor_webiste,\n invoice_join.delivery_type,\n invoice_join.estimate_status,\n invoice_join.total_amount as total_amount,\n invoice_join.estimate_total_amount as estimate_total_amount,\n invoice_join.current_balance as current_balance,\n invoice_join.total_current_payment as total_current_payment,\n invoice_join.due_date,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then true\n else false\n end as is_overdue,\n case when invoice_join.current_balance != 0 and \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n < 0\n then \n ((invoice_join.due_date)::date - (invoice_join.recent_payment_date)::date)\n * -1\n else 0\n end as days_overdue,\n invoice_join.initial_payment_date,\n invoice_join.recent_payment_date\n from invoice_join\n\n \n left join departments \n on invoice_join.department_id = departments.department_id\n and invoice_join.source_relation = departments.source_relation\n \n\n \n left join addresses as billing_address\n on invoice_join.billing_address_id = billing_address.address_id\n and invoice_join.source_relation = billing_address.source_relation\n \n\n left join customers\n on invoice_join.customer_id = customers.customer_id\n and invoice_join.source_relation = customers.source_relation\n\n \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\""}, "model.quickbooks.quickbooks__cash_flow_statement": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks.int_quickbooks__cash_flow_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "quickbooks__cash_flow_statement"], "unique_id": "model.quickbooks.quickbooks__cash_flow_statement", "raw_code": "with cash_flow_classifications as (\n \n select *\n from {{ ref('int_quickbooks__cash_flow_classifications') }}\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "quickbooks__cash_flow_statement.sql", "original_file_path": "models/quickbooks__cash_flow_statement.sql", "name": "quickbooks__cash_flow_statement", "alias": "quickbooks__cash_flow_statement", "checksum": {"name": "sha256", "checksum": "08755f384d8c772516c9ee251fe73ceda61e54f61a0db87d7514347247d54ef7"}, "tags": [], "refs": [["int_quickbooks__cash_flow_classifications"]], "sources": [], "metrics": [], "description": "Table that provides all line items necessary to construct a cash flow statement.", "columns": {"account_unique_id": {"name": "account_unique_id", "description": "Unique identifier of the cash flow statement account line, dependent on account_id, class_id, source_relation and calendar_date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_period": {"name": "cash_flow_period", "description": "Timestamp of the first date for the cash flow period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_class": {"name": "account_class", "description": "Class of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Boolean indicating whether the account is a sub account (true) or a parent account (false).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_number": {"name": "parent_account_number", "description": "The parent account number. If the account is the parent account then the account number is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "The parent account name. If the account is the parent account then the account name is recorded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "The type of account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "Sub type of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User defined number of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the cash flow line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_type": {"name": "cash_flow_type", "description": "The type of cash flow (Defaults are Cash or Cash Equivalents, Investing, Operating, Financing). The customer can also configure the cash flow type; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_ordinal": {"name": "cash_flow_ordinal", "description": "Integer value to order the account within final cash flow statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-cash-flow-model).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_ending_period": {"name": "cash_ending_period", "description": "The total ending period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_beginning_period": {"name": "cash_beginning_period", "description": "The total beginning period balance cash for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_net_period": {"name": "cash_net_period", "description": "The net cash change from the beginning to the end of the period for every cash flow account line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/quickbooks__cash_flow_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.655225, "compiled_code": "with cash_flow_classifications as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\"\n), \n\nfinal as (\n \n select cash_flow_classifications.*,\n lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period) as cash_beginning_period,\n cash_ending_period - (lag(cash_ending_period) over (partition by account_id, class_id, source_relation order by cash_flow_period)) as cash_net_period\n from cash_flow_classifications\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\""}, "model.quickbooks.int_quickbooks__transfer_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__transfer_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry", "raw_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith transfers as (\n\n select *\n from {{ ref('stg_quickbooks__transfer') }}\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "name": "int_quickbooks__transfer_double_entry", "alias": "int_quickbooks__transfer_double_entry", "checksum": {"name": "sha256", "checksum": "08b6fc8e3b028b3ff6f5f7b2ca25776e1531ef90e62bc71c95a7c3bad16710ed"}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the receiving account and a credit record to the sending account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__transfer_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.6404579, "compiled_code": "/*\nTable that creates a debit record to the receiveing account and a credit record to the sending account.\n*/\n\n--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith transfers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n),\n\ntransfer_body as (\n\n select\n transfer_id as transaction_id,\n source_relation,\n row_number() over(partition by transfer_id order by transaction_date) - 1 as index,\n transaction_date,\n amount,\n from_account_id as credit_to_account_id,\n to_account_id as debit_to_account_id\n from transfers\n),\n\nfinal as (\n \n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'transfer' as transaction_source\n from transfer_body\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__transfer_double_entry\""}, "model.quickbooks.int_quickbooks__credit_memo_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_memo_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry", "raw_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "name": "int_quickbooks__credit_memo_double_entry", "alias": "int_quickbooks__credit_memo_double_entry", "checksum": {"name": "sha256", "checksum": "e0d97e4dccb230ea8aa258b5cb258e43881fe5de6ded72058163645cc705d3ea"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__credit_memo_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.6378849, "compiled_code": "/*\nTable that creates a debit record to Discounts Refunds Given and a credit record to the specified income account.\n*/\n\n--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\ndf_accounts as (\n\n select\n account_id as account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\ncredit_memo_join as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index,\n credit_memos.transaction_date,\n credit_memo_lines.amount,\n coalesce(credit_memo_lines.sales_item_account_id, items.income_account_id, items.expense_account_id) as account_id,\n credit_memos.customer_id,\n coalesce(credit_memo_lines.sales_item_class_id, credit_memo_lines.discount_class_id, credit_memos.class_id) as class_id\n \n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n\n where coalesce(credit_memo_lines.discount_account_id, credit_memo_lines.sales_item_account_id, credit_memo_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount * -1 as amount,\n df_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'credit_memo' as transaction_source\n from credit_memo_join\n\n cross join df_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__credit_memo_double_entry\""}, "model.quickbooks.int_quickbooks__refund_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__refund_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "name": "int_quickbooks__refund_receipt_double_entry", "alias": "int_quickbooks__refund_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "8324e59e150115fdea6272a77fc9868ff3343f9d6768236f654d670ee7b02e5e"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified asset account and a credit record the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__refund_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.639937, "compiled_code": "/*\nTable that creates a debit record to the specified asset account and a credit record the specified cash account.\n*/\n\n--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nrefund_receipt_join as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index,\n refund_receipts.transaction_date,\n refund_receipt_lines.amount,\n refund_receipts.deposit_to_account_id as credit_to_account_id,\n coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as debit_account_id,\n refund_receipts.customer_id,\n coalesce(refund_receipt_lines.sales_item_class_id, refund_receipt_lines.discount_class_id, refund_receipts.class_id) as class_id\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n\n where coalesce(refund_receipt_lines.discount_account_id, refund_receipt_lines.sales_item_account_id, refund_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'refund_receipt' as transaction_source\n from refund_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__refund_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__journal_entry_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__journal_entry_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry", "raw_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "name": "int_quickbooks__journal_entry_double_entry", "alias": "int_quickbooks__journal_entry_double_entry", "checksum": {"name": "sha256", "checksum": "5a1a31080d550c5cea879594f8ac10b70b52dd0d3403ec150a50c3375bd8560e"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that provides the debit and credit records of a journal entry transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__journal_entry_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.639037, "compiled_code": "/*\nTable that provides the debit and credit records of a journal entry transaction.\n*/\n\n--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index,\n journal_entries.transaction_date,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n journal_entry_lines.amount,\n journal_entry_lines.account_id,\n class_id,\n lower(journal_entry_lines.posting_type) as transaction_type,\n 'journal_entry' as transaction_source\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n\n where journal_entry_lines.amount is not null\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__journal_entry_double_entry\""}, "model.quickbooks.int_quickbooks__bill_payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "name": "int_quickbooks__bill_payment_double_entry", "alias": "int_quickbooks__bill_payment_double_entry", "checksum": {"name": "sha256", "checksum": "7681540e1b8b756efaf589a11195020a1300b6ed9f70d52546a5871054c29b95"}, "tags": [], "refs": [["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts payable and a credit record to the specified cash account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.637556, "compiled_code": "/*\nTable that creates a debit record to accounts payable and a credit record to the specified cash account.\n*/\n\n--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith bill_payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nap_accounts as (\n\n select\n account_id\n from accounts\n \n where account_type = 'Accounts Payable'\n and is_active\n and not is_sub_account\n),\n\nbill_payment_join as (\n select\n bill_payments.bill_payment_id as transaction_id,\n bill_payments.source_relation,\n row_number() over(partition by bill_payments.bill_payment_id order by bill_payments.transaction_date) - 1 as index,\n bill_payments.transaction_date,\n bill_payments.total_amount as amount,\n coalesce(bill_payments.credit_card_account_id,bill_payments.check_bank_account_id) as payment_account_id,\n ap_accounts.account_id,\n bill_payments.vendor_id\n from bill_payments\n\n cross join ap_accounts\n\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n payment_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n cast(null as TEXT) as customer_id,\n vendor_id,\n amount,\n account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'bill payment' as transaction_source\n from bill_payment_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_payment_double_entry\""}, "model.quickbooks.int_quickbooks__deposit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__deposit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n\n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "name": "int_quickbooks__deposit_double_entry", "alias": "int_quickbooks__deposit_double_entry", "checksum": {"name": "sha256", "checksum": "9f702e78f5e48d8771a24b5e372b77bfb41fa9e78fed48c4123fdc3770b40296"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to either undeposited funds or a specific other account indicated in the deposit line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__deposit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.638494, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to either undeposited funds or a \nspecific other account indicated in the deposit line.\n*/\n\n--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nuf_accounts as (\n\n select\n account_id\n from accounts\n\n where account_sub_type = 'UndepositedFunds'\n and is_active\n and not is_sub_account\n),\n\ndeposit_join as (\n\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index,\n deposits.transaction_date,\n deposit_lines.amount,\n deposits.account_id as deposit_to_acct_id,\n coalesce(deposit_lines.deposit_account_id, uf_accounts.account_id) as deposit_from_acct_id,\n deposit_customer_id as customer_id,\n deposit_lines.deposit_class_id as class_id\n\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n \n cross join uf_accounts\n\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_acct_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_from_acct_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'deposit' as transaction_source\n from deposit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__deposit_double_entry\""}, "model.quickbooks.int_quickbooks__purchase_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__purchase_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry", "raw_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\npurchase_lines as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "name": "int_quickbooks__purchase_double_entry", "alias": "int_quickbooks__purchase_double_entry", "checksum": {"name": "sha256", "checksum": "6928b3fc773e3881f03746c0e7c86e9edb1169d5bf456c219694efc2eaefcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__purchase_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to a specified expense account and a credit record to the payment account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__purchase_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate"}, "created_at": 1676416401.6396742, "compiled_code": "/*\nTable that creates a debit record to a specified expense account and a credit record to the payment account.\n*/\nwith purchases as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\npurchase_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.expense_account_id as parent_expense_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\npurchase_join as (\n\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index,\n purchases.transaction_date,\n purchase_lines.amount,\n coalesce(purchase_lines.account_expense_account_id, items.parent_expense_account_id, items.expense_account_id) as payed_to_account_id,\n purchases.account_id as payed_from_account_id,\n case when coalesce(purchases.credit, false) = true then 'debit' else 'credit' end as payed_from_transaction_type,\n case when coalesce(purchases.credit, false) = true then 'credit' else 'debit' end as payed_to_transaction_type,\n purchases.customer_id,\n coalesce(purchase_lines.item_expense_class_id, purchase_lines.account_expense_class_id) as class_id,\n purchases.vendor_id\n from purchases\n \n inner join purchase_lines\n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_from_account_id as account_id,\n class_id,\n payed_from_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n payed_to_transaction_type as transaction_type,\n 'purchase' as transaction_source\n from purchase_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__purchase_double_entry\""}, "model.quickbooks.int_quickbooks__sales_receipt_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__sales_receipt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "name": "int_quickbooks__sales_receipt_double_entry", "alias": "int_quickbooks__sales_receipt_double_entry", "checksum": {"name": "sha256", "checksum": "b2e5219c2adae8a87d3d6e813730f3344cbae070efdec77f2fc16e63abdcc857"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified cash account and a credit record to the specified asset account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.640193, "compiled_code": "/*\nTable that creates a debit record to the specified cash account and a credit record to the specified asset account.\n*/\n\n--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nsales_receipt_join as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index,\n sales_receipts.transaction_date,\n sales_receipt_lines.amount,\n sales_receipts.deposit_to_account_id as debit_to_account_id,\n coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, items.parent_income_account_id, items.income_account_id) as credit_to_account_id,\n sales_receipts.customer_id,\n coalesce(sales_receipt_lines.sales_item_class_id, sales_receipt_lines.discount_class_id, sales_receipts.class_id) as class_id\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id\n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n\n where coalesce(sales_receipt_lines.discount_account_id, sales_receipt_lines.sales_item_account_id, sales_receipt_lines.sales_item_item_id) is not null\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n credit_to_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'sales_receipt' as transaction_source\n from sales_receipt_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__sales_receipt_double_entry\""}, "model.quickbooks.int_quickbooks__vendor_credit_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__vendor_credit_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "raw_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "name": "int_quickbooks__vendor_credit_double_entry", "alias": "int_quickbooks__vendor_credit_double_entry", "checksum": {"name": "sha256", "checksum": "d5b5913d12d2880d19f2b17f6a3fd395a84ea8b7d2a5e965a25cf04ba9534236"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to payable account and a credit record to the expense account.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__vendor_credit_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.640717, "compiled_code": "/*\nTable that creates a debit record to payable account and a credit record to the expense account.\n*/\n\n--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nvendor_credit_join as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index,\n vendor_credits.transaction_date,\n vendor_credit_lines.amount,\n vendor_credits.payable_account_id as debit_to_account_id,\n coalesce(vendor_credit_lines.account_expense_account_id, items.parent_income_account_id, items.income_account_id, items.expense_account_id) as credit_account_id,\n coalesce(account_expense_customer_id, item_expense_customer_id) as customer_id,\n coalesce(item_expense_class_id, account_expense_class_id) as class_id,\n vendor_credits.vendor_id\n from vendor_credits\n \n inner join vendor_credit_lines \n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n credit_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n debit_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'vendor_credit' as transaction_source\n from vendor_credit_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__vendor_credit_double_entry\""}, "model.quickbooks.int_quickbooks__bill_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__bill_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry", "raw_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__bill_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "name": "int_quickbooks__bill_double_entry", "alias": "int_quickbooks__bill_double_entry", "checksum": {"name": "sha256", "checksum": "95a197d82bcd77753581efdd590be8ad9652f318837a2380dd9e7b50d9b812a9"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__bill_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.637134, "compiled_code": "/*\nTable that creates a debit record to the specified expense account and credit record to accounts payable for each bill transaction.\n*/\n\n--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n \n select \n item.*, \n parent.expense_account_id as parent_expense_account_id,\n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n),\n\nbill_join as (\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index,\n bills.transaction_date,\n bill_lines.amount,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id, items.parent_expense_account_id, items.expense_account_id, items.parent_income_account_id, items.income_account_id) as payed_to_account_id,\n bills.payable_account_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n coalesce(bill_lines.item_expense_class_id, bill_lines.account_expense_class_id) as class_id,\n bills.vendor_id\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id \n and bills.source_relation = bill_lines.source_relation \n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n),\n\nfinal as (\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payed_to_account_id as account_id,\n class_id,\n 'debit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n payable_account_id as account_id,\n class_id,\n 'credit' as transaction_type,\n 'bill' as transaction_source\n from bill_join\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__bill_double_entry\""}, "model.quickbooks.int_quickbooks__payment_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__payment_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry", "raw_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith payments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n),\n\naccounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as {{ dbt.type_string() }}) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__payment_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "name": "int_quickbooks__payment_double_entry", "alias": "int_quickbooks__payment_double_entry", "checksum": {"name": "sha256", "checksum": "c8e70c76ebc6641a9817adca7d113a3997d9c3376df1b29ca25201c32cdb33ec"}, "tags": [], "refs": [["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__payment_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.639412, "compiled_code": "/*\nTable that creates a debit record to either undeposited funds or a specified cash account and a credit record to accounts receivable.\n*/\n\n--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nar_accounts as (\n\n select\n account_id\n from accounts\n\n where account_type = 'Accounts Receivable'\n and is_active\n and not is_sub_account\n),\n\npayment_join as (\n\n select\n payments.payment_id as transaction_id,\n payments.source_relation,\n row_number() over(partition by payments.payment_id order by payments.transaction_date) - 1 as index,\n payments.transaction_date,\n payments.total_amount as amount,\n payments.deposit_to_account_id,\n payments.receivable_account_id,\n payments.customer_id\n from payments\n),\n\nfinal as (\n \n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n deposit_to_account_id as account_id,\n cast(null as TEXT) as class_id,\n 'debit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n\n union all\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n coalesce(receivable_account_id, ar_accounts.account_id) as account_id,\n cast(null as TEXT) as class_id,\n 'credit' as transaction_type,\n 'payment' as transaction_source\n from payment_join\n \n cross join ar_accounts\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__payment_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_double_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__invoice_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry", "raw_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from {{ ref('stg_quickbooks__item') }} item\n\n left join {{ ref('stg_quickbooks__item') }} parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\n\n{% if var('using_invoice_bundle', True) %}\n\ninvoice_bundles as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line_bundle') }}\n),\n\nbundles as (\n\n select *\n from {{ ref('stg_quickbooks__bundle') }}\n),\n\nbundle_items as (\n\n select *\n from {{ ref('stg_quickbooks__bundle_item') }}\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n{% endif %}\n\nar_accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n {% if var('using_invoice_bundle', True) %}\n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n {% else %}\n coalesce(invoice_lines.account_id, items.income_account_id) as account_id,\n {% endif %}\n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n {% if var('using_invoice_bundle', True) %}\n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n {% else %}\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id) is not null \n\n {% endif %}\n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "name": "int_quickbooks__invoice_double_entry", "alias": "int_quickbooks__invoice_double_entry", "checksum": {"name": "sha256", "checksum": "ff00ba3d0bd575bb253363bfd2fbcd791cedc27c83d757af54d0e5adbccda142"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"], ["stg_quickbooks__item"], ["stg_quickbooks__account"], ["stg_quickbooks__invoice_line_bundle"], ["stg_quickbooks__bundle"], ["stg_quickbooks__bundle_item"], ["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/double_entry_transactions/int_quickbooks__invoice_double_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": true}, "created_at": 1676416401.638769, "compiled_code": "/*\nTable that creates a debit record to accounts receivable and a credit record to a specified revenue account indicated on the invoice line.\n*/\n\n--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n select \n item.*, \n parent.income_account_id as parent_income_account_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" item\n\n left join \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\" parent\n on item.parent_item_id = parent.item_id\n and item.source_relation = parent.source_relation\n),\n\naccounts as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\n\n\n\ninvoice_bundles as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n),\n\nbundles as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n),\n\nbundle_items as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\n),\n\nincome_accounts as (\n\n select * \n from accounts\n\n where account_sub_type = 'SalesOfProductIncome'\n),\n\nbundle_income_accounts as (\n\n select distinct\n coalesce(parent.income_account_id, income_accounts.account_id) as account_id,\n coalesce(parent.source_relation, income_accounts.source_relation) as source_relation,\n bundle_items.bundle_id \n\n from items \n\n left join items as parent\n on items.parent_item_id = parent.item_id\n and items.source_relation = parent.source_relation\n\n inner join income_accounts \n on income_accounts.account_id = items.income_account_id\n and income_accounts.source_relation = items.source_relation\n\n inner join bundle_items \n on bundle_items.item_id = items.item_id\n and bundle_items.source_relation = items.source_relation\n),\n\n\nar_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n\n where account_type = 'Accounts Receivable'\n),\n\ninvoice_join as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index, \n invoices.transaction_date as transaction_date,\n case when invoices.total_amount != 0\n then invoice_lines.amount\n else invoices.total_amount\n end as amount,\n\n \n coalesce(invoice_lines.account_id, items.parent_income_account_id, items.income_account_id, bundle_income_accounts.account_id) as account_id,\n \n\n coalesce(invoice_lines.sales_item_class_id, invoice_lines.discount_class_id, invoices.class_id) as class_id,\n\n invoices.customer_id\n\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n\n \n left join bundle_income_accounts\n on bundle_income_accounts.bundle_id = invoice_lines.bundle_id\n and bundle_income_accounts.source_relation = invoice_lines.source_relation\n\n where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null \n\n \n),\n\nfinal as (\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n account_id,\n class_id,\n 'credit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n union all\n\n select\n transaction_id,\n invoice_join.source_relation,\n index,\n transaction_date,\n customer_id,\n cast(null as TEXT) as vendor_id,\n amount,\n ar_accounts.account_id,\n class_id,\n 'debit' as transaction_type,\n 'invoice' as transaction_source\n from invoice_join\n\n cross join ar_accounts\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_intermediate\".\"int_quickbooks__invoice_double_entry\""}, "model.quickbooks.int_quickbooks__invoice_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__invoice_transactions"], "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_lines as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__invoice_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__invoice_transactions.sql", "name": "int_quickbooks__invoice_transactions", "alias": "int_quickbooks__invoice_transactions", "checksum": {"name": "sha256", "checksum": "e02921a0f4ebbd0d0bfeee8cc7ed8136497c3d7e2cb5826922c2fc2f164e01b9"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__invoice_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416400.357696, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n invoices.invoice_id as transaction_id,\n invoices.source_relation,\n invoice_lines.index as transaction_line_id,\n invoices.doc_number,\n 'invoice' as transaction_type,\n invoices.transaction_date,\n coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) as item_id,\n coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,\n invoice_lines.sales_item_unit_price as item_unit_price,\n case when invoice_lines.account_id is null\n then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)\n else invoice_lines.account_id\n end as account_id,\n coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,\n invoices.department_id,\n invoices.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n invoice_lines.description,\n invoice_lines.amount,\n invoices.total_amount\n from invoices\n\n inner join invoice_lines\n on invoices.invoice_id = invoice_lines.invoice_id\n and invoices.source_relation = invoice_lines.source_relation\n\n left join items\n on coalesce(invoice_lines.sales_item_item_id, invoice_lines.item_id) = items.item_id\n and invoice_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\""}, "model.quickbooks.int_quickbooks__bill_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__bill_transactions"], "unique_id": "model.quickbooks.int_quickbooks__bill_transactions", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }} \n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nitems as (\n\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__bill_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__bill_transactions.sql", "name": "int_quickbooks__bill_transactions", "alias": "int_quickbooks__bill_transactions", "checksum": {"name": "sha256", "checksum": "42a5c76a8c69ea3b6f162addd1c69d225b8ff912543b8d5502712ae76b506ae2"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the bill and corresponding bill lines into a single bill transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__bill_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.640975, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\" \n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n bills.bill_id as transaction_id,\n bills.source_relation,\n bill_lines.index as transaction_line_id,\n bills.doc_number,\n 'bill' as transaction_type,\n bills.transaction_date,\n coalesce(bill_lines.account_expense_account_id, items.expense_account_id) as account_id,\n bill_lines.account_expense_class_id as class_id,\n bills.department_id,\n coalesce(bill_lines.account_expense_customer_id, bill_lines.item_expense_customer_id) as customer_id,\n bills.vendor_id,\n coalesce(bill_lines.account_expense_billable_status, bill_lines.item_expense_billable_status) as billable_status,\n coalesce(bill_lines.description, items.name) as description,\n bill_lines.amount,\n bills.total_amount\n from bills\n\n inner join bill_lines \n on bills.bill_id = bill_lines.bill_id\n and bills.bill_id = bill_lines.bill_id\n\n left join items\n on bill_lines.item_expense_item_id = items.item_id\n and bill_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\""}, "model.quickbooks.int_quickbooks__journal_entry_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__journal_entry_transactions"], "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith journal_entries as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry') }}\n),\n\njournal_entry_lines as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_line') }}\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as {{ dbt.type_string() }}) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__journal_entry_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "name": "int_quickbooks__journal_entry_transactions", "alias": "int_quickbooks__journal_entry_transactions", "checksum": {"name": "sha256", "checksum": "5df763182668b5667cc91f518169b228c9726c03a97626e4bb7ae5a710602bf7"}, "tags": [], "refs": [["stg_quickbooks__journal_entry"], ["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "Table that joins the journal entry and corresponding journal entry lines into a single journal entry transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__journal_entry_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.641762, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith journal_entries as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\n),\n\njournal_entry_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n),\n\nfinal as (\n\n select\n journal_entries.journal_entry_id as transaction_id,\n journal_entries.source_relation,\n journal_entry_lines.index as transaction_line_id,\n journal_entries.doc_number,\n 'journal_entry' as transaction_type,\n journal_entries.transaction_date,\n journal_entry_lines.account_id,\n journal_entry_lines.class_id,\n journal_entry_lines.department_id,\n journal_entry_lines.customer_id,\n journal_entry_lines.vendor_id,\n cast(billable_status as TEXT) as billable_status,\n journal_entry_lines.description,\n case when lower(journal_entry_lines.posting_type) = 'credit'\n then journal_entry_lines.amount * -1 \n else journal_entry_lines.amount \n end as amount,\n journal_entries.total_amount\n from journal_entries\n\n inner join journal_entry_lines\n on journal_entries.journal_entry_id = journal_entry_lines.journal_entry_id\n and journal_entries.source_relation = journal_entry_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\""}, "model.quickbooks.int_quickbooks__refund_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__refund_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith refund_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt') }}\n),\n\nrefund_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__refund_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "name": "int_quickbooks__refund_receipt_transactions", "alias": "int_quickbooks__refund_receipt_transactions", "checksum": {"name": "sha256", "checksum": "097df40c7a3b5554bec4b1f96af80c7065d5ed99f9a3877f5b8c639263c3a35d"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"], ["stg_quickbooks__refund_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the refund receipt and corresponding refund receipt lines into a single refund receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__refund_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.642278, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith refund_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n),\n\nrefund_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n refund_receipts.refund_id as transaction_id,\n refund_receipts.source_relation,\n refund_receipt_lines.index as transaction_line_id,\n refund_receipts.doc_number,\n 'refund_receipt' as transaction_type,\n refund_receipts.transaction_date,\n refund_receipt_lines.sales_item_item_id as item_id,\n refund_receipt_lines.sales_item_quantity as item_quantity,\n refund_receipt_lines.sales_item_unit_price as item_unit_price,\n case when refund_receipt_lines.sales_item_account_id is null\n then coalesce(items.asset_account_id, items.income_account_id, items.expense_account_id) \n else refund_receipt_lines.sales_item_account_id\n end as account_id,\n refund_receipts.class_id,\n refund_receipts.department_id,\n refund_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n refund_receipt_lines.description,\n refund_receipt_lines.amount * -1 as amount,\n refund_receipts.total_amount * -1 as total_amount\n from refund_receipts\n\n inner join refund_receipt_lines\n on refund_receipts.refund_id = refund_receipt_lines.refund_id\n and refund_receipts.source_relation = refund_receipt_lines.source_relation\n\n left join items\n on refund_receipt_lines.sales_item_item_id = items.item_id\n and refund_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\""}, "model.quickbooks.int_quickbooks__vendor_credit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__vendor_credit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith vendor_credits as (\n \n select *\n from {{ ref('stg_quickbooks__vendor_credit') }}\n),\n\nvendor_credit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__vendor_credit_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "name": "int_quickbooks__vendor_credit_transactions", "alias": "int_quickbooks__vendor_credit_transactions", "checksum": {"name": "sha256", "checksum": "15380e78bc581c3192a7370b6c62f9805accc3b5bda2f200f68aa066db4785b0"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"], ["stg_quickbooks__vendor_credit_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the vendor credit and corresponding vendor credit lines into a single vendor credit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__vendor_credit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.642886, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith vendor_credits as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\n),\n\nvendor_credit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n vendor_credits.vendor_credit_id as transaction_id,\n vendor_credits.source_relation,\n vendor_credit_lines.index as transaction_line_id,\n vendor_credits.doc_number,\n 'vendor_credit' as transaction_type,\n vendor_credits.transaction_date,\n case when vendor_credit_lines.account_expense_account_id is null\n then items.expense_account_id\n else vendor_credit_lines.account_expense_account_id\n end as account_id,\n coalesce(vendor_credit_lines.account_expense_class_id, vendor_credit_lines.item_expense_class_id) as class_id,\n vendor_credits.department_id,\n coalesce(vendor_credit_lines.account_expense_customer_id, vendor_credit_lines.item_expense_customer_id) as customer_id,\n vendor_credits.vendor_id,\n coalesce(vendor_credit_lines.account_expense_billable_status, vendor_credit_lines.item_expense_billable_status) as billable_status,\n vendor_credit_lines.description,\n vendor_credit_lines.amount * -1 as amount,\n vendor_credits.total_amount * -1 as total_amount\n from vendor_credits\n\n inner join vendor_credit_lines\n on vendor_credits.vendor_credit_id = vendor_credit_lines.vendor_credit_id\n and vendor_credits.source_relation = vendor_credit_lines.source_relation\n\n left join items\n on vendor_credit_lines.item_expense_item_id = items.item_id\n and vendor_credit_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\""}, "model.quickbooks.int_quickbooks__purchase_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__purchase_transactions"], "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions", "raw_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_purchase', True)) }}\n\nwith purchases as (\n select *\n from {{ ref('stg_quickbooks__purchase') }}\n),\n\nitems as (\n select *\n from {{ref('stg_quickbooks__item')}}\n),\n\npurchase_lines as (\n select *\n from {{ ref('stg_quickbooks__purchase_line') }}\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__purchase_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__purchase_transactions.sql", "name": "int_quickbooks__purchase_transactions", "alias": "int_quickbooks__purchase_transactions", "checksum": {"name": "sha256", "checksum": "bead953d0576140a7d67c3764c62993abf6809d601ccd20000aa5ea7a73c7172"}, "tags": [], "refs": [["stg_quickbooks__purchase"], ["stg_quickbooks__item"], ["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "Table that joins the purchase and corresponding purchase lines into a single purchase transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__purchase_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.642022, "compiled_code": "--To disable this model, set the using_purchase variable within your dbt_project.yml file to False.\n\n\nwith purchases as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n),\n\nitems as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\npurchase_lines as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n),\n\nfinal as (\n select\n purchases.purchase_id as transaction_id,\n purchases.source_relation,\n purchase_lines.index as transaction_line_id,\n purchases.doc_number,\n 'purchase' as transaction_type,\n purchases.transaction_date,\n coalesce(purchase_lines.account_expense_account_id, items.expense_account_id) as account_id,\n purchase_lines.account_expense_class_id as class_id,\n purchases.department_id,\n coalesce(purchases.customer_id, account_expense_customer_id, item_expense_customer_id) as customer_id,\n purchases.vendor_id,\n coalesce(purchase_lines.account_expense_billable_status, purchase_lines.item_expense_billable_status) as billable_status,\n purchase_lines.description,\n purchase_lines.amount,\n purchases.total_amount\n from purchases\n\n inner join purchase_lines \n on purchases.purchase_id = purchase_lines.purchase_id\n and purchases.source_relation = purchase_lines.source_relation\n\n left join items\n on purchase_lines.item_expense_item_id = items.item_id\n and purchase_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\""}, "model.quickbooks.int_quickbooks__sales_receipt_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__sales_receipt_transactions"], "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions", "raw_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith sales_receipts as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt') }}\n),\n\nsales_receipt_lines as (\n\n select *\n from {{ ref('stg_quickbooks__sales_receipt_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "name": "int_quickbooks__sales_receipt_transactions", "alias": "int_quickbooks__sales_receipt_transactions", "checksum": {"name": "sha256", "checksum": "2e01630bf25cd736b93b07ec7b98887fbe62d8f9f34fd4fed820862a44d1c68d"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"], ["stg_quickbooks__sales_receipt_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the sales receipt and corresponding sales receipt lines into a single sales receipt transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__sales_receipt_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.6426299, "compiled_code": "--To disable this model, set the using_sales_receipt variable within your dbt_project.yml file to False.\n\n\nwith sales_receipts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n),\n\nsales_receipt_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n sales_receipts.sales_receipt_id as transaction_id,\n sales_receipts.source_relation,\n sales_receipt_lines.index as transaction_line_id,\n sales_receipts.doc_number,\n 'sales_receipt' as transaction_type,\n sales_receipts.transaction_date,\n sales_receipt_lines.sales_item_item_id as item_id,\n sales_receipt_lines.sales_item_quantity as item_quantity,\n sales_receipt_lines.sales_item_unit_price as item_unit_price,\n coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) as account_id,\n sales_receipts.class_id,\n sales_receipts.department_id,\n sales_receipts.customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n sales_receipt_lines.description,\n sales_receipt_lines.amount,\n sales_receipts.total_amount\n from sales_receipts\n\n inner join sales_receipt_lines\n on sales_receipts.sales_receipt_id = sales_receipt_lines.sales_receipt_id \n and sales_receipts.source_relation = sales_receipt_lines.source_relation\n\n left join items\n on sales_receipt_lines.sales_item_item_id = items.item_id\n and sales_receipt_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\""}, "model.quickbooks.int_quickbooks__deposit_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__deposit_transactions"], "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith deposits as (\n \n select *\n from {{ ref('stg_quickbooks__deposit') }}\n), \n\ndeposit_lines as (\n\n select *\n from {{ ref('stg_quickbooks__deposit_line') }}\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as {{ dbt.type_string() }}) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__deposit_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__deposit_transactions.sql", "name": "int_quickbooks__deposit_transactions", "alias": "int_quickbooks__deposit_transactions", "checksum": {"name": "sha256", "checksum": "750c679ea708e917039ddcc2502e672fb77f769a9370028c77f7beef15868fc6"}, "tags": [], "refs": [["stg_quickbooks__deposit"], ["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "Table that joins the deposit and corresponding deposit lines into a single deposit transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__deposit_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.6415, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith deposits as (\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n), \n\ndeposit_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n),\n\nfinal as (\n select\n deposits.deposit_id as transaction_id,\n deposits.source_relation,\n deposit_lines.index as transaction_line_id,\n cast(null as TEXT) as doc_number,\n 'deposit' as transaction_type,\n deposits.transaction_date,\n deposit_lines.deposit_account_id as account_id,\n deposit_lines.deposit_class_id as class_id,\n deposits.department_id,\n deposit_lines.deposit_customer_id as customer_id,\n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n deposit_lines.description,\n deposit_lines.amount,\n deposits.total_amount\n from deposits\n \n inner join deposit_lines \n on deposits.deposit_id = deposit_lines.deposit_id\n and deposits.source_relation = deposit_lines.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\""}, "model.quickbooks.int_quickbooks__credit_memo_transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "transaction_lines", "int_quickbooks__credit_memo_transactions"], "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith credit_memos as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo') }}\n),\n\ncredit_memo_lines as (\n\n select *\n from {{ ref('stg_quickbooks__credit_memo_line') }}\n),\n\nitems as (\n\n select *\n from {{ ref('stg_quickbooks__item') }}\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "transaction_lines/int_quickbooks__credit_memo_transactions.sql", "original_file_path": "models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "name": "int_quickbooks__credit_memo_transactions", "alias": "int_quickbooks__credit_memo_transactions", "checksum": {"name": "sha256", "checksum": "e671668964b67084e2953c82076642f09a1cf6055a3366b15fc9eec8a77222ae"}, "tags": [], "refs": [["stg_quickbooks__credit_memo"], ["stg_quickbooks__credit_memo_line"], ["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "Table that joins the credit memo and credit memo lines into a single credit memo transactions table.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/transaction_lines/int_quickbooks__credit_memo_transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.641243, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith credit_memos as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n),\n\ncredit_memo_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n),\n\nitems as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n),\n\nfinal as (\n\n select\n credit_memos.credit_memo_id as transaction_id,\n credit_memos.source_relation,\n credit_memo_lines.index as transaction_line_id,\n credit_memos.doc_number,\n 'credit_memo' as transaction_type,\n credit_memos.transaction_date,\n credit_memo_lines.sales_item_item_id as item_id,\n credit_memo_lines.sales_item_quantity as item_quantity,\n credit_memo_lines.sales_item_unit_price as item_unit_price,\n case when credit_memo_lines.sales_item_account_id is null\n then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id) \n else credit_memo_lines.sales_item_account_id\n end as account_id,\n credit_memos.class_id,\n credit_memos.department_id,\n credit_memos.customer_id, \n cast(null as TEXT) as vendor_id,\n cast(null as TEXT) as billable_status,\n credit_memo_lines.description,\n credit_memo_lines.amount * -1 as amount,\n credit_memos.total_amount * -1 as total_amount\n from credit_memos\n\n inner join credit_memo_lines\n on credit_memos.credit_memo_id = credit_memo_lines.credit_memo_id\n and credit_memos.source_relation = credit_memo_lines.source_relation\n\n left join items\n on credit_memo_lines.sales_item_item_id = items.item_id\n and credit_memo_lines.source_relation = items.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\""}, "model.quickbooks.int_quickbooks__cash_flow_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__cash_flow_classifications"], "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications", "raw_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n {{ dbt_utils.generate_surrogate_key(['account_id', 'source_relation', 'calendar_date', 'class_id']) }} as account_unique_id\n from {{ ref('quickbooks__balance_sheet') }}\n),\n \n{% if var('cash_flow_statement_type_ordinal') %}\nordinals as (\n \n select\n cast(account_class as {{ dbt.type_string() }}) as account_class,\n cast(account_type as {{ dbt.type_string() }}) as account_type,\n cast(account_sub_type as {{ dbt.type_string() }}) as account_sub_type,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n cast(cash_flow_type as {{ dbt.type_string() }}) as cash_flow_type,\n ordinal\n from {{ var('cash_flow_statement_type_ordinal') }}\n),\n{% endif %}\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n {% if var('cash_flow_statement_type_ordinal') %}\n coalesce(account_number_ordinal.cash_flow_type, account_sub_type_ordinal.cash_flow_type, account_type_ordinal.cash_flow_type, account_class_ordinal.cash_flow_type) as cash_flow_type,\n coalesce(account_number_ordinal.ordinal, account_sub_type_ordinal.ordinal, account_type_ordinal.ordinal, account_class_ordinal.ordinal) as cash_flow_ordinal \n {% else %}\n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n {% endif %}\n\n from cash_flow_key\n \n {% if var('cash_flow_statement_type_ordinal') %}\n\n {% set cash_flow_type_fields = ['account_number', 'account_sub_type', 'account_type', 'account_class'] %}\n \n {% for cash_flow_type_field in cash_flow_type_fields %} \n left join ordinals as {{ cash_flow_type_field }}_ordinal\n on cash_flow_key.{{ cash_flow_type_field }} = {{ cash_flow_type_field }}_ordinal.{{ cash_flow_type_field }}\n {% endfor %}\n \n {% endif %}\n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__cash_flow_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__cash_flow_classifications.sql", "name": "int_quickbooks__cash_flow_classifications", "alias": "int_quickbooks__cash_flow_classifications", "checksum": {"name": "sha256", "checksum": "c76ef90529e969f875f192f8a236430430ab2c9d2dbf52885875ee854a1a3886"}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "Table that provides additional classifications necessary for the cash flow statement, like the cash flow type and ordinals.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__cash_flow_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.6452081, "compiled_code": "with cash_flow_key as (\n \n select calendar_date as cash_flow_period,\n source_relation,\n account_class,\n class_id,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_number,\n account_id,\n account_name,\n amount as cash_ending_period,\n \n \nmd5(cast(coalesce(cast(account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(calendar_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(class_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as account_unique_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n),\n \n\n \ncash_flow_types_and_ordinals as (\n\n select cash_flow_key.*,\n \n case when account_type = 'Bank' then 'Cash or Cash Equivalents'\n when account_type = 'Accounts Receivable' then 'Operating'\n when account_type = 'Credit Card' then 'Operating'\n when account_type = 'Other Current Asset' then 'Operating'\n when account_type = 'Accounts Payable' then 'Operating'\n when account_type = 'Other Current Liability' then 'Operating'\n when account_name = 'Net Income Adjustment' then 'Operating'\n when account_type = 'Fixed Asset' then 'Investing'\n when account_type = 'Other Asset' then 'Investing'\n when account_type = 'Long Term Liability' then 'Financing'\n when account_class = 'Equity' then 'Financing'\n end as cash_flow_type,\n case when account_type = 'Bank' then 1\n when account_type = 'Accounts Receivable' then 2\n when account_type = 'Credit Card' then 2\n when account_type = 'Other Current Asset' then 2\n when account_type = 'Accounts Payable' then 2\n when account_type = 'Other Current Liability' then 2\n when account_name = 'Net Income Adjustment' then 2\n when account_type = 'Fixed Asset' then 3\n when account_type = 'Other Asset' then 3\n when account_type = 'Long Term Liability' then 4\n when account_class = 'Equity' then 4\n end as cash_flow_ordinal\n \n\n from cash_flow_key\n \n \n)\n\nselect *\nfrom cash_flow_types_and_ordinals", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__cash_flow_classifications\""}, "model.quickbooks.int_quickbooks__general_ledger_balances": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.int_quickbooks__general_ledger_date_spine"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_balances"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances", "raw_code": "with general_ledger as (\n\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ngl_accounting_periods as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_date_spine') }}\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast({{ dbt.date_trunc(\"year\", \"transaction_date\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"transaction_date\") }} as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n {{ dbt_utils.group_by(14) }}\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_balances.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_balances.sql", "name": "int_quickbooks__general_ledger_balances", "alias": "int_quickbooks__general_ledger_balances", "checksum": {"name": "sha256", "checksum": "23b725ae7388455419b95572539a4ceb3b7fdaf0d7ee77154d11acedae1f118c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["int_quickbooks__general_ledger_date_spine"]], "sources": [], "metrics": [], "description": "Table that aggregates quickbooks__general_ledger account level transactions per period into a period_beginning_balance, period_ending_balance, and period_net_change for each period through the use of the int_quickbooks__general_ledger_date_spine model. Further, period balances are only applied to balance sheet accounts while income statement accounts do not have a persisting balance rather a period net change. Please note, a period equates to one month. \n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_balances.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.643904, "compiled_code": "with general_ledger as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ngl_accounting_periods as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\"\n),\n\ngl_period_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n cast(date_trunc('year', transaction_date) as date) as date_year,\n cast(date_trunc('month', transaction_date) as date) as date_month,\n sum(adjusted_amount) as period_balance\n from general_ledger\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14\n),\n\ngl_cumulative_balance as (\n\n select\n *,\n case when financial_statement_helper = 'balance_sheet'\n then sum(period_balance) over (partition by account_id order by date_month, account_id rows unbounded preceding) \n else 0\n end as cumulative_balance\n from gl_period_balance\n),\n\ngl_beginning_balance as (\n\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n financial_statement_helper,\n account_class,\n class_id,\n date_year,\n date_month, \n period_balance as period_net_change,\n case when financial_statement_helper = 'balance_sheet'\n then (cumulative_balance - period_balance) \n else 0\n end as period_beginning_balance,\n cumulative_balance as period_ending_balance \n from gl_cumulative_balance\n),\n\ngl_patch as (\n select \n coalesce(gl_beginning_balance.account_id, gl_accounting_periods.account_id) as account_id,\n coalesce(gl_beginning_balance.source_relation, gl_accounting_periods.source_relation) as source_relation,\n coalesce(gl_beginning_balance.account_number, gl_accounting_periods.account_number) as account_number,\n coalesce(gl_beginning_balance.account_name, gl_accounting_periods.account_name) as account_name,\n coalesce(gl_beginning_balance.is_sub_account, gl_accounting_periods.is_sub_account) as is_sub_account,\n coalesce(gl_beginning_balance.parent_account_number, gl_accounting_periods.parent_account_number) as parent_account_number,\n coalesce(gl_beginning_balance.parent_account_name, gl_accounting_periods.parent_account_name) as parent_account_name,\n coalesce(gl_beginning_balance.account_type, gl_accounting_periods.account_type) as account_type,\n coalesce(gl_beginning_balance.account_sub_type, gl_accounting_periods.account_sub_type) as account_sub_type,\n coalesce(gl_beginning_balance.account_class, gl_accounting_periods.account_class) as account_class,\n coalesce(gl_beginning_balance.class_id, gl_accounting_periods.class_id) as class_id,\n coalesce(gl_beginning_balance.financial_statement_helper, gl_accounting_periods.financial_statement_helper) as financial_statement_helper,\n coalesce(gl_beginning_balance.date_year, gl_accounting_periods.date_year) as date_year,\n gl_accounting_periods.period_first_day,\n gl_accounting_periods.period_last_day,\n gl_accounting_periods.period_index,\n gl_beginning_balance.period_net_change,\n gl_beginning_balance.period_beginning_balance,\n gl_beginning_balance.period_ending_balance,\n case when gl_beginning_balance.period_beginning_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_beginning_balance\n end as period_beginning_balance_starter,\n case when gl_beginning_balance.period_ending_balance is null and period_index = 1\n then 0\n else gl_beginning_balance.period_ending_balance\n end as period_ending_balance_starter\n from gl_accounting_periods\n\n left join gl_beginning_balance\n on gl_beginning_balance.account_id = gl_accounting_periods.account_id\n and gl_beginning_balance.date_month = gl_accounting_periods.period_first_day\n and gl_beginning_balance.date_year = gl_accounting_periods.date_year\n and gl_beginning_balance.class_id = gl_accounting_periods.class_id\n),\n\ngl_value_partion as (\n select\n *,\n sum(case when period_ending_balance_starter is null \n then 0 \n else 1 \n end) over (order by account_id, period_last_day rows unbounded preceding) as gl_partition\n from gl_patch\n\n),\n \nfinal as (\n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n coalesce(period_net_change,0) as period_net_change,\n coalesce(period_beginning_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_beginning_balance,\n coalesce(period_ending_balance_starter,\n first_value(period_ending_balance_starter) over (partition by gl_partition order by period_last_day rows unbounded preceding)) as period_ending_balance\n from gl_value_partion\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\""}, "model.quickbooks.int_quickbooks__account_classifications": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__account_classifications"], "unique_id": "model.quickbooks.int_quickbooks__account_classifications", "raw_code": "with accounts as (\n\n select *\n from {{ ref('stg_quickbooks__account') }}\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__account_classifications.sql", "original_file_path": "models/intermediate/int_quickbooks__account_classifications.sql", "name": "int_quickbooks__account_classifications", "alias": "int_quickbooks__account_classifications", "checksum": {"name": "sha256", "checksum": "757b4fa3587f332bcccc9e1b7a494c99166bbd77f93a3be09bd1d027e73315f4"}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "Table that adds missing detail to the account table. This table adds the following:\nA financial statement helper field that specifies the account as either a balance sheet or income statement account.\nAdds a transaction type to the specified account. The transaction type (debit or credit) is the type of transaction that increases the account.\nAdds a multiplier of -1 to Liability and Equity accounts to offset the account balance so liability and equity accounts do not show up as negative balances.\nCreates a new classification field that fills in the gaps if classifications were incorrectly set on certain s. For more information on how these classifications were determined you can refer to the [QuickBooks API Docs](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account) that was used as reference.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__account_classifications.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.643141, "compiled_code": "with accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n),\n\nclassification_fix as (\n\n select \n account_id,\n source_relation,\n account_number,\n is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n balance,\n balance_with_sub_accounts,\n is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n case when classification is not null\n then classification\n when classification is null and account_type in ('Bank', 'Other Current Asset', 'Fixed Asset', 'Other Asset', 'Accounts Receivable')\n then 'Asset'\n when classification is null and account_type = 'Equity'\n then 'Equity'\n when classification is null and account_type in ('Expense', 'Other Expense', 'Cost of Goods Sold')\n then 'Expense'\n when classification is null and account_type in ('Accounts Payable', 'Credit Card', 'Long Term Liability', 'Other Current Liability')\n then 'Liability'\n when classification is null and account_type in ('Income', 'Other Income')\n then 'Revenue'\n end as classification\n from accounts\n),\n\nclassification_add as (\n\n select\n *,\n case when classification in ('Liability', 'Equity')\n then -1\n when classification = 'Asset'\n then 1\n else null\n end as multiplier,\n case when classification in ('Asset', 'Liability', 'Equity')\n then 'balance_sheet'\n else 'income_statement'\n end as financial_statement_helper,\n case when classification in ('Asset', 'Expense')\n then 'debit'\n else 'credit'\n end as transaction_type\n from classification_fix\n),\n\nadjusted_balances as (\n\n select \n *,\n (balance * multiplier) as adjusted_balance\n from classification_add\n),\n\nfinal as (\n\n select\n adjusted_balances.*,\n case when adjusted_balances.is_sub_account\n then parent_accounts.account_number\n else adjusted_balances.account_number\n end as parent_account_number,\n case when adjusted_balances.is_sub_account\n then parent_accounts.fully_qualified_name\n else adjusted_balances.fully_qualified_name\n end as parent_account_name\n from adjusted_balances\n\n left join accounts as parent_accounts\n on parent_accounts.account_id = adjusted_balances.parent_account_id\n and parent_accounts.source_relation = adjusted_balances.source_relation\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\""}, "model.quickbooks.int_quickbooks__expenses_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric"], "nodes": ["model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__expenses_union"], "unique_id": "model.quickbooks.int_quickbooks__expenses_union", "raw_code": "with expense_union as (\n\n select *\n from {{ ref('int_quickbooks__purchase_transactions') }}\n\n {% if var('using_bill', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__bill_transactions') }}\n {% endif %} \n\n {% if var('using_journal_entry', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__journal_entry_transactions')}}\n {% endif %} \n\n {% if var('using_deposit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__deposit_transactions')}}\n {% endif %} \n\n {% if var('using_vendor_credit', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__vendor_credit_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nexpense_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as {{ dbt.type_string() }}) as item_id,\n cast(null as {{ dbt.type_numeric() }}) as item_quantity,\n cast(null as {{ dbt.type_numeric() }}) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__expenses_union.sql", "original_file_path": "models/intermediate/int_quickbooks__expenses_union.sql", "name": "int_quickbooks__expenses_union", "alias": "int_quickbooks__expenses_union", "checksum": {"name": "sha256", "checksum": "1281caef70631920ac2b25aef0d702c469f4641eb0b173e49c244aa064bf1d34"}, "tags": [], "refs": [["int_quickbooks__purchase_transactions"], ["int_quickbooks__bill_transactions"], ["int_quickbooks__journal_entry_transactions"], ["int_quickbooks__deposit_transactions"], ["int_quickbooks__vendor_credit_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of an expense. The expense transactional tables included are: int_quickbooks__purchase_transactions, int_quickbooks__bill_transactions, int_quickbooks_journal_entry_transactions, int_quickbooks__deposit_transactions, int_quickbooks__vendor_credit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-expense transactions an inner join on accounts with the sub_type equal to Expense is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__expenses_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.64365, "compiled_code": "with expense_union as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__purchase_transactions\"\n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__journal_entry_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__deposit_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__vendor_credit_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nexpense_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Expense'\n),\n\nfinal as (\n\n select \n 'expense' as transaction_source,\n expense_union.transaction_id,\n expense_union.source_relation,\n expense_union.transaction_line_id,\n expense_union.doc_number,\n expense_union.transaction_type,\n expense_union.transaction_date,\n cast(null as TEXT) as item_id,\n cast(null as numeric(28,6)) as item_quantity,\n cast(null as numeric(28,6)) as item_unit_price,\n expense_union.account_id,\n expense_accounts.name as account_name,\n expense_accounts.account_sub_type as account_sub_type,\n expense_union.class_id,\n expense_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n expense_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n expense_union.vendor_id,\n vendors.display_name as vendor_name,\n expense_union.billable_status,\n expense_union.description,\n expense_union.amount,\n expense_union.total_amount\n\n from expense_union\n\n inner join expense_accounts\n on expense_union.account_id = expense_accounts.account_id\n and expense_union.source_relation = expense_accounts.source_relation\n\n left join customers\n on customers.customer_id = expense_union.customer_id\n and customers.source_relation = expense_union.source_relation\n\n left join vendors\n on vendors.vendor_id = expense_union.vendor_id\n and vendors.source_relation = expense_union.source_relation\n\n \n left join departments\n on departments.department_id = expense_union.department_id\n and departments.source_relation = expense_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__expenses_union\""}, "model.quickbooks.int_quickbooks__invoice_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__invoice_join"], "unique_id": "model.quickbooks.int_quickbooks__invoice_join", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice')) }}\n\nwith invoices as (\n\n select *\n from {{ ref('stg_quickbooks__invoice') }}\n),\n\ninvoice_linked as (\n\n select *\n from {{ ref('stg_quickbooks__invoice_linked_txn') }}\n),\n\n{% if var('using_estimate', True) %}\nestimates as (\n\n select *\n from {{ ref('stg_quickbooks__estimate') }}\n),\n{% endif %}\n\npayments as (\n\n select *\n from {{ ref('stg_quickbooks__payment') }}\n),\n\npayment_lines_payment as (\n\n select *\n from {{ ref('stg_quickbooks__payment_line') }}\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as {{ dbt.type_string() }}) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n {% if var('using_estimate', True) %}\n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n {% else %}\n cast(null as {{ dbt.type_numeric() }}) as estimate_total_amount,\n cast(null as {{ dbt.type_string() }}) as estimate_status,\n\n {% endif %}\n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n {% if var('using_estimate', True) %}\n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n {% endif %}\n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n {{ dbt_utils.group_by(15) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__invoice_join.sql", "original_file_path": "models/intermediate/int_quickbooks__invoice_join.sql", "name": "int_quickbooks__invoice_join", "alias": "int_quickbooks__invoice_join", "checksum": {"name": "sha256", "checksum": "541d06a75aca5faa32943aaf2e74935402d051e7fdfd0887badea48b38ae62c1"}, "tags": [], "refs": [["stg_quickbooks__invoice"], ["stg_quickbooks__invoice_linked_txn"], ["stg_quickbooks__estimate"], ["stg_quickbooks__payment"], ["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single invoice transactions with the corresponding payment (if paid) and corresponding estimate (if provided).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__invoice_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.6444118, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith invoices as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n),\n\ninvoice_linked as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\n),\n\n\nestimates as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n),\n\n\npayments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n),\n\npayment_lines_payment as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n\n where invoice_id is not null\n),\n\ninvoice_est as (\n\n select\n invoices.invoice_id,\n invoice_linked.estimate_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.estimate_id is not null\n),\n\ninvoice_pay as (\n\n select\n invoices.invoice_id,\n invoice_linked.payment_id\n from invoices\n\n left join invoice_linked\n on invoices.invoice_id = invoice_linked.invoice_id\n\n where invoice_linked.payment_id is not null\n),\n\ninvoice_link as (\n\n select\n invoices.*,\n invoice_est.estimate_id,\n invoice_pay.payment_id\n from invoices\n\n left join invoice_est\n on invoices.invoice_id = invoice_est.invoice_id\n\n left join invoice_pay\n on invoices.invoice_id = invoice_pay.invoice_id\n),\n\nfinal as (\n\n select\n cast('invoice' as TEXT) as transaction_type,\n invoice_link.invoice_id as transaction_id,\n invoice_link.source_relation,\n invoice_link.doc_number,\n invoice_link.estimate_id,\n invoice_link.department_id,\n invoice_link.customer_id as customer_id,\n invoice_link.billing_address_id,\n invoice_link.shipping_address_id,\n invoice_link.delivery_type,\n invoice_link.total_amount as total_amount,\n invoice_link.balance as current_balance,\n\n \n coalesce(estimates.total_amount, 0) as estimate_total_amount,\n estimates.transaction_status as estimate_status,\n\n \n\n invoice_link.due_date as due_date,\n min(payments.transaction_date) as initial_payment_date,\n max(payments.transaction_date) as recent_payment_date,\n sum(coalesce(payment_lines_payment.amount, 0)) as total_current_payment\n\n from invoice_link\n\n \n left join estimates\n on invoice_link.estimate_id = estimates.estimate_id\n and invoice_link.source_relation = estimates.source_relation\n \n\n left join payments\n on invoice_link.payment_id = payments.payment_id\n and invoice_link.source_relation = payments.source_relation\n\n left join payment_lines_payment\n on payments.payment_id = payment_lines_payment.payment_id\n and invoice_link.invoice_id = payment_lines_payment.invoice_id\n and invoice_link.source_relation = payment_lines_payment.source_relation\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_join\""}, "model.quickbooks.int_quickbooks__retained_earnings": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt_utils.group_by", "macro.dbt.type_string", "macro.dbt.date_trunc", "macro.dbt.last_day"], "nodes": ["model.quickbooks.int_quickbooks__general_ledger_balances"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__retained_earnings"], "unique_id": "model.quickbooks.int_quickbooks__retained_earnings", "raw_code": "with general_ledger_balances as (\n\n select *\n from {{ ref('int_quickbooks__general_ledger_balances') }}\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n {{ dbt_utils.group_by(2) }} \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as {{ dbt.type_string() }}) as account_id,\n source_relation,\n cast('9999-00' as {{ dbt.type_string() }}) as account_number,\n cast('Net Income Adjustment' as {{ dbt.type_string() }}) as account_name,\n false as is_sub_account,\n cast(null as {{ dbt.type_string() }}) as parent_account_number,\n cast(null as {{ dbt.type_string() }}) as parent_account_name,\n cast('Equity' as {{ dbt.type_string() }}) as account_type,\n cast('RetainedEarnings' as {{ dbt.type_string() }}) as account_sub_type,\n cast('Equity' as {{ dbt.type_string() }}) as account_class,\n cast(null as {{ dbt.type_string() }}) as class_id,\n cast('balance_sheet' as {{ dbt.type_string() }}) as financial_statement_helper,\n cast({{ dbt.date_trunc(\"year\", \"period_first_day\") }} as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n {{ dbt.last_day(\"period_first_day\", \"month\") }} as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__retained_earnings.sql", "original_file_path": "models/intermediate/int_quickbooks__retained_earnings.sql", "name": "int_quickbooks__retained_earnings", "alias": "int_quickbooks__retained_earnings", "checksum": {"name": "sha256", "checksum": "bc108322a5b746dbee6f3ac5d80bee9f601f55568e9f5547780bf107d3d549a9"}, "tags": [], "refs": [["int_quickbooks__general_ledger_balances"]], "sources": [], "metrics": [], "description": "Table that creates an adjusting entry for retained earnings each month. The retained earnings account is created as account_id 9999 and is listed as an Equity class. This table generates the retained earnings period beginning balance, ending balance, and net change by adding the period revenues and subtracting by the period expenses. This total is set as the period ending balance. From the period ending balance the net change and beginning balances are calculated. This is table is then unioned with in_quickbooks__general_ledger_balances.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__retained_earnings.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.6449249, "compiled_code": "with general_ledger_balances as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_balances\"\n),\n\nrevenue_starter as (\n\n select\n period_first_day,\n source_relation,\n sum(period_net_change) as revenue_net_change\n from general_ledger_balances\n \n where account_class = 'Revenue'\n\n group by 1,2 \n),\n\nexpense_starter as (\n\n select \n period_first_day,\n source_relation,\n sum(period_net_change) as expense_net_change \n from general_ledger_balances\n \n where account_class = 'Expense'\n\n group by 1,2 \n),\n\nnet_income_loss as (\n\n select *\n from revenue_starter\n\n join expense_starter \n using (period_first_day, source_relation)\n),\n\nretained_earnings_starter as (\n\n select\n cast('9999' as TEXT) as account_id,\n source_relation,\n cast('9999-00' as TEXT) as account_number,\n cast('Net Income Adjustment' as TEXT) as account_name,\n false as is_sub_account,\n cast(null as TEXT) as parent_account_number,\n cast(null as TEXT) as parent_account_name,\n cast('Equity' as TEXT) as account_type,\n cast('RetainedEarnings' as TEXT) as account_sub_type,\n cast('Equity' as TEXT) as account_class,\n cast(null as TEXT) as class_id,\n cast('balance_sheet' as TEXT) as financial_statement_helper,\n cast(date_trunc('year', period_first_day) as date) as date_year,\n cast(period_first_day as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', period_first_day) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n (revenue_net_change - expense_net_change) as period_net_change\n from net_income_loss\n),\n\n\nretained_earnings_beginning as (\n\n select\n *,\n sum(coalesce(period_net_change,0)) over (order by period_first_day, period_first_day rows unbounded preceding) as period_ending_balance\n from retained_earnings_starter\n),\n\nfinal as (\n \n select\n account_id,\n source_relation,\n account_number,\n account_name,\n is_sub_account,\n parent_account_number,\n parent_account_name,\n account_type,\n account_sub_type,\n account_class,\n class_id,\n financial_statement_helper,\n date_year,\n period_first_day,\n period_last_day,\n period_net_change,\n lag(coalesce(period_ending_balance,0)) over (order by period_first_day) as period_beginning_balance,\n period_ending_balance\n from retained_earnings_beginning\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__retained_earnings\""}, "model.quickbooks.int_quickbooks__general_ledger_date_spine": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt.date_trunc", "macro.dbt.last_day", "macro.dbt.run_query"], "nodes": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__general_ledger_date_spine"], "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine", "raw_code": "-- depends_on: {{ ref('quickbooks__general_ledger') }}\n\nwith spine as (\n\n {% if execute %}\n {% set first_date_query %}\n select min( transaction_date ) as min_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n {% set first_date = run_query(first_date_query).columns[0][0]|string %}\n \n {% if target.type == 'postgres' %}\n {% set first_date_adjust = \"cast('\" ~ first_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set first_date_adjust = \"'\" ~ first_date[0:10] ~ \"'\" %}\n\n {% endif %}\n\n {% else %} {% set first_date_adjust = \"'2000-01-01'\" %}\n {% endif %}\n\n {% if execute %}\n {% set last_date_query %}\n select max( transaction_date ) as max_date from {{ ref('quickbooks__general_ledger') }}\n {% endset %}\n\n {% set current_date_query %}\n select current_date\n {% endset %}\n\n {% if run_query(current_date_query).columns[0][0]|string < run_query(last_date_query).columns[0][0]|string %}\n\n {% set last_date = run_query(last_date_query).columns[0][0]|string %}\n\n {% else %} {% set last_date = run_query(current_date_query).columns[0][0]|string %}\n {% endif %}\n \n {% if target.type == 'postgres' %}\n {% set last_date_adjust = \"cast('\" ~ last_date[0:10] ~ \"' as date)\" %}\n\n {% else %}\n {% set last_date_adjust = \"'\" ~ last_date[0:10] ~ \"'\" %}\n\n {% endif %}\n {% endif %}\n\n {{ dbt_utils.date_spine(\n datepart=\"month\",\n start_date=first_date_adjust,\n end_date=dbt.dateadd(\"month\", 1, last_date_adjust)\n )\n }}\n),\n\ngeneral_ledger as (\n select *\n from {{ ref('quickbooks__general_ledger') }}\n),\n\ndate_spine as (\n select\n cast({{ dbt.date_trunc(\"year\", \"date_month\") }} as date) as date_year,\n cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date) as period_first_day,\n {{ dbt.last_day(\"date_month\", \"month\") }} as period_last_day,\n row_number() over (order by cast({{ dbt.date_trunc(\"month\", \"date_month\") }} as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__general_ledger_date_spine.sql", "original_file_path": "models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "name": "int_quickbooks__general_ledger_date_spine", "alias": "int_quickbooks__general_ledger_date_spine", "checksum": {"name": "sha256", "checksum": "aaf951b7837338c61415eb69d5d4518f45fbf6f5a78c0781833a64a1f08a596c"}, "tags": [], "refs": [["quickbooks__general_ledger"], ["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "Table that creates a date spine by month with the first date being the minimum transaction date from the quickbooks__general_ledger model and the last date being one month after the last transaction date from the quickbooks__general_ledger model.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__general_ledger_date_spine.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416401.644158, "compiled_code": "-- depends_on: \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n\nwith spine as (\n\n \n \n \n \n \n \n\n \n\n \n\n \n \n\n \n\n \n \n \n \n \n\n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 50.0\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2019-01-02' as date) + ((interval '1 month') * (row_number() over (order by 1) - 1))\n\n\n ) as date_month\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_month <= \n\n cast('2023-02-14' as date) + ((interval '1 month') * (1))\n\n\n\n)\n\nselect * from filtered\n\n\n),\n\ngeneral_ledger as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n),\n\ndate_spine as (\n select\n cast(date_trunc('year', date_month) as date) as date_year,\n cast(date_trunc('month', date_month) as date) as period_first_day,\n cast(\n \n\n \n\n date_trunc('month', date_month) + ((interval '1 month') * (1))\n\n + ((interval '1 day') * (-1))\n\n\n as date) as period_last_day,\n row_number() over (order by cast(date_trunc('month', date_month) as date)) as period_index\n from spine\n),\n\nfinal as (\n select distinct\n general_ledger.account_id,\n general_ledger.source_relation,\n general_ledger.account_number,\n general_ledger.account_name,\n general_ledger.is_sub_account,\n general_ledger.parent_account_number,\n general_ledger.parent_account_name,\n general_ledger.account_type,\n general_ledger.account_sub_type,\n general_ledger.account_class,\n general_ledger.financial_statement_helper,\n general_ledger.class_id,\n date_spine.date_year,\n date_spine.period_first_day,\n date_spine.period_last_day,\n date_spine.period_index\n from general_ledger\n\n cross join date_spine\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__general_ledger_date_spine\""}, "model.quickbooks.int_quickbooks__bill_join": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt_utils.group_by"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__bill_join"], "unique_id": "model.quickbooks.int_quickbooks__bill_join", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith bills as (\n\n select *\n from {{ ref('stg_quickbooks__bill') }}\n),\n\nbill_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_line') }}\n),\n\nbills_linked as (\n\n select *\n from {{ ref('stg_quickbooks__bill_linked_txn') }}\n),\n\nbill_payments as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment') }}\n),\n\nbill_payment_lines as (\n\n select *\n from {{ ref('stg_quickbooks__bill_payment_line') }}\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as {{ dbt.type_string() }}) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n {{ dbt_utils.group_by(10) }} \n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__bill_join.sql", "original_file_path": "models/intermediate/int_quickbooks__bill_join.sql", "name": "int_quickbooks__bill_join", "alias": "int_quickbooks__bill_join", "checksum": {"name": "sha256", "checksum": "26e2ff679cccf1e52083b6e91f4587982d85a6d1f2747ba4733e135992d53f26"}, "tags": [], "refs": [["stg_quickbooks__bill"], ["stg_quickbooks__bill_line"], ["stg_quickbooks__bill_linked_txn"], ["stg_quickbooks__bill_payment"], ["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "Table that joins a single bill transaction with the corresponding bill payment (if paid).", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__bill_join.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.6433978, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith bills as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n),\n\nbill_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n),\n\nbills_linked as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\n),\n\nbill_payments as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n),\n\nbill_payment_lines as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n\n where bill_id is not null\n),\n\nbill_pay as (\n\n select\n bills.bill_id,\n bills.source_relation,\n bills_linked.bill_payment_id\n from bills\n\n left join bills_linked\n on bills.bill_id = bills_linked.bill_id\n and bills.source_relation = bills_linked.source_relation\n\n where bills_linked.bill_payment_id is not null\n),\n\nbill_link as (\n\n select\n bills.*,\n bill_pay.bill_payment_id\n from bills\n\n left join bill_pay\n on bills.bill_id = bill_pay.bill_id\n and bills.source_relation = bill_pay.source_relation\n),\n\nfinal as (\n\n select\n cast('bill' as TEXT) as transaction_type,\n bill_link.bill_id as transaction_id,\n bill_link.source_relation,\n bill_link.doc_number,\n bill_link.department_id,\n bill_link.vendor_id as vendor_id,\n bill_link.payable_account_id,\n bill_link.total_amount as total_amount,\n bill_link.balance as current_balance,\n bill_link.due_date_at as due_date,\n min(bill_payments.transaction_date) as initial_payment_date,\n max(bill_payments.transaction_date) as recent_payment_date,\n sum(coalesce(bill_payment_lines.amount, 0)) as total_current_payment\n\n from bill_link\n\n left join bill_payments\n on bill_link.bill_payment_id = bill_payments.bill_payment_id\n and bill_link.source_relation = bill_payments.source_relation\n\n left join bill_payment_lines\n on bill_payments.bill_payment_id = bill_payment_lines.bill_payment_id\n and bill_payments.source_relation = bill_payment_lines.source_relation\n and bill_link.bill_id = bill_payment_lines.bill_id\n \n group by 1,2,3,4,5,6,7,8,9,10 \n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__bill_join\""}, "model.quickbooks.int_quickbooks__sales_union": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars_one_true", "macro.fivetran_utils.enabled_vars"], "nodes": ["model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks.int_quickbooks__account_classifications"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "intermediate", "int_quickbooks__sales_union"], "unique_id": "model.quickbooks.int_quickbooks__sales_union", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars_one_true(['using_sales_receipt','using_invoice'])) }}\n\nwith sales_union as (\n\n {% if var('using_sales_receipt', True) %}\n select *\n from {{ ref('int_quickbooks__sales_receipt_transactions') }}\n {% endif %}\n\n {% if fivetran_utils.enabled_vars(['using_sales_receipt','using_invoice']) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n\n {% else %}\n\n {% if var('using_invoice', True) %}\n select *\n from {{ ref('int_quickbooks__invoice_transactions') }}\n {% endif %} \n \n {% endif %}\n\n {% if var('using_refund_receipt', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__refund_receipt_transactions') }}\n {% endif %}\n\n {% if var('using_credit_memo', True) %}\n union all\n\n select *\n from {{ ref('int_quickbooks__credit_memo_transactions') }}\n {% endif %}\n),\n\ncustomers as (\n\n select *\n from {{ ref('stg_quickbooks__customer') }}\n),\n\n{% if var('using_department', True) %}\ndepartments as ( \n\n select *\n from {{ ref('stg_quickbooks__department') }}\n),\n{% endif %}\n\nvendors as (\n\n select *\n from {{ ref('stg_quickbooks__vendor') }}\n),\n\nincome_accounts as (\n\n select *\n from {{ ref('int_quickbooks__account_classifications') }}\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n {% if var('using_department', True) %}\n departments.fully_qualified_name as department_name,\n {% endif %}\n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n {% if var('using_department', True) %}\n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n {% endif %}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "intermediate/int_quickbooks__sales_union.sql", "original_file_path": "models/intermediate/int_quickbooks__sales_union.sql", "name": "int_quickbooks__sales_union", "alias": "int_quickbooks__sales_union", "checksum": {"name": "sha256", "checksum": "e8efad88f641adc4d0e72e7bbb6334dc2af414b98b31c8b570dce3ca8bc4a917"}, "tags": [], "refs": [["int_quickbooks__sales_receipt_transactions"], ["int_quickbooks__invoice_transactions"], ["int_quickbooks__refund_receipt_transactions"], ["int_quickbooks__credit_memo_transactions"], ["stg_quickbooks__customer"], ["stg_quickbooks__department"], ["stg_quickbooks__vendor"], ["int_quickbooks__account_classifications"]], "sources": [], "metrics": [], "description": "Table that unions transactional tables that are representative of a sale. The sale transactional tables are: int_quickbooks__sales_receipt_transactions int_quickbooks__invoice_transactions, int_quickbooks__credit_memo_transactions, int_quickbooks__refund_receipt_transactions, int_quickbooks__journal_entry_transactions, int_quickbooks__deposit_transactions. Additionally, while some transactions included in the previously mentioned transaction tables contain non-income transactions an inner join on accounts with the sub_type equal to Income is applied.\n", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": "target/compiled/quickbooks/models/intermediate/int_quickbooks__sales_union.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks", "enabled": true}, "created_at": 1676416401.6446679, "compiled_code": "\n\nwith sales_union as (\n\n \n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__invoice_transactions\"\n\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__refund_receipt_transactions\"\n \n\n \n union all\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__credit_memo_transactions\"\n \n),\n\ncustomers as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n),\n\n\ndepartments as ( \n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\"\n),\n\n\nvendors as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n),\n\nincome_accounts as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__account_classifications\"\n where account_type = 'Income'\n),\n\nfinal as (\n\n select \n 'sales' as transaction_source,\n sales_union.transaction_id,\n sales_union.source_relation,\n sales_union.transaction_line_id,\n sales_union.doc_number,\n sales_union.transaction_type,\n sales_union.transaction_date,\n sales_union.item_id,\n sales_union.item_quantity,\n sales_union.item_unit_price,\n sales_union.account_id,\n income_accounts.name as account_name,\n income_accounts.account_sub_type as account_sub_type,\n sales_union.class_id,\n sales_union.department_id,\n \n departments.fully_qualified_name as department_name,\n \n sales_union.customer_id,\n customers.fully_qualified_name as customer_name,\n customers.website as customer_website,\n sales_union.vendor_id,\n vendors.display_name as vendor_name,\n sales_union.billable_status,\n sales_union.description,\n sales_union.amount,\n sales_union.total_amount\n from sales_union\n\n inner join income_accounts\n on sales_union.account_id = income_accounts.account_id\n and sales_union.source_relation = income_accounts.source_relation\n\n left join customers\n on customers.customer_id = sales_union.customer_id\n and customers.source_relation = sales_union.source_relation\n\n left join vendors\n on vendors.vendor_id = sales_union.vendor_id\n and vendors.source_relation = sales_union.source_relation\n\n \n left join departments\n on departments.department_id = sales_union.department_id\n and departments.source_relation = sales_union.source_relation\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks\".\"int_quickbooks__sales_union\""}, "analysis.quickbooks.quickbooks__balance_sheet": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__balance_sheet"], "unique_id": "analysis.quickbooks.quickbooks__balance_sheet", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__balance_sheet.sql", "original_file_path": "analysis/quickbooks__balance_sheet.sql", "name": "quickbooks__balance_sheet", "alias": "quickbooks__balance_sheet", "checksum": {"name": "sha256", "checksum": "2d430f9f0571cf16e08e31820360dbb610c24d5fdc1ab38bd2943b4b7161bbda"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__balance_sheet.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416400.505151, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n where period_first_day <= 'YYYY-MM-DD' --Update to be your desired ending date.\n),\n\nliability_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Liability'\n\n group by 1\n),\n\nasset_date as (\n select \n account_id, \n max(period_first_day) as period_first_day \n from general_ledger_by_period\n\n where account_class = 'Asset'\n\n group by 1\n),\n\nequity_date as (\n select \n account_id,\n max(period_first_day) as period_first_day \n from general_ledger_by_period \n\n where account_class = 'Equity'\n\n group by 1\n),\n\nliability as (\n select \n ld.account_id, \n l.period_ending_balance\n from liability_date ld\n\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Liability') l\n on l.account_id = ld.account_id\n and l.period_first_day = ld.period_first_day \n),\n\nasset as (\n select ad.account_id, a.period_ending_balance\n from asset_date ad\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Asset') a\n on a.account_id = ad.account_id\n and a.period_first_day = ad.period_first_day \n),\n\nequity as (\n select ed.account_id, e.period_ending_balance\n from equity_date ed\n left join (select account_id, period_first_day, period_ending_balance from general_ledger_by_period where account_class = 'Equity') e\n on e.account_id = ed.account_id\n and e.period_first_day = ed.period_first_day \n)\n\nselect \n \"liability\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom liability\n\nunion all\n\nselect \n \"asset\" as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom asset\n\nunion all \n\nselect \n 'equity' as balance_sheet_type, \n sum(period_ending_balance) as balance \nfrom equity", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "analysis.quickbooks.quickbooks__income_statement": {"compiled": true, "resource_type": "analysis", "depends_on": {"macros": [], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks", "fqn": ["quickbooks", "analysis", "quickbooks__income_statement"], "unique_id": "analysis.quickbooks.quickbooks__income_statement", "raw_code": "with general_ledger_by_period as (\n select * \n from {{ ref('quickbooks__general_ledger_by_period') }}\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "analysis/quickbooks__income_statement.sql", "original_file_path": "analysis/quickbooks__income_statement.sql", "name": "quickbooks__income_statement", "alias": "quickbooks__income_statement", "checksum": {"name": "sha256", "checksum": "6a2926427516128d537ff107ec14a2338f89f3f2dec1d861ec7daab31fd2c87e"}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/analysis/quickbooks__income_statement.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks"}, "created_at": 1676416400.5086138, "compiled_code": "with general_ledger_by_period as (\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n),\n\nrevenue as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Revenue'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nexpense as (\n select \n account_id, \n sum(period_net_change) as ending_balance \n from general_ledger_by_period\n\n where account_class = 'Expense'\n and period_first_day between 'YYYY-MM-DD' and 'YYYY-MM-DD' --Update 'YYYY-MM-DD' to be your desired date period.\n\n group by 1\n),\n\nrevenue_total as (\n select \n 'revenue' as income_statement_type, \n sum(ending_balance) \n from revenue\n),\n\nexpense_total as (\n select \n 'expene' as income_statement_type, \n sum(ending_balance) \n from expense\n)\n\nselect * \nfrom revenue_total\n\nunion all \n\nselect * \nfrom expense_total", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__journal_entry_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_line_tmp')),\n staging_columns=get_journal_entry_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry_line.sql", "original_file_path": "models/stg_quickbooks__journal_entry_line.sql", "name": "stg_quickbooks__journal_entry_line", "alias": "stg_quickbooks__journal_entry_line", "checksum": {"name": "sha256", "checksum": "4a44ae6affd5281ee7cc64e05384fdb7ad18b15c18185cc970f9bd639bdf7a34"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Account id of the account which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.783378, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_id\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n billable_status\n \n , \n cast(null as TEXT) as \n \n class_id\n \n , \n cast(null as TEXT) as \n \n customer_id\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as date) as \n \n description_service_date\n \n , \n cast(null as TEXT) as \n \n description_tax_code_id\n \n , \n cast(null as TEXT) as \n \n employee_id\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n journal_entry_id\n \n , \n cast(null as TEXT) as \n \n posting_type\n \n , \n cast(null as FLOAT) as \n \n tax_amount\n \n , \n cast(null as TEXT) as \n \n tax_applicable_on\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n , \n cast(null as TEXT) as \n \n vendor_id\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as TEXT) as journal_entry_id,\n index,\n cast(account_id as TEXT) as account_id,\n amount,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as TEXT) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__transfer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__transfer_tmp')),\n staging_columns=get_transfer_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__transfer.sql", "original_file_path": "models/stg_quickbooks__transfer.sql", "name": "stg_quickbooks__transfer", "alias": "stg_quickbooks__transfer", "checksum": {"name": "sha256", "checksum": "2e5aeff4520b116401c48251bf9a3f2db443857c8c8f7c07aaf5b41286878746"}, "tags": [], "refs": [["stg_quickbooks__transfer_tmp"], ["stg_quickbooks__transfer_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"transfer_id": {"name": "transfer_id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "Account id of the account which the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "Account id of the account which the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__transfer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.817407, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n from_account_id\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TEXT) as \n \n to_account_id\n \n , \n cast(null as date) as \n \n transaction_date\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as transfer_id,\n amount,\n cast(from_account_id as TEXT) as from_account_id,\n cast(to_account_id as TEXT) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_line_tmp')),\n staging_columns=get_bill_payment_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment_line.sql", "original_file_path": "models/stg_quickbooks__bill_payment_line.sql", "name": "stg_quickbooks__bill_payment_line", "alias": "stg_quickbooks__bill_payment_line", "checksum": {"name": "sha256", "checksum": "e0de0b712f688b7f8628fa17430dc3d700042e37a53783d3e8fc7ee0272a71db"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.734601, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n bill_id\n \n , \n cast(null as TEXT) as \n \n bill_payment_credit_card_id\n \n , \n cast(null as TEXT) as \n \n bill_payment_id\n \n , \n cast(null as TEXT) as \n \n check_id\n \n , \n cast(null as TEXT) as \n \n credit_card_charge_id\n \n , \n cast(null as TEXT) as \n \n credit_card_credit_id\n \n , \n cast(null as TEXT) as \n \n deposit_id\n \n , \n cast(null as TEXT) as \n \n expense_id\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n journal_entry_id\n \n , \n cast(null as TEXT) as \n \n linked_bill_payment_id\n \n , \n cast(null as TEXT) as \n \n vendor_credit_id\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as TEXT) as bill_payment_id,\n index,\n amount,\n cast(bill_id as TEXT) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_line_tmp')),\n staging_columns=get_payment_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment_line.sql", "original_file_path": "models/stg_quickbooks__payment_line.sql", "name": "stg_quickbooks__payment_line", "alias": "stg_quickbooks__payment_line", "checksum": {"name": "sha256", "checksum": "62737fcbdd45af89bc14370b70f36cfbd94391602da7a6afb4dd97e4a1120429"}, "tags": [], "refs": [["stg_quickbooks__payment_line_tmp"], ["stg_quickbooks__payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.787863, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n check_id\n \n , \n cast(null as TEXT) as \n \n credit_card_charge_id\n \n , \n cast(null as TEXT) as \n \n credit_card_credit_id\n \n , \n cast(null as TEXT) as \n \n credit_memo_id\n \n , \n cast(null as TEXT) as \n \n deposit_id\n \n , \n cast(null as TEXT) as \n \n expense_id\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n invoice_id\n \n , \n cast(null as TEXT) as \n \n journal_entry_id\n \n , \n cast(null as TEXT) as \n \n payment_id\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as TEXT) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as TEXT) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_tmp')),\n staging_columns=get_vendor_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor.sql", "original_file_path": "models/stg_quickbooks__vendor.sql", "name": "stg_quickbooks__vendor", "alias": "stg_quickbooks__vendor", "checksum": {"name": "sha256", "checksum": "6b6d5e653208581f032f6850766879795733912c64f11163419584210d386970"}, "tags": [], "refs": [["stg_quickbooks__vendor_tmp"], ["stg_quickbooks__vendor_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"vendor_id": {"name": "vendor_id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_vendor_1099": {"name": "is_vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676416401.82659, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_number\n \n , \n cast(null as boolean) as \n \n active\n \n , \n cast(null as TEXT) as \n \n alternate_phone\n \n , \n cast(null as FLOAT) as \n \n balance\n \n , \n cast(null as TEXT) as \n \n billing_address_id\n \n , \n cast(null as TEXT) as \n \n company_name\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n display_name\n \n , \n cast(null as TEXT) as \n \n email\n \n , \n cast(null as TEXT) as \n \n family_name\n \n , \n cast(null as TEXT) as \n \n fax_number\n \n , \n cast(null as TEXT) as \n \n given_name\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n middle_name\n \n , \n cast(null as TEXT) as \n \n mobile_phone\n \n , \n cast(null as TEXT) as \n \n other_contacts\n \n , \n cast(null as TEXT) as \n \n primary_phone\n \n , \n cast(null as TEXT) as \n \n print_on_check_name\n \n , \n cast(null as TEXT) as \n \n suffix\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TEXT) as \n \n tax_identifier\n \n , \n cast(null as TEXT) as \n \n term_id\n \n , \n cast(null as TEXT) as \n \n title\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n cast(null as boolean) as \n \n vendor_1099\n \n , \n cast(null as TEXT) as \n \n web_url\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as TEXT) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_tmp')),\n staging_columns=get_invoice_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line.sql", "original_file_path": "models/stg_quickbooks__invoice_line.sql", "name": "stg_quickbooks__invoice_line", "alias": "stg_quickbooks__invoice_line", "checksum": {"name": "sha256", "checksum": "acc22a519a861cd717e417884b61bc191432e1c46a31ea8ebde689e6f4223177"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_tmp"], ["stg_quickbooks__invoice_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.770379, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_id\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n bundle_id\n \n , \n cast(null as FLOAT) as \n \n bundle_quantity\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TIMESTAMP) as \n \n description_service_date\n \n , \n cast(null as TEXT) as \n \n description_tax_code_id\n \n , \n cast(null as TEXT) as \n \n discount_account_id\n \n , \n cast(null as TEXT) as \n \n discount_class_id\n \n , \n cast(null as FLOAT) as \n \n discount_discount_percent\n \n , \n cast(null as boolean) as \n \n discount_percent_based\n \n , \n cast(null as TEXT) as \n \n discount_tax_code_id\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n invoice_id\n \n , \n cast(null as TEXT) as \n \n item_id\n \n , \n cast(null as FLOAT) as \n \n quantity\n \n , \n cast(null as TEXT) as \n \n sales_item_account_id\n \n , \n cast(null as TEXT) as \n \n sales_item_class_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_discount_amount\n \n , \n cast(null as FLOAT) as \n \n sales_item_discount_rate\n \n , \n cast(null as TEXT) as \n \n sales_item_item_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_quantity\n \n , \n cast(null as TIMESTAMP) as \n \n sales_item_service_date\n \n , \n cast(null as TEXT) as \n \n sales_item_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_unit_price\n \n , \n cast(null as TEXT) as \n \n sub_total_item_id\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as TEXT) as bundle_id,\n cast(account_id as TEXT) as account_id,\n cast(item_id as TEXT) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_tmp') }}\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_tmp')),\n staging_columns=get_estimate_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as estimate_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate.sql", "original_file_path": "models/stg_quickbooks__estimate.sql", "name": "stg_quickbooks__estimate", "alias": "stg_quickbooks__estimate", "checksum": {"name": "sha256", "checksum": "501fe174a3a77c1f92407b060600528ce9e3b198e143ab2985f5a0f0e9c95c70"}, "tags": [], "refs": [["stg_quickbooks__estimate_tmp"], ["stg_quickbooks__estimate_tmp"]], "sources": [], "metrics": [], "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the estimate was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.762066, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\"\n\n),\n \nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n accepted_by\n \n , \n cast(null as TIMESTAMP) as \n \n accepted_date\n \n , \n cast(null as boolean) as \n \n apply_tax_after_discount\n \n , \n cast(null as TEXT) as \n \n bill_email\n \n , \n cast(null as TEXT) as \n \n billing_address_id\n \n , \n cast(null as TEXT) as \n \n class_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n customer_id\n \n , \n cast(null as TEXT) as \n \n customer_memo\n \n , \n cast(null as TEXT) as \n \n delivery_type\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n doc_number\n \n , \n cast(null as TIMESTAMP) as \n \n due_date\n \n , \n cast(null as TEXT) as \n \n email_status\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as TIMESTAMP) as \n \n expiration_date\n \n , \n cast(null as TEXT) as \n \n global_tax_calculation\n \n , \n cast(null as FLOAT) as \n \n home_total_amount\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n print_status\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as TEXT) as \n \n sales_term_id\n \n , \n cast(null as TIMESTAMP) as \n \n ship_date\n \n , \n cast(null as TEXT) as \n \n shipping_address_id\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as FLOAT) as \n \n total_tax\n \n , \n cast(null as TIMESTAMP) as \n \n transaction_date\n \n , \n cast(null as TEXT) as \n \n transaction_status\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as estimate_id,\n cast(class_id as TEXT) as class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_line_tmp')),\n staging_columns=get_credit_memo_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo_line.sql", "original_file_path": "models/stg_quickbooks__credit_memo_line.sql", "name": "stg_quickbooks__credit_memo_line", "alias": "stg_quickbooks__credit_memo_line", "checksum": {"name": "sha256", "checksum": "b7cf6d56a640a9f0700a3620a94fc61a422c8db6dfdbcbbb5939e0fd80c5a3b7"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line_tmp"], ["stg_quickbooks__credit_memo_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.7484531, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n bundle_id\n \n , \n cast(null as FLOAT) as \n \n bundle_quantity\n \n , \n cast(null as TEXT) as \n \n credit_memo_id\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TIMESTAMP) as \n \n description_service_date\n \n , \n cast(null as TEXT) as \n \n description_tax_code_id\n \n , \n cast(null as TEXT) as \n \n discount_account_id\n \n , \n cast(null as TEXT) as \n \n discount_class_id\n \n , \n cast(null as FLOAT) as \n \n discount_discount_percent\n \n , \n cast(null as boolean) as \n \n discount_percent_based\n \n , \n cast(null as TEXT) as \n \n discount_tax_code_id\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n sales_item_account_id\n \n , \n cast(null as TEXT) as \n \n sales_item_class_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_discount_amount\n \n , \n cast(null as FLOAT) as \n \n sales_item_discount_rate\n \n , \n cast(null as TEXT) as \n \n sales_item_item_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_quantity\n \n , \n cast(null as TIMESTAMP) as \n \n sales_item_service_date\n \n , \n cast(null as TEXT) as \n \n sales_item_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_unit_price\n \n , \n cast(null as TEXT) as \n \n sub_total_item_id\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as TEXT) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_tmp')),\n staging_columns=get_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle.sql", "original_file_path": "models/stg_quickbooks__bundle.sql", "name": "stg_quickbooks__bundle", "alias": "stg_quickbooks__bundle", "checksum": {"name": "sha256", "checksum": "8e3f27ad4f72eb020a1c32b3654e9306ef2f878a0c52ac8356b695a0c03c2611"}, "tags": [], "refs": [["stg_quickbooks__bundle_tmp"], ["stg_quickbooks__bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the bundle was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.74336, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n active\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TEXT) as \n \n fully_qualified_name\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as boolean) as \n \n print_grouped_items\n \n , \n cast(null as FLOAT) as \n \n purchase_cost\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as boolean) as \n \n taxable\n \n , \n cast(null as FLOAT) as \n \n unit_price\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__department_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__department_tmp')),\n staging_columns=get_department_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__department.sql", "original_file_path": "models/stg_quickbooks__department.sql", "name": "stg_quickbooks__department", "alias": "stg_quickbooks__department", "checksum": {"name": "sha256", "checksum": "61c0a5d8287b3e73bbee2986e1d0914da2cdc67a88534bd2be26264eb6e29a67"}, "tags": [], "refs": [["stg_quickbooks__department_tmp"], ["stg_quickbooks__department_tmp"]], "sources": [], "metrics": [], "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"department_id": {"name": "department_id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the department was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_department": {"name": "is_sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if is_sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__department.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.7556422, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n active\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n fully_qualified_name\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n parent_department_id\n \n , \n cast(null as boolean) as \n \n sub_department\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "raw_code": "with base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_line_tmp')),\n staging_columns=get_purchase_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_line.sql", "original_file_path": "models/stg_quickbooks__purchase_line.sql", "name": "stg_quickbooks__purchase_line", "alias": "stg_quickbooks__purchase_line", "checksum": {"name": "sha256", "checksum": "1ffe50688ea656d1019565cd7238adef008dc1e1e7e97ba2048bb6c4628f873d"}, "tags": [], "refs": [["stg_quickbooks__purchase_line_tmp"], ["stg_quickbooks__purchase_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based expense purchase line", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676416401.793323, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_expense_account_id\n \n , \n cast(null as TEXT) as \n \n account_expense_billable_status\n \n , \n cast(null as TEXT) as \n \n account_expense_class_id\n \n , \n cast(null as TEXT) as \n \n account_expense_customer_id\n \n , \n cast(null as FLOAT) as \n \n account_expense_tax_amount\n \n , \n cast(null as TEXT) as \n \n account_expense_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n item_expense_billable_status\n \n , \n cast(null as TEXT) as \n \n item_expense_class_id\n \n , \n cast(null as TEXT) as \n \n item_expense_customer_id\n \n , \n cast(null as TEXT) as \n \n item_expense_item_id\n \n , \n cast(null as FLOAT) as \n \n item_expense_quantity\n \n , \n cast(null as TEXT) as \n \n item_expense_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n item_expense_unit_price\n \n , \n cast(null as TEXT) as \n \n purchase_id\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as TEXT) as purchase_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__purchase_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_tmp')),\n staging_columns=get_purchase_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase.sql", "original_file_path": "models/stg_quickbooks__purchase.sql", "name": "stg_quickbooks__purchase", "alias": "stg_quickbooks__purchase", "checksum": {"name": "sha256", "checksum": "cde15943157fb1be413075f3aa62e1670fb0e6bb5118ca59ea5f75f816487d4a"}, "tags": [], "refs": [["stg_quickbooks__purchase_tmp"], ["stg_quickbooks__purchase_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of purchase expenses.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Specifies the account reference to which this purchase is applied based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676416401.796649, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as boolean) as \n \n credit\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n customer_id\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n doc_number\n \n , \n cast(null as TEXT) as \n \n employee_id\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as TEXT) as \n \n global_tax_calculation\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n payment_method_id\n \n , \n cast(null as TEXT) as \n \n payment_type\n \n , \n cast(null as TEXT) as \n \n print_status\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as TEXT) as \n \n remit_to_address_id\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as FLOAT) as \n \n total_tax\n \n , \n cast(null as date) as \n \n transaction_date\n \n , \n cast(null as TEXT) as \n \n transaction_source\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n cast(null as TEXT) as \n \n vendor_id\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as purchase_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n cast(vendor_id as TEXT) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_line_tmp')),\n staging_columns=get_refund_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id, \n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt_line.sql", "original_file_path": "models/stg_quickbooks__refund_receipt_line.sql", "name": "stg_quickbooks__refund_receipt_line", "alias": "stg_quickbooks__refund_receipt_line", "checksum": {"name": "sha256", "checksum": "6e468b38cb9d0067dad366c52ec5e366a4455ed5158fc38d6502f1520529cfe9"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line_tmp"], ["stg_quickbooks__refund_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account which the refund is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.806732, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n bundle_id\n \n , \n cast(null as FLOAT) as \n \n bundle_quantity\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as date) as \n \n description_service_date\n \n , \n cast(null as TEXT) as \n \n description_tax_code_id\n \n , \n cast(null as TEXT) as \n \n discount_account_id\n \n , \n cast(null as TEXT) as \n \n discount_class_id\n \n , \n cast(null as FLOAT) as \n \n discount_discount_percent\n \n , \n cast(null as boolean) as \n \n discount_percent_based\n \n , \n cast(null as TEXT) as \n \n discount_tax_code_id\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n refund_id\n \n , \n cast(null as TEXT) as \n \n sales_item_account_id\n \n , \n cast(null as TEXT) as \n \n sales_item_class_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_discount_amount\n \n , \n cast(null as FLOAT) as \n \n sales_item_discount_rate\n \n , \n cast(null as TEXT) as \n \n sales_item_item_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_quantity\n \n , \n cast(null as date) as \n \n sales_item_service_date\n \n , \n cast(null as TEXT) as \n \n sales_item_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_unit_price\n \n , \n cast(null as TEXT) as \n \n sub_total_item_id\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as TEXT) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id, \n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_item_tmp')),\n staging_columns=get_bundle_item_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle_item.sql", "original_file_path": "models/stg_quickbooks__bundle_item.sql", "name": "stg_quickbooks__bundle_item", "alias": "stg_quickbooks__bundle_item", "checksum": {"name": "sha256", "checksum": "c5e85a89debd33e5f789ef58fa05a1bf931b63a0451c0ab7d8f6b0b565895a4d"}, "tags": [], "refs": [["stg_quickbooks__bundle_item_tmp"], ["stg_quickbooks__bundle_item_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing all bundle and item combinations.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bunlde and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle_item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.7414348, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n bundle_id\n \n , \n cast(null as TEXT) as \n \n item_id\n \n , \n cast(null as FLOAT) as \n \n item_quantity\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as TEXT) as bundle_id,\n cast(item_id as TEXT) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "raw_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_memo_tmp')),\n staging_columns=get_credit_memo_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo.sql", "original_file_path": "models/stg_quickbooks__credit_memo.sql", "name": "stg_quickbooks__credit_memo", "alias": "stg_quickbooks__credit_memo", "checksum": {"name": "sha256", "checksum": "3757765d000c8762afea93869ab1ba6c3d5f22574c7b3d90cd91f4ecb894f85d"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_tmp"], ["stg_quickbooks__credit_memo_tmp"]], "sources": [], "metrics": [], "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier for a credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.751111, "compiled_code": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n apply_tax_after_discount\n \n , \n cast(null as FLOAT) as \n \n balance\n \n , \n cast(null as TEXT) as \n \n bill_email\n \n , \n cast(null as TEXT) as \n \n billing_address_id\n \n , \n cast(null as TEXT) as \n \n class_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n custom_p_o_number\n \n , \n cast(null as TEXT) as \n \n customer_id\n \n , \n cast(null as TEXT) as \n \n customer_memo\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n doc_number\n \n , \n cast(null as TEXT) as \n \n email_status\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as TEXT) as \n \n global_tax_calculation\n \n , \n cast(null as FLOAT) as \n \n home_balance\n \n , \n cast(null as FLOAT) as \n \n home_total_amount\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n payment_method_id\n \n , \n cast(null as TEXT) as \n \n print_status\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as FLOAT) as \n \n remaining_credit\n \n , \n cast(null as TEXT) as \n \n sales_term_id\n \n , \n cast(null as TEXT) as \n \n shipping_address_id\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as TEXT) as \n \n total_tax\n \n , \n cast(null as TIMESTAMP) as \n \n transaction_date\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as credit_memo_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as TEXT) as class_id,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_line_tmp')),\n staging_columns=get_sales_receipt_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt_line.sql", "original_file_path": "models/stg_quickbooks__sales_receipt_line.sql", "name": "stg_quickbooks__sales_receipt_line", "alias": "stg_quickbooks__sales_receipt_line", "checksum": {"name": "sha256", "checksum": "050d2104a9f5c48e73b726f52bc9472987b3581193a9694bc6744324ba43b82b"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line_tmp"], ["stg_quickbooks__sales_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class id of the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.812387, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n bundle_id\n \n , \n cast(null as FLOAT) as \n \n bundle_quantity\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as date) as \n \n description_service_date\n \n , \n cast(null as TEXT) as \n \n description_tax_code_id\n \n , \n cast(null as TEXT) as \n \n discount_account_id\n \n , \n cast(null as TEXT) as \n \n discount_class_id\n \n , \n cast(null as FLOAT) as \n \n discount_discount_percent\n \n , \n cast(null as boolean) as \n \n discount_percent_based\n \n , \n cast(null as TEXT) as \n \n discount_tax_code_id\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n sales_item_account_id\n \n , \n cast(null as TEXT) as \n \n sales_item_class_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_discount_amount\n \n , \n cast(null as FLOAT) as \n \n sales_item_discount_rate\n \n , \n cast(null as TEXT) as \n \n sales_item_item_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_quantity\n \n , \n cast(null as date) as \n \n sales_item_service_date\n \n , \n cast(null as TEXT) as \n \n sales_item_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_unit_price\n \n , \n cast(null as TEXT) as \n \n sales_receipt_id\n \n , \n cast(null as TEXT) as \n \n sub_total_item_id\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as TEXT) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__sales_receipt_tmp')),\n staging_columns=get_sales_receipt_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt.sql", "original_file_path": "models/stg_quickbooks__sales_receipt.sql", "name": "stg_quickbooks__sales_receipt", "alias": "stg_quickbooks__sales_receipt", "checksum": {"name": "sha256", "checksum": "42e250594a269ed1d23ffcce0276c23ce7304ebaf20e55336607dcda12c46dae"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_tmp"], ["stg_quickbooks__sales_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account to which payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the sale was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the sold to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.815767, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n apply_tax_after_discount\n \n , \n cast(null as FLOAT) as \n \n balance\n \n , \n cast(null as TEXT) as \n \n bill_email\n \n , \n cast(null as TEXT) as \n \n billing_address_id\n \n , \n cast(null as TEXT) as \n \n class_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as FLOAT) as \n \n credit_card_amount\n \n , \n cast(null as TEXT) as \n \n credit_card_auth_code\n \n , \n cast(null as TEXT) as \n \n credit_card_billing_address_street\n \n , \n cast(null as TEXT) as \n \n credit_card_cc_expiry_month\n \n , \n cast(null as TEXT) as \n \n credit_card_cc_expiry_year\n \n , \n cast(null as TEXT) as \n \n credit_card_cctrans_id\n \n , \n cast(null as TEXT) as \n \n credit_card_name_on_account\n \n , \n cast(null as TEXT) as \n \n credit_card_postal_code\n \n , \n cast(null as boolean) as \n \n credit_card_process_payment\n \n , \n cast(null as TEXT) as \n \n credit_card_status\n \n , \n cast(null as date) as \n \n credit_card_transaction_authorization_time\n \n , \n cast(null as TEXT) as \n \n credit_card_type\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n customer_id\n \n , \n cast(null as TEXT) as \n \n customer_memo\n \n , \n cast(null as date) as \n \n delivery_time\n \n , \n cast(null as TEXT) as \n \n delivery_type\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n deposit_to_account_id\n \n , \n cast(null as TEXT) as \n \n doc_number\n \n , \n cast(null as TEXT) as \n \n email_status\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as TEXT) as \n \n global_tax_calculation\n \n , \n cast(null as FLOAT) as \n \n home_balance\n \n , \n cast(null as FLOAT) as \n \n home_total_amount\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n payment_method_id\n \n , \n cast(null as TEXT) as \n \n payment_reference_number\n \n , \n cast(null as TEXT) as \n \n print_status\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as date) as \n \n ship_date\n \n , \n cast(null as TEXT) as \n \n shipping_address_id\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as FLOAT) as \n \n total_tax\n \n , \n cast(null as TEXT) as \n \n tracking_number\n \n , \n cast(null as date) as \n \n transaction_date\n \n , \n cast(null as TEXT) as \n \n transaction_source\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as sales_receipt_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_linked_txn_tmp')),\n staging_columns=get_invoice_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_linked_txn.sql", "original_file_path": "models/stg_quickbooks__invoice_linked_txn.sql", "name": "stg_quickbooks__invoice_linked_txn", "alias": "stg_quickbooks__invoice_linked_txn", "checksum": {"name": "sha256", "checksum": "f2b779facddf42a3e62603a1254b1503c2b8a8f52dd69a27ed8a14625c1c5953"}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn_tmp"], ["stg_quickbooks__invoice_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.766856, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n charge_credit_id\n \n , \n cast(null as TEXT) as \n \n estimate_id\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n invoice_id\n \n , \n cast(null as TEXT) as \n \n payment_id\n \n , \n cast(null as TEXT) as \n \n reimburse_charge_id\n \n , \n cast(null as TEXT) as \n \n statement_charge_id\n \n , \n cast(null as TEXT) as \n \n time_activity_id\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n cast(payment_id as TEXT) as payment_id,\n cast(estimate_id as TEXT) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "raw_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_tmp')),\n staging_columns=get_invoice_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice.sql", "original_file_path": "models/stg_quickbooks__invoice.sql", "name": "stg_quickbooks__invoice", "alias": "stg_quickbooks__invoice", "checksum": {"name": "sha256", "checksum": "6d5a6ee2afa37a3567700cccf5831e3f27446303711dfaab707579d6c3ae4082"}, "tags": [], "refs": [["stg_quickbooks__invoice_tmp"], ["stg_quickbooks__invoice_tmp"]], "sources": [], "metrics": [], "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer reference is associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class to which the invoice is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.77739, "compiled_code": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n allow_ipnpayment\n \n , \n cast(null as boolean) as \n \n allow_online_achpayment\n \n , \n cast(null as boolean) as \n \n allow_online_credit_card_payment\n \n , \n cast(null as boolean) as \n \n allow_online_payment\n \n , \n cast(null as boolean) as \n \n apply_tax_after_discount\n \n , \n cast(null as FLOAT) as \n \n balance\n \n , \n cast(null as TEXT) as \n \n billing_address_id\n \n , \n cast(null as TEXT) as \n \n billing_bcc_email\n \n , \n cast(null as TEXT) as \n \n billing_cc_email\n \n , \n cast(null as TEXT) as \n \n billing_email\n \n , \n cast(null as TEXT) as \n \n class_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n custom_p_o_number\n \n , \n cast(null as TEXT) as \n \n custom_sales_rep\n \n , \n cast(null as TEXT) as \n \n customer_id\n \n , \n cast(null as TEXT) as \n \n customer_memo\n \n , \n cast(null as TIMESTAMP) as \n \n delivery_time\n \n , \n cast(null as TEXT) as \n \n delivery_type\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as FLOAT) as \n \n deposit\n \n , \n cast(null as TEXT) as \n \n deposit_to_account_id\n \n , \n cast(null as TEXT) as \n \n doc_number\n \n , \n cast(null as TIMESTAMP) as \n \n due_date\n \n , \n cast(null as TEXT) as \n \n email_status\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as TEXT) as \n \n global_tax_calculation\n \n , \n cast(null as FLOAT) as \n \n home_balance\n \n , \n cast(null as FLOAT) as \n \n home_total_amount\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n print_status\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as TEXT) as \n \n sales_term_id\n \n , \n cast(null as TIMESTAMP) as \n \n ship_date\n \n , \n cast(null as TEXT) as \n \n shipping_address_id\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as FLOAT) as \n \n total_tax\n \n , \n cast(null as TEXT) as \n \n tracking_number\n \n , \n cast(null as TIMESTAMP) as \n \n transaction_date\n \n , \n cast(null as TEXT) as \n \n transaction_source\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as invoice_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n cast(billing_address_id as TEXT) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as TEXT) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_payment_tmp')),\n staging_columns=get_bill_payment_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment.sql", "original_file_path": "models/stg_quickbooks__bill_payment.sql", "name": "stg_quickbooks__bill_payment", "alias": "stg_quickbooks__bill_payment", "checksum": {"name": "sha256", "checksum": "20561d9a7ab619d2b9872cdb42a90fc7ac99f8eb10715a5ab068f9856fbeb3b5"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_tmp"], ["stg_quickbooks__bill_payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to a Department object specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.737432, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n check_bank_account_id\n \n , \n cast(null as TEXT) as \n \n check_print_status\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n credit_card_account_id\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n doc_number\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n pay_type\n \n , \n cast(null as TEXT) as \n \n payable_account_id\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as boolean) as \n \n process_bill_payment\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as date) as \n \n transaction_date\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n cast(null as TEXT) as \n \n vendor_id\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bill_payment_id,\n cast(check_bank_account_id as TEXT) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as TEXT) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_bundle_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_bundle_tmp')),\n staging_columns=get_invoice_line_bundle_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line_bundle.sql", "original_file_path": "models/stg_quickbooks__invoice_line_bundle.sql", "name": "stg_quickbooks__invoice_line_bundle", "alias": "stg_quickbooks__invoice_line_bundle", "checksum": {"name": "sha256", "checksum": "0f971477ce0e36654a8571afaa3c4de0ca048b529a182bd4d63aa79874676719"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle_tmp"], ["stg_quickbooks__invoice_line_bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line_bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.773673, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_id\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n class_id\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as FLOAT) as \n \n discount_amount\n \n , \n cast(null as FLOAT) as \n \n discount_rate\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n invoice_id\n \n , \n cast(null as TEXT) as \n \n invoice_line_index\n \n , \n cast(null as TEXT) as \n \n item_id\n \n , \n cast(null as TEXT) as \n \n line_num\n \n , \n cast(null as FLOAT) as \n \n quantity\n \n , \n cast(null as TEXT) as \n \n sales_item_account_id\n \n , \n cast(null as TEXT) as \n \n sales_item_item_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_quantity\n \n , \n cast(null as TEXT) as \n \n sales_item_tax_code_id\n \n , \n cast(null as TIMESTAMP) as \n \n service_date\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n , \n cast(null as FLOAT) as \n \n unit_price\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n cast(class_id as TEXT) as class_id,\n description,\n amount,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(item_id as TEXT) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as TEXT) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "raw_code": "with base as (\n select *\n from {{ ref('stg_quickbooks__account_tmp') }}\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as account_id,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt.type_string() }}) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__account.sql", "original_file_path": "models/stg_quickbooks__account.sql", "name": "stg_quickbooks__account", "alias": "stg_quickbooks__account", "checksum": {"name": "sha256", "checksum": "c363c2c2ed0bd1cdb52064560957c75ad004c3e727f72b5b1bc361e9d8ccf37a"}, "tags": [], "refs": [["stg_quickbooks__account_tmp"], ["stg_quickbooks__account_tmp"]], "sources": [], "metrics": [], "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"account_id": {"name": "account_id", "description": "Unique identifier for an account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__account.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676416401.7264938, "compiled_code": "with base as (\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\"\n\n),\n\naccount as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_number\n \n , \n cast(null as TEXT) as \n \n account_sub_type\n \n , \n cast(null as TEXT) as \n \n account_type\n \n , \n cast(null as boolean) as \n \n active\n \n , \n cast(null as FLOAT) as \n \n balance\n \n , \n cast(null as FLOAT) as \n \n balance_with_sub_accounts\n \n , \n cast(null as TEXT) as \n \n classification\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TEXT) as \n \n fully_qualified_name\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n parent_account_id\n \n , \n cast(null as boolean) as \n \n sub_account\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as account_id,\n cast(account_number as TEXT) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as TEXT) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at,\n source_relation\n from account\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "raw_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__payment_tmp')),\n staging_columns=get_payment_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment.sql", "original_file_path": "models/stg_quickbooks__payment.sql", "name": "stg_quickbooks__payment", "alias": "stg_quickbooks__payment", "checksum": {"name": "sha256", "checksum": "f8b0ad9217d505ec03b1868643d078257992cf4dc4a1b524cab1bc454aeb4a27"}, "tags": [], "refs": [["stg_quickbooks__payment_tmp"], ["stg_quickbooks__payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "Identifies the account for obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to a customer or job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.790387, "compiled_code": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as FLOAT) as \n \n credit_card_amount\n \n , \n cast(null as TEXT) as \n \n credit_card_auth_code\n \n , \n cast(null as TEXT) as \n \n credit_card_billing_address_street\n \n , \n cast(null as TEXT) as \n \n credit_card_cc_expiry_month\n \n , \n cast(null as TEXT) as \n \n credit_card_cc_expiry_year\n \n , \n cast(null as TEXT) as \n \n credit_card_cctrans_id\n \n , \n cast(null as TEXT) as \n \n credit_card_name_on_account\n \n , \n cast(null as TEXT) as \n \n credit_card_postal_code\n \n , \n cast(null as boolean) as \n \n credit_card_process_payment\n \n , \n cast(null as TEXT) as \n \n credit_card_status\n \n , \n cast(null as TIMESTAMP) as \n \n credit_card_transaction_authorization_time\n \n , \n cast(null as TEXT) as \n \n credit_card_type\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n customer_id\n \n , \n cast(null as TEXT) as \n \n deposit_to_account_id\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n payment_method_id\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as boolean) as \n \n process_payment\n \n , \n cast(null as TEXT) as \n \n receivable_account_id\n \n , \n cast(null as TEXT) as \n \n reference_number\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as TIMESTAMP) as \n \n transaction_date\n \n , \n cast(null as TEXT) as \n \n transaction_source\n \n , \n cast(null as TEXT) as \n \n transaction_status\n \n , \n cast(null as FLOAT) as \n \n unapplied_amount\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as TEXT) as receivable_account_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__estimate_line_tmp')),\n staging_columns=get_estimate_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate_line.sql", "original_file_path": "models/stg_quickbooks__estimate_line.sql", "name": "stg_quickbooks__estimate_line", "alias": "stg_quickbooks__estimate_line", "checksum": {"name": "sha256", "checksum": "08e406854edfa3b633a1c7b434b2ee9e010a4e6c1bc49de7a37ef44c8d277451"}, "tags": [], "refs": [["stg_quickbooks__estimate_line_tmp"], ["stg_quickbooks__estimate_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Reference to the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.765707, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_id\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n bundle_id\n \n , \n cast(null as FLOAT) as \n \n bundle_quantity\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TIMESTAMP) as \n \n description_service_date\n \n , \n cast(null as TEXT) as \n \n description_tax_code_id\n \n , \n cast(null as TEXT) as \n \n discount_account_id\n \n , \n cast(null as TEXT) as \n \n discount_class_id\n \n , \n cast(null as FLOAT) as \n \n discount_discount_percent\n \n , \n cast(null as boolean) as \n \n discount_percent_based\n \n , \n cast(null as TEXT) as \n \n discount_tax_code_id\n \n , \n cast(null as TEXT) as \n \n estimate_id\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n item_id\n \n , \n cast(null as FLOAT) as \n \n quantity\n \n , \n cast(null as TEXT) as \n \n sales_item_account_id\n \n , \n cast(null as TEXT) as \n \n sales_item_class_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_discount_amount\n \n , \n cast(null as FLOAT) as \n \n sales_item_discount_rate\n \n , \n cast(null as TEXT) as \n \n sales_item_item_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_quantity\n \n , \n cast(null as TIMESTAMP) as \n \n sales_item_service_date\n \n , \n cast(null as TEXT) as \n \n sales_item_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n sales_item_unit_price\n \n , \n cast(null as TEXT) as \n \n sub_total_item_id\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as TEXT) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_linked_txn_tmp')),\n staging_columns=get_bill_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_linked_txn.sql", "original_file_path": "models/stg_quickbooks__bill_linked_txn.sql", "name": "stg_quickbooks__bill_linked_txn", "alias": "stg_quickbooks__bill_linked_txn", "checksum": {"name": "sha256", "checksum": "aa0410b4e6baafc2e21269e6857ef88e84961b061e5007b0a7bb117c314f682d"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The Unique identifier of the bill payment id record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.7324312, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n bill_id\n \n , \n cast(null as TEXT) as \n \n bill_payment_id\n \n , \n cast(null as TEXT) as \n \n index\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(bill_payment_id as TEXT) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__address_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__address_tmp')),\n staging_columns=get_address_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__address.sql", "original_file_path": "models/stg_quickbooks__address.sql", "name": "stg_quickbooks__address", "alias": "stg_quickbooks__address", "checksum": {"name": "sha256", "checksum": "df30cdfedd8bc9f3eb2e7e7e62f55f3c1d4e1ac0a53012e4e2b567c8d4f34d63"}, "tags": [], "refs": [["stg_quickbooks__address_tmp"], ["stg_quickbooks__address_tmp"]], "sources": [], "metrics": [], "description": "Table containing address details.", "columns": {"address_id": {"name": "address_id", "description": "Unique identifier for an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_1": {"name": "address_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_2": {"name": "address_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__address.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.728127, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n city\n \n , \n cast(null as TEXT) as \n \n country\n \n , \n cast(null as TEXT) as \n \n country_sub_division_code\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n latitude\n \n , \n cast(null as TEXT) as \n \n line_1\n \n , \n cast(null as TEXT) as \n \n line_2\n \n , \n cast(null as TEXT) as \n \n line_3\n \n , \n cast(null as TEXT) as \n \n line_4\n \n , \n cast(null as TEXT) as \n \n line_5\n \n , \n cast(null as TEXT) as \n \n longitude\n \n , \n cast(null as TEXT) as \n \n postal_code\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_tmp')),\n staging_columns=get_bill_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill.sql", "original_file_path": "models/stg_quickbooks__bill.sql", "name": "stg_quickbooks__bill", "alias": "stg_quickbooks__bill", "checksum": {"name": "sha256", "checksum": "fc4dc80f5295a1755ea41bcfd621db97343c27e09c1646d98c1d04c2cc30f418"}, "tags": [], "refs": [["stg_quickbooks__bill_tmp"], ["stg_quickbooks__bill_tmp"]], "sources": [], "metrics": [], "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of all bill line items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id of the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.740468, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as FLOAT) as \n \n balance\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n doc_number\n \n , \n cast(null as date) as \n \n due_date\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as TEXT) as \n \n global_tax_calculation\n \n , \n cast(null as FLOAT) as \n \n home_balance\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n payable_account_id\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as TEXT) as \n \n sales_term_id\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as date) as \n \n transaction_date\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n cast(null as TEXT) as \n \n vendor_id\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as TEXT) as bill_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as TEXT) as payable_account_id,\n total_amount,\n cast(vendor_id as TEXT) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bill_line_tmp')),\n staging_columns=get_bill_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_line.sql", "original_file_path": "models/stg_quickbooks__bill_line.sql", "name": "stg_quickbooks__bill_line", "alias": "stg_quickbooks__bill_line", "checksum": {"name": "sha256", "checksum": "d541cef41b0a6505a9ac44d9317a77d9b6addf43cb083219fb9c92a2c793f401"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "The Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The id of the account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.731345, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_expense_account_id\n \n , \n cast(null as TEXT) as \n \n account_expense_billable_status\n \n , \n cast(null as TEXT) as \n \n account_expense_class_id\n \n , \n cast(null as TEXT) as \n \n account_expense_customer_id\n \n , \n cast(null as FLOAT) as \n \n account_expense_tax_amount\n \n , \n cast(null as TEXT) as \n \n account_expense_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n bill_id\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n item_expense_billable_status\n \n , \n cast(null as TEXT) as \n \n item_expense_class_id\n \n , \n cast(null as TEXT) as \n \n item_expense_customer_id\n \n , \n cast(null as TEXT) as \n \n item_expense_item_id\n \n , \n cast(null as FLOAT) as \n \n item_expense_quantity\n \n , \n cast(null as TEXT) as \n \n item_expense_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n item_expense_unit_price\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__journal_entry_tmp')),\n staging_columns=get_journal_entry_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry.sql", "original_file_path": "models/stg_quickbooks__journal_entry.sql", "name": "stg_quickbooks__journal_entry", "alias": "stg_quickbooks__journal_entry", "checksum": {"name": "sha256", "checksum": "4f62753998ceb5f5764a9fba39a9fbd9fb87a16abf35090e50f2dd18eac58346"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_tmp"], ["stg_quickbooks__journal_entry_tmp"]], "sources": [], "metrics": [], "description": "Table containing journal entry transactions.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the journal entry was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.785912, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select *\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n adjustment\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n doc_number\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as FLOAT) as \n \n home_total_amount\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as FLOAT) as \n \n total_tax\n \n , \n cast(null as date) as \n \n transaction_date\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as TEXT) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__refund_receipt_tmp')),\n staging_columns=get_refund_receipt_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt.sql", "original_file_path": "models/stg_quickbooks__refund_receipt.sql", "name": "stg_quickbooks__refund_receipt", "alias": "stg_quickbooks__refund_receipt", "checksum": {"name": "sha256", "checksum": "5cd054048b45bd2245f33de53658e58c23bf8eabb8e4cfdcc096c915a977a834"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_tmp"], ["stg_quickbooks__refund_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account from which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.809653, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n apply_tax_after_discount\n \n , \n cast(null as FLOAT) as \n \n balance\n \n , \n cast(null as TEXT) as \n \n bill_email\n \n , \n cast(null as TEXT) as \n \n billing_address_id\n \n , \n cast(null as TEXT) as \n \n check_payment_account_number\n \n , \n cast(null as TEXT) as \n \n check_payment_bank_name\n \n , \n cast(null as TEXT) as \n \n check_payment_check_number\n \n , \n cast(null as TEXT) as \n \n check_payment_name_on_account\n \n , \n cast(null as TEXT) as \n \n check_payment_status\n \n , \n cast(null as TEXT) as \n \n class_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as FLOAT) as \n \n credit_card_amount\n \n , \n cast(null as TEXT) as \n \n credit_card_auth_code\n \n , \n cast(null as TEXT) as \n \n credit_card_billing_address_street\n \n , \n cast(null as TEXT) as \n \n credit_card_cc_expiry_month\n \n , \n cast(null as TEXT) as \n \n credit_card_cc_expiry_year\n \n , \n cast(null as TEXT) as \n \n credit_card_cctrans_id\n \n , \n cast(null as TEXT) as \n \n credit_card_name_on_account\n \n , \n cast(null as TEXT) as \n \n credit_card_postal_code\n \n , \n cast(null as boolean) as \n \n credit_card_process_payment\n \n , \n cast(null as TEXT) as \n \n credit_card_status\n \n , \n cast(null as date) as \n \n credit_card_transaction_authorization_time\n \n , \n cast(null as TEXT) as \n \n credit_card_type\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n customer_id\n \n , \n cast(null as TEXT) as \n \n customer_memo\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n deposit_to_account_id\n \n , \n cast(null as TEXT) as \n \n doc_number\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as TEXT) as \n \n global_tax_calculation\n \n , \n cast(null as FLOAT) as \n \n home_balance\n \n , \n cast(null as FLOAT) as \n \n home_total_amount\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n payment_method_id\n \n , \n cast(null as TEXT) as \n \n payment_reference_number\n \n , \n cast(null as TEXT) as \n \n payment_type\n \n , \n cast(null as TEXT) as \n \n print_status\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as TEXT) as \n \n shipping_address_id\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TEXT) as \n \n tax_code_id\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as FLOAT) as \n \n total_tax\n \n , \n cast(null as date) as \n \n transaction_date\n \n , \n cast(null as TEXT) as \n \n transaction_source\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as refund_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(class_id as TEXT) as class_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_line_tmp')),\n staging_columns=get_deposit_line_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt.type_string() }}) as deposit_account_id,\n cast(deposit_class_id as {{ dbt.type_string() }}) as deposit_class_id,\n cast(deposit_customer_id as {{ dbt.type_string() }}) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit_line.sql", "original_file_path": "models/stg_quickbooks__deposit_line.sql", "name": "stg_quickbooks__deposit_line", "alias": "stg_quickbooks__deposit_line", "checksum": {"name": "sha256", "checksum": "f2f457f0503a22ec51d606aab2156f7534091b31840927c84bb5fc7a2d34c838"}, "tags": [], "refs": [["stg_quickbooks__deposit_line_tmp"], ["stg_quickbooks__deposit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class which the deposit line record is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "Account id of the account which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Customer id of the customer which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.757463, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n bill_id\n \n , \n cast(null as TEXT) as \n \n deposit_account_id\n \n , \n cast(null as TEXT) as \n \n deposit_check_number\n \n , \n cast(null as TEXT) as \n \n deposit_class_id\n \n , \n cast(null as TEXT) as \n \n deposit_customer_id\n \n , \n cast(null as TEXT) as \n \n deposit_id\n \n , \n cast(null as TEXT) as \n \n deposit_payment_method_id\n \n , \n cast(null as TEXT) as \n \n deposit_tax_applicable_on\n \n , \n cast(null as TEXT) as \n \n deposit_tax_code_id\n \n , \n cast(null as TEXT) as \n \n deposit_transaction_type\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TEXT) as \n \n detail_type\n \n , \n cast(null as TEXT) as \n \n expense_id\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n invoice_id\n \n , \n cast(null as TEXT) as \n \n journal_entry_id\n \n , \n cast(null as TEXT) as \n \n payment_id\n \n , \n cast(null as TEXT) as \n \n purchase_id\n \n , \n cast(null as TEXT) as \n \n refund_receipt_id\n \n , \n cast(null as TEXT) as \n \n sales_receipt_id\n \n , \n cast(null as TEXT) as \n \n transfer_id\n \n , \n cast(null as TEXT) as \n \n vendor_credit_id\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as TEXT) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as TEXT) as deposit_account_id,\n cast(deposit_class_id as TEXT) as deposit_class_id,\n cast(deposit_customer_id as TEXT) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_tmp')),\n staging_columns=get_vendor_credit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit.sql", "original_file_path": "models/stg_quickbooks__vendor_credit.sql", "name": "stg_quickbooks__vendor_credit", "alias": "stg_quickbooks__vendor_credit", "checksum": {"name": "sha256", "checksum": "bd2e5efc709f19666acabd4fdd2483c1013d05078dca5ff4ffb8a1975a4a9978"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_tmp"], ["stg_quickbooks__vendor_credit_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the vendor credit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Specifies to which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.824037, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as FLOAT) as \n \n balance\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n doc_number\n \n , \n cast(null as FLOAT) as \n \n exchange_rate\n \n , \n cast(null as TEXT) as \n \n global_tax_calculation\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n payable_account_id\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as date) as \n \n transaction_date\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n cast(null as TEXT) as \n \n vendor_id\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_credit_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as TEXT) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__vendor_credit_line_tmp')),\n staging_columns=get_vendor_credit_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit_line.sql", "original_file_path": "models/stg_quickbooks__vendor_credit_line.sql", "name": "stg_quickbooks__vendor_credit_line", "alias": "stg_quickbooks__vendor_credit_line", "checksum": {"name": "sha256", "checksum": "44764c7cbfb920e4b4c187299856d960ffdb9408d2e8dabc29c326c4c5e9f3c9"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line_tmp"], ["stg_quickbooks__vendor_credit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": [], "test": ["not_null"]}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account credited for the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Customer reference for the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Customer reference for the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.8210719, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_expense_account_id\n \n , \n cast(null as TEXT) as \n \n account_expense_billable_status\n \n , \n cast(null as TEXT) as \n \n account_expense_class_id\n \n , \n cast(null as TEXT) as \n \n account_expense_customer_id\n \n , \n cast(null as FLOAT) as \n \n account_expense_tax_amount\n \n , \n cast(null as TEXT) as \n \n account_expense_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n amount\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TEXT) as \n \n index\n \n , \n cast(null as TEXT) as \n \n item_expense_billable_status\n \n , \n cast(null as TEXT) as \n \n item_expense_class_id\n \n , \n cast(null as TEXT) as \n \n item_expense_customer_id\n \n , \n cast(null as TEXT) as \n \n item_expense_item_id\n \n , \n cast(null as TEXT) as \n \n item_expense_quantity\n \n , \n cast(null as TEXT) as \n \n item_expense_tax_code_id\n \n , \n cast(null as FLOAT) as \n \n item_expense_unit_price\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as TEXT) as \n \n vendor_credit_id\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as TEXT) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__deposit_tmp')),\n staging_columns=get_deposit_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit.sql", "original_file_path": "models/stg_quickbooks__deposit.sql", "name": "stg_quickbooks__deposit", "alias": "stg_quickbooks__deposit", "checksum": {"name": "sha256", "checksum": "3a8f91dd22dbe918fccedae73ae5a3e2db38a6344ac0a39d885ef49b149c89ce"}, "tags": [], "refs": [["stg_quickbooks__deposit_tmp"], ["stg_quickbooks__deposit_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifies the account to be used for this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the deposit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1676416401.759541, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_id\n \n , \n cast(null as TEXT) as \n \n cash_back_account_id\n \n , \n cast(null as FLOAT) as \n \n cash_back_amount\n \n , \n cast(null as TEXT) as \n \n cash_back_memo\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n global_tax_calculation\n \n , \n cast(null as FLOAT) as \n \n home_total_amount\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n private_note\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as FLOAT) as \n \n total_amount\n \n , \n cast(null as date) as \n \n transaction_date\n \n , \n cast(null as TEXT) as \n \n transaction_source\n \n , \n cast(null as TEXT) as \n \n transaction_status\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as deposit_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__item_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__item_tmp')),\n staging_columns=get_item_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt.type_string() }}) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as {{ dbt.type_string() }}) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__item.sql", "original_file_path": "models/stg_quickbooks__item.sql", "name": "stg_quickbooks__item", "alias": "stg_quickbooks__item", "checksum": {"name": "sha256", "checksum": "049dfdf58d6ee3ac495bb7f41562a880562a55f818a0fdfda3a14574f8dfc7ce"}, "tags": [], "refs": [["stg_quickbooks__item_tmp"], ["stg_quickbooks__item_tmp"]], "sources": [], "metrics": [], "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"item_id": {"name": "item_id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the item was created within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the posting account, that is, the account that records the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the Inventory Asset account that tracks the current value of the inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676416401.780471, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n active\n \n , \n cast(null as TEXT) as \n \n asset_account_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TEXT) as \n \n expense_account_id\n \n , \n cast(null as TEXT) as \n \n fully_qualified_name\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as TEXT) as \n \n income_account_id\n \n , \n cast(null as date) as \n \n inventory_start_date\n \n , \n cast(null as TEXT) as \n \n level\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n parent_item_id\n \n , \n cast(null as FLOAT) as \n \n purchase_cost\n \n , \n cast(null as TEXT) as \n \n purchase_description\n \n , \n cast(null as TEXT) as \n \n purchase_tax_code_id\n \n , \n cast(null as boolean) as \n \n purchase_tax_included\n \n , \n cast(null as FLOAT) as \n \n quantity_on_hand\n \n , \n cast(null as TEXT) as \n \n sales_tax_code_id\n \n , \n cast(null as boolean) as \n \n sales_tax_included\n \n , \n cast(null as TEXT) as \n \n stock_keeping_unit\n \n , \n cast(null as boolean) as \n \n sub_item\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as boolean) as \n \n taxable\n \n , \n cast(null as boolean) as \n \n track_quantity_on_hand\n \n , \n cast(null as TEXT) as \n \n type\n \n , \n cast(null as FLOAT) as \n \n unit_price\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as TEXT) as income_account_id,\n cast(asset_account_id as TEXT) as asset_account_id,\n cast(expense_account_id as TEXT) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as TEXT) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__customer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__customer_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n \n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__customer.sql", "original_file_path": "models/stg_quickbooks__customer.sql", "name": "stg_quickbooks__customer", "alias": "stg_quickbooks__customer", "checksum": {"name": "sha256", "checksum": "b896108565ae7c6d917878e5c8c6dd77f3fa89e61e4bda773ab8f06dc77ad7f3"}, "tags": [], "refs": [["stg_quickbooks__customer_tmp"], ["stg_quickbooks__customer_tmp"]], "sources": [], "metrics": [], "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__customer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1676416401.75366, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n active\n \n , \n cast(null as TEXT) as \n \n alternate_phone_number\n \n , \n cast(null as TEXT) as \n \n ar_account_id\n \n , \n cast(null as FLOAT) as \n \n balance\n \n , \n cast(null as FLOAT) as \n \n balance_with_jobs\n \n , \n cast(null as TEXT) as \n \n bill_address_id\n \n , \n cast(null as boolean) as \n \n bill_with_parent\n \n , \n cast(null as TEXT) as \n \n company_name\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency_id\n \n , \n cast(null as TEXT) as \n \n default_tax_code_id\n \n , \n cast(null as TEXT) as \n \n display_name\n \n , \n cast(null as TEXT) as \n \n email\n \n , \n cast(null as TEXT) as \n \n family_name\n \n , \n cast(null as TEXT) as \n \n fax_number\n \n , \n cast(null as TEXT) as \n \n fully_qualified_name\n \n , \n cast(null as TEXT) as \n \n given_name\n \n , \n cast(null as TEXT) as \n \n id\n \n , \n cast(null as boolean) as \n \n job\n \n , \n cast(null as TEXT) as \n \n level\n \n , \n cast(null as TEXT) as \n \n middle_name\n \n , \n cast(null as TEXT) as \n \n mobile_number\n \n , \n cast(null as TEXT) as \n \n notes\n \n , \n cast(null as date) as \n \n open_balance_date\n \n , \n cast(null as TEXT) as \n \n parent_customer_id\n \n , \n cast(null as TEXT) as \n \n payment_method_id\n \n , \n cast(null as TEXT) as \n \n phone_number\n \n , \n cast(null as TEXT) as \n \n preferred_delivery_method\n \n , \n cast(null as TEXT) as \n \n print_on_check_name\n \n , \n cast(null as TEXT) as \n \n resale_number\n \n , \n cast(null as TEXT) as \n \n sales_term_id\n \n , \n cast(null as TEXT) as \n \n shipping_address_id\n \n , \n cast(null as TEXT) as \n \n suffix\n \n , \n cast(null as TEXT) as \n \n sync_token\n \n , \n cast(null as TEXT) as \n \n tax_exemption_reason_id\n \n , \n cast(null as boolean) as \n \n taxable\n \n , \n cast(null as TEXT) as \n \n title\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n cast(null as TEXT) as \n \n website\n \n \n\n\n \n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable,\n source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "name": "stg_quickbooks__vendor_credit_tmp", "alias": "stg_quickbooks__vendor_credit_tmp", "checksum": {"name": "sha256", "checksum": "135d5b0865e271c5d29187680f97b226b40b1c6c1e618f9d0818f0b7122dcfe6"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.328154, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "name": "stg_quickbooks__refund_receipt_line_tmp", "alias": "stg_quickbooks__refund_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "b35b79d236200ea1e2d71df28d1d32dbc3d8ce93eb0c97fc2d502997e133055e"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.3470888, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_line_tmp.sql", "name": "stg_quickbooks__estimate_line_tmp", "alias": "stg_quickbooks__estimate_line_tmp", "checksum": {"name": "sha256", "checksum": "e6b43f9598030c138d67898959d3bcc06d4b571b16bd790974c5bda4e90dfe18"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.353467, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "name": "stg_quickbooks__credit_memo_line_tmp", "alias": "stg_quickbooks__credit_memo_line_tmp", "checksum": {"name": "sha256", "checksum": "877429c46bb2ccc5558c8577eda2444270a82e5e7717aec418fba450db743924"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.36562, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_tmp.sql", "name": "stg_quickbooks__journal_entry_tmp", "alias": "stg_quickbooks__journal_entry_tmp", "checksum": {"name": "sha256", "checksum": "4cc1a32910c8e5255f3d3bbe4578fb9f562e3f2fb56eff69e22f7f69b11fa32e"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.3717031, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line_bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line_bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "name": "stg_quickbooks__invoice_line_bundle_tmp", "alias": "stg_quickbooks__invoice_line_bundle_tmp", "checksum": {"name": "sha256", "checksum": "a2dc8302a76014fdede73acb185944cb3901457f568da00b9400dbadd61a4781"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line_bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.377931, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_tmp.sql", "name": "stg_quickbooks__payment_tmp", "alias": "stg_quickbooks__payment_tmp", "checksum": {"name": "sha256", "checksum": "afe62d4646d63e7fc44dbe73ad04eb3af6f94e1fd98953cfdd5a5fae5464818f"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.3852658, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_tmp.sql", "name": "stg_quickbooks__invoice_line_tmp", "alias": "stg_quickbooks__invoice_line_tmp", "checksum": {"name": "sha256", "checksum": "ec89045532e817aed8e8dc0a09e66f53a2c88aba038c7dcbbb51f6875d044f5d"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.391232, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_line_tmp.sql", "name": "stg_quickbooks__deposit_line_tmp", "alias": "stg_quickbooks__deposit_line_tmp", "checksum": {"name": "sha256", "checksum": "2a560b4173366349cc88aa5c091b2f10c61f60c0bfe73b3b0f673877627002a4"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.3970811, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.customer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='customer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='customer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__customer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__customer_tmp.sql", "name": "stg_quickbooks__customer_tmp", "alias": "stg_quickbooks__customer_tmp", "checksum": {"name": "sha256", "checksum": "2125a8e00af7bd53a1c2d0b414a756fa128457d4ecda78c77f813ba133a81325"}, "tags": [], "refs": [], "sources": [["quickbooks", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__customer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676416401.403327, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_line_tmp.sql", "name": "stg_quickbooks__bill_line_tmp", "alias": "stg_quickbooks__bill_line_tmp", "checksum": {"name": "sha256", "checksum": "8f06919fa5048f09e127332ef0675a7fac11b3d0787e6672612010db4a7f6193"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.4089768, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__item_tmp.sql", "name": "stg_quickbooks__item_tmp", "alias": "stg_quickbooks__item_tmp", "checksum": {"name": "sha256", "checksum": "0db4c37e6bea881ee6f85348bc069b1ba7d74ce4fd550ed0ac643d4ef780ab79"}, "tags": [], "refs": [], "sources": [["quickbooks", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676416401.414836, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='account', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='account',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__account_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__account_tmp.sql", "name": "stg_quickbooks__account_tmp", "alias": "stg_quickbooks__account_tmp", "checksum": {"name": "sha256", "checksum": "1157f7c518bf6f5e15bd9080fe829b06b7e3ddf59ea3e3a06164fe453e0def85"}, "tags": [], "refs": [], "sources": [["quickbooks", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__account_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676416401.421332, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"account_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "raw_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "name": "stg_quickbooks__vendor_credit_line_tmp", "alias": "stg_quickbooks__vendor_credit_line_tmp", "checksum": {"name": "sha256", "checksum": "38b9e05b27c7db52aa41fa740caa437895743d5de562b476917f75b55277debc"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.433407, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.department"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "raw_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='department', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='department',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__department_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__department_tmp.sql", "name": "stg_quickbooks__department_tmp", "alias": "stg_quickbooks__department_tmp", "checksum": {"name": "sha256", "checksum": "ea310c765f23c51e6a2ef7bef84749f2a3fa89ac06b768173788080096354a00"}, "tags": [], "refs": [], "sources": [["quickbooks", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__department_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.439239, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"department_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_tmp.sql", "name": "stg_quickbooks__bundle_tmp", "alias": "stg_quickbooks__bundle_tmp", "checksum": {"name": "sha256", "checksum": "722d0a1b955a8c123522a87f6b97c8770d00365b98d1fc057d1724e9c5c06667"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.444911, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "raw_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bundle_item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle_item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_item_tmp.sql", "name": "stg_quickbooks__bundle_item_tmp", "alias": "stg_quickbooks__bundle_item_tmp", "checksum": {"name": "sha256", "checksum": "29e60e9dfb0da56786a41a51e1f1d441ae47d0e7b43727f8a31af463d6daf588"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle_item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.451006, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "name": "stg_quickbooks__bill_payment_line_tmp", "alias": "stg_quickbooks__bill_payment_line_tmp", "checksum": {"name": "sha256", "checksum": "914efeefeb70efc2b64e7bae87b298f93f419a08b170e06c3efb825f8eca1968"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.464333, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "raw_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='estimate', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_tmp.sql", "name": "stg_quickbooks__estimate_tmp", "alias": "stg_quickbooks__estimate_tmp", "checksum": {"name": "sha256", "checksum": "bd7a335748a13aae584ae7ee6a45b8565299cf7a48a0495be863920c797d83c6"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.469944, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_tmp.sql", "name": "stg_quickbooks__purchase_tmp", "alias": "stg_quickbooks__purchase_tmp", "checksum": {"name": "sha256", "checksum": "1ad34ab2fb967805e5387b4dcf01716431d1008430faee53027f043466c3896d"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676416401.4759328, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "raw_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_tmp.sql", "name": "stg_quickbooks__credit_memo_tmp", "alias": "stg_quickbooks__credit_memo_tmp", "checksum": {"name": "sha256", "checksum": "1bbda612f739f980fcf68562c4efbd39bbae1e1a37713c7bd5c4deecc24660f0"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.4810612, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "raw_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_tmp.sql", "name": "stg_quickbooks__bill_tmp", "alias": "stg_quickbooks__bill_tmp", "checksum": {"name": "sha256", "checksum": "b579ba85c94cfa32fdb6fe9e65c2ee8e804c21417af340278c7370a7b9a31f2c"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.487339, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "raw_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='transfer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='transfer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__transfer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__transfer_tmp.sql", "name": "stg_quickbooks__transfer_tmp", "alias": "stg_quickbooks__transfer_tmp", "checksum": {"name": "sha256", "checksum": "e46216a5c817a4e27af2ac9a936e7e21dc89127c20a0775d7e21c63cbdb4e173"}, "tags": [], "refs": [], "sources": [["quickbooks", "transfer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__transfer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.493936, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='vendor', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_tmp.sql", "name": "stg_quickbooks__vendor_tmp", "alias": "stg_quickbooks__vendor_tmp", "checksum": {"name": "sha256", "checksum": "e106f714c2f307d3d50e99e8bd61cd4c03e96002006ce67191e182f2e1b19f7a"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676416401.499768, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_line_tmp.sql", "name": "stg_quickbooks__purchase_line_tmp", "alias": "stg_quickbooks__purchase_line_tmp", "checksum": {"name": "sha256", "checksum": "39c7787a6481961b9d80bf3173afd5ece106fdb67bad2edbd69d436c6bbc3aca"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1676416401.5051048, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.address"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "raw_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='address', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='address',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__address_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__address_tmp.sql", "name": "stg_quickbooks__address_tmp", "alias": "stg_quickbooks__address_tmp", "checksum": {"name": "sha256", "checksum": "39a9820afa24c94b220f35fa72a0452806f5cdb828e5eb70583cded4ceb71454"}, "tags": [], "refs": [], "sources": [["quickbooks", "address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.510387, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"address_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "raw_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_line_tmp.sql", "name": "stg_quickbooks__payment_line_tmp", "alias": "stg_quickbooks__payment_line_tmp", "checksum": {"name": "sha256", "checksum": "333d6ce9e2621c99b011bfbb668c38c1fe20d45a9e155278371ad1c5c19fffa3"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.5164921, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "raw_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "name": "stg_quickbooks__refund_receipt_tmp", "alias": "stg_quickbooks__refund_receipt_tmp", "checksum": {"name": "sha256", "checksum": "274dbd883a2adaf7559f8bc8812a558a95b52329f18218fe5494c63b7abcf7a5"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.523247, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "name": "stg_quickbooks__sales_receipt_tmp", "alias": "stg_quickbooks__sales_receipt_tmp", "checksum": {"name": "sha256", "checksum": "bb64ce4afbe0e70f70d7c9dae8a57423d5ee7dc2326107fa4c5d4371ca911fce"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.529349, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "raw_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_tmp.sql", "name": "stg_quickbooks__bill_payment_tmp", "alias": "stg_quickbooks__bill_payment_tmp", "checksum": {"name": "sha256", "checksum": "f956078b3ec8d833f517f431c67509fe75f494b11a6fa4a735b85d232453dba4"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.535294, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "raw_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "name": "stg_quickbooks__journal_entry_line_tmp", "alias": "stg_quickbooks__journal_entry_line_tmp", "checksum": {"name": "sha256", "checksum": "bcba66ad0358646e9993b39ecdd17c69130874858cb027ed198364bb77a3d283"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.541238, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "raw_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='deposit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_tmp.sql", "name": "stg_quickbooks__deposit_tmp", "alias": "stg_quickbooks__deposit_tmp", "checksum": {"name": "sha256", "checksum": "e1f40c890b39fe0dd1bcec03c90b403c4e77015c805426b90ca3c3b1c93eb3b2"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.546962, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "raw_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='bill_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "name": "stg_quickbooks__bill_linked_txn_tmp", "alias": "stg_quickbooks__bill_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "2583068246d6617f1e99a3b11589211fb7cb90f66035526cee17be299ba826ec"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.55279, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "name": "stg_quickbooks__invoice_linked_txn_tmp", "alias": "stg_quickbooks__invoice_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "813acd5c2445c8886b2aa20afb05c5dc8165b9d38b3081b12a879e67abc67520"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.559881, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "name": "stg_quickbooks__sales_receipt_line_tmp", "alias": "stg_quickbooks__sales_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "87037987bd00e48e0a7fe6300511bcf7c80031e6fe4ba3b77902a7baa5752132"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.59969, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='invoice', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_tmp.sql", "name": "stg_quickbooks__invoice_tmp", "alias": "stg_quickbooks__invoice_tmp", "checksum": {"name": "sha256", "checksum": "c901088fa713bc1e59f7299c7c7d6ac7aea71b7c97e5a2821fd8efd33214bfc1"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1676416401.611089, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "estimate_id"], "model": "{{ get_where_subquery(ref('quickbooks__ap_ar_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__ap_ar_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id", "alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__ap_ar_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f7241a6be66aca2842f13a9443c66e5d"}, "created_at": 1676416401.682286, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, estimate_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__ap_ar_enhanced\"\n group by transaction_id, source_relation, estimate_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__ap_ar_enhanced"}, "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "unique_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "unique_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "unique_quickbooks__cash_flow_statement_account_unique_id", "alias": "unique_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/unique_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.692662, "compiled_code": "\n \n \n\nselect\n account_unique_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is not null\ngroup by account_unique_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_unique_id", "model": "{{ get_where_subquery(ref('quickbooks__cash_flow_statement')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__cash_flow_statement"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "not_null_quickbooks__cash_flow_statement_account_unique_id"], "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "original_file_path": "models/quickbooks.yml", "name": "not_null_quickbooks__cash_flow_statement_account_unique_id", "alias": "not_null_quickbooks__cash_flow_statement_account_unique_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__cash_flow_statement"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/not_null_quickbooks__cash_flow_statement_account_unique_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.693932, "compiled_code": "\n \n \n\n\n\nselect account_unique_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__cash_flow_statement\"\nwhere account_unique_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_unique_id", "file_key_name": "models.quickbooks__cash_flow_statement"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "source_relation", "transaction_line_id", "item_id"], "model": "{{ get_where_subquery(ref('quickbooks__expenses_sales_enhanced')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__expenses_sales_enhanced"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id", "alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__expenses_sales_enhanced"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_302bbf3cbe4c6018a8cb1a4aa5e77938"}, "created_at": 1676416401.695217, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, source_relation, transaction_line_id, item_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__expenses_sales_enhanced\"\n group by transaction_id, source_relation, transaction_line_id, item_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__expenses_sales_enhanced"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["unique_id", "source_relation"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation", "alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_99c6e694daa4385530f4a87bfc98b0b0"}, "created_at": 1676416401.69992, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n unique_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger\"\n group by unique_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "period_first_day"], "model": "{{ get_where_subquery(ref('quickbooks__general_ledger_by_period')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__general_ledger_by_period"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day", "alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__general_ledger_by_period"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0a48dd44c186da7424ff159ccab84782"}, "created_at": 1676416401.703586, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, period_first_day\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__general_ledger_by_period\"\n group by account_id, class_id, source_relation, period_first_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__general_ledger_by_period"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "class_id", "source_relation", "calendar_date"], "model": "{{ get_where_subquery(ref('quickbooks__profit_and_loss')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__profit_and_loss"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date", "alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__profit_and_loss"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_38cb2bb3b2674af9b16f21b4893f2381"}, "created_at": 1676416401.708072, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, class_id, source_relation, calendar_date\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__profit_and_loss\"\n group by account_id, class_id, source_relation, calendar_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__profit_and_loss"}, "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation", "calendar_date", "class_id"], "model": "{{ get_where_subquery(ref('quickbooks__balance_sheet')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks.quickbooks__balance_sheet"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks", "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id"], "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827\") }}", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "original_file_path": "models/quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id", "alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["quickbooks__balance_sheet"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks/models/quickbooks.yml/dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d31e4df682266e2f02d9bd2841445827"}, "created_at": 1676416401.712671, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation, calendar_date, class_id\n from \"postgres\".\"quickbooks_integration_tests_quickbooks\".\"quickbooks__balance_sheet\"\n group by account_id, source_relation, calendar_date, class_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.quickbooks__balance_sheet"}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__account_account_id", "alias": "not_null_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.8272629, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Asset", "Equity", "Expense", "Liability", "Revenue"], "column_name": "classification", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9"}, "created_at": 1676416401.828973, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n classification as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by classification\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Asset','Equity','Expense','Liability','Revenue'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "classification", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29"}, "created_at": 1676416401.836617, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by account_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "address_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__address_address_id", "alias": "not_null_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__address_address_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.840449, "compiled_code": "\n \n \n\n\n\nselect address_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\nwhere address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id", "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["address_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation", "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772"}, "created_at": 1676416401.841708, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n address_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n group by address_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_line_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_line_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_line_bill_id", "alias": "not_null_stg_quickbooks__bill_line_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_line_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.8451898, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1"}, "created_at": 1676416401.8466198, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n group by bill_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.850448, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.851686, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_line_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.853091, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614"}, "created_at": 1676416401.854371, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n group by bill_payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.8582, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec"}, "created_at": 1676416401.8594491, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n group by bill_payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_bill_id", "alias": "not_null_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.8629062, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation", "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4"}, "created_at": 1676416401.864147, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n group by bill_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle_item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_item_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_item_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_item_bundle_id", "alias": "not_null_stg_quickbooks__bundle_item_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle_item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_item_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.8675892, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle_item"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_bundle_id", "alias": "not_null_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.868809, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bundle_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation", "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727"}, "created_at": 1676416401.8701959, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bundle_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n group by bundle_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_line_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.873605, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858"}, "created_at": 1676416401.8752, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n group by credit_memo_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.8788512, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation", "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083"}, "created_at": 1676416401.880109, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n group by credit_memo_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__customer_customer_id", "alias": "not_null_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__customer_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.8838642, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation", "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a"}, "created_at": 1676416401.8851042, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n group by customer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_line_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_line_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_line_deposit_id", "alias": "not_null_stg_quickbooks__deposit_line_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_line_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.888576, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b"}, "created_at": 1676416401.889822, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n group by deposit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_deposit_id", "alias": "not_null_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.893492, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation", "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb"}, "created_at": 1676416401.894752, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n group by deposit_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_estimate_id", "alias": "not_null_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.898721, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation", "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68"}, "created_at": 1676416401.9000762, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n group by estimate_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_line_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_line_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_line_estimate_id", "alias": "not_null_stg_quickbooks__estimate_line_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_line_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.903759, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a"}, "created_at": 1676416401.9050329, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\n group by estimate_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "alias": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.908722, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.909962, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0"}, "created_at": 1676416401.911375, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n group by invoice_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.9151208, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "invoice_line_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation", "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a"}, "created_at": 1676416401.916391, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, invoice_line_index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n group by invoice_id, index, invoice_line_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_invoice_id", "alias": "not_null_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.920228, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation", "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c"}, "created_at": 1676416401.92149, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n group by invoice_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__item_item_id", "alias": "not_null_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__item_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.9249291, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation", "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5"}, "created_at": 1676416401.9261749, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n item_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n group by item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_line_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.9296792, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Credit", "Debit"], "column_name": "posting_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55"}, "created_at": 1676416401.9309251, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n posting_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by posting_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Credit','Debit'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "posting_type", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["journal_entry_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee"}, "created_at": 1676416401.9343512, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n journal_entry_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by journal_entry_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.938397, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_line_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_line_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_line_payment_id", "alias": "not_null_stg_quickbooks__payment_line_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_line_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.93963, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625"}, "created_at": 1676416401.941037, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n group by payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_payment_id", "alias": "not_null_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.944552, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557"}, "created_at": 1676416401.9459488, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n group by payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_line_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_line_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_line_purchase_id", "alias": "not_null_stg_quickbooks__purchase_line_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_line_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.9493818, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153"}, "created_at": 1676416401.9506361, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n group by purchase_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_purchase_id", "alias": "not_null_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.9543831, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Cash", "Check", "CreditCard"], "column_name": "payment_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216"}, "created_at": 1676416401.955731, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n payment_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by payment_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Cash','Check','CreditCard'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_type", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation", "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563"}, "created_at": 1676416401.959536, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by purchase_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_line_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.9630132, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943"}, "created_at": 1676416401.964282, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_linked_txn')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1"}, "created_at": 1676416401.9679549, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.969198, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Open", "Closed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614"}, "created_at": 1676416401.9706979, "column_name": "status", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": "dbt_utils"}, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": []}, "config": {"enabled": false, "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation", "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d"}, "created_at": 1676416401.9742012, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_line_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.977663, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576"}, "created_at": 1676416401.978945, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n group by refund_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.9828029, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation", "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605"}, "created_at": 1676416401.9842649, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n group by refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.987586, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899"}, "created_at": 1676416401.989378, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n group by sales_receipt_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.993095, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation", "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d"}, "created_at": 1676416401.994357, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n group by sales_receipt_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transfer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__transfer_transfer_id", "alias": "not_null_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__transfer_transfer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416401.997877, "compiled_code": "\n \n \n\n\n\nselect transfer_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\nwhere transfer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id", "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transfer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233"}, "created_at": 1676416401.999132, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transfer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n group by transfer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_credit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b"}, "created_at": 1676416402.0026639, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_credit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n group by vendor_credit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor_credit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "alias": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416402.006326, "compiled_code": "\n \n \n\n\n\nselect vendor_credit_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\nwhere vendor_credit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id", "file_key_name": "models.stg_quickbooks__vendor_credit"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_vendor_id", "alias": "not_null_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676416402.007566, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_quickbooks__vendor"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation", "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4"}, "created_at": 1676416402.008885, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n group by vendor_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "account", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "account_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.", "columns": {"id": {"name": "id", "description": "Unique identifier of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_account": {"name": "sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"account_data\"", "created_at": 1676416402.1281579}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "address", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing address details.", "columns": {"id": {"name": "id", "description": "Unique identifier of the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_1": {"name": "line_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_2": {"name": "line_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"address_data\"", "created_at": 1676416402.128281}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_line_data\"", "created_at": 1676416402.1283798}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The \"Unique identifier of the bill payment id record.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_linked_txn_data\"", "created_at": 1676416402.128465}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_line_data\"", "created_at": 1676416402.128556}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credited bill payment. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_payment_data\"", "created_at": 1676416402.128652}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total \"Monetary amount of all bill line items.\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bill_data\"", "created_at": 1676416402.128748}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle_item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing all bundle and item combinations", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bundle and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_item_data\"", "created_at": 1676416402.12883}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"bundle_data\"", "created_at": 1676416402.1289139}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"fqn": ["quickbooks_source", "quickbooks", "credit_card_payment_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_card_payment_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_card_payment_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all credit card payment transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "The identifier of the account associated with the bank which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "The identifier of the account associated with the credit card which the payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_card_payment_txn_data\"", "created_at": 1676416402.1290061}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_line_data\"", "created_at": 1676416402.129102}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"credit_memo_data\"", "created_at": 1676416402.129199}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "customer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "customer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website url associated with the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"customer_data\"", "created_at": 1676416402.129295}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "department", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "department_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_department": {"name": "sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the Unique identifier of the parent department if sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"department_data\"", "created_at": 1676416402.129445}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class associated the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "The identifier of the account associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Reference to the customer associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_line_data\"", "created_at": 1676416402.1295328}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"id": {"name": "id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"deposit_data\"", "created_at": 1676416402.129622}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"id": {"name": "id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_data\"", "created_at": 1676416402.129807}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"estimate_line_data\"", "created_at": 1676416402.1299}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_linked_txn_data\"", "created_at": 1676416402.129983}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_data\"", "created_at": 1676416402.130097}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line_bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_bundle_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for sales on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_line_bundle_data\"", "created_at": 1676416402.130195}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"id": {"name": "id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"invoice_data\"", "created_at": 1676416402.130294}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the item within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "The identifier of the account associated with the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "The identifier of the account associated with the inventory asset that tracks its current value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "The identifier of the account associated used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"item_data\"", "created_at": 1676416402.1303911}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credited journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_line_data\"", "created_at": 1676416402.13048}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing journal entry transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjustment": {"name": "adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"journal_entry_data\"", "created_at": 1676416402.13057}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_line_data\"", "created_at": 1676416402.1306581}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"id": {"name": "id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "The identifier of the account associated with obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with the deposit to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"payment_data\"", "created_at": 1676416402.130744}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_line_data\"", "created_at": 1676416402.130831}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase expenses.", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The identifier of the account associated with the applied purchase based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_data\"", "created_at": 1676416402.130922}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase order.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_line_data\"", "created_at": 1676416402.13104}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_linked_txn_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for purchase order records to respective bill and purchase objects.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_linked_txn_data\"", "created_at": 1676416402.131119}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase orders (PO).", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_customer_type": {"name": "custom_customer_type", "description": "Custom field for customer type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "A message for the vendor. This text appears on the purchase order object sent to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction. This note does not appear on the purchase order to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"purchase_order_data\"", "created_at": 1676416402.131223}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_line_data\"", "created_at": 1676416402.1313112}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"id": {"name": "id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the refund receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"refund_receipt_data\"", "created_at": 1676416402.1313999}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "The identifier of the account associated with income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_line_data\"", "created_at": 1676416402.1314912}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"id": {"name": "id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with where payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated sales receipt to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"sales_receipt_data\"", "created_at": 1676416402.1315799}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "transfer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "transfer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"id": {"name": "id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "The identifier of the account associated with where the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "The identifier of the account associated with where the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"transfer_data\"", "created_at": 1676416402.131661}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The identifier of the account associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Reference to the customer associated with the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer associated with the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_line_data\"", "created_at": 1676416402.131752}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_credit_data\"", "created_at": 1676416402.131841}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_1099": {"name": "vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_integrations_tests\".\"vendor_data\"", "created_at": 1676416402.131933}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.175781, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.176126, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.176285, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.17644, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.1765969, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.178242, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.179306, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.187745, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.188498, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.188971, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.189446, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.1901429, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.190749, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.1910028, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.191518, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.192202, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.193444, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.1937332, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.194195, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.1945899, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.19519, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.1955001, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.196374, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.1966898, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.1968582, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.197649, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.1987379, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.199126, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2000608, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2046888, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2050061, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2057889, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.20644, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.208071, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.208342, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2085462, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.208738, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.20893, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.209517, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.20994, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.210359, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2110238, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.211412, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2164302, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.21668, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.216985, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2179961, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.218225, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.218464, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.220439, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.222404, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.227933, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.228322, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.228554, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.228672, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2288709, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2290251, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.229318, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.230602, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2308638, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.231242, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2318988, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2403991, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2433338, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.244023, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.244448, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2450602, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.24559, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.247842, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2486248, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.249583, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.249913, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2509062, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.257117, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.259378, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.259733, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.260761, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.261156, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.262184, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.263272, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2646139, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.264964, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.265229, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.265609, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.265876, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.266237, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.26651, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.266878, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2671402, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.267346, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.267735, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.274761, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.282292, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2840178, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.285706, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2869382, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.290756, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2915661, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.291837, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.292459, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2930481, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.2968252, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.297363, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.297678, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.299932, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.300571, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.300815, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3010838, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3014889, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3066251, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.314204, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.315562, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.315914, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.316614, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.316895, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.317081, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3172858, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.317451, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3176801, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3178701, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3185751, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3188422, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3208709, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.321837, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3221781, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.322985, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.323355, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3239522, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.324814, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3252962, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3259609, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.326525, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.326968, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.327859, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.330049, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.330962, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3313742, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.334052, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.335882, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3370812, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.337441, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.337982, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.338093, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3386471, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.338876, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.339309, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.339489, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.339929, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.340075, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.340693, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.340935, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.341365, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3414779, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.341985, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3421881, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3426921, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3429801, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.343934, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.344497, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3451269, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.345372, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3458922, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.34609, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.346551, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.346775, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.347209, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.347435, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3478642, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.348017, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.348499, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.34869, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.349122, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3492649, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3506181, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.350828, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.351136, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.351352, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.351579, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.351787, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.35201, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3522592, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3524811, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.352741, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.352981, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.353178, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3534179, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.353626, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3541708, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.354364, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.35481, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.354954, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.355509, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.355882, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.356101, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.356885, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.357114, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.357522, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.357988, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.358162, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3587599, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.359105, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.359573, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.359753, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3603399, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.360606, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.360853, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.361127, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.361969, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.362195, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.362392, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.36254, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3627672, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3628721, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3631308, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.363371, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.364116, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3644009, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.364623, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.365192, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3697631, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.370003, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3703098, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.37073, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.371095, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.371547, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3718028, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.372097, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3723462, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.372566, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.372848, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.37324, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.373587, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3743649, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.374769, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.374966, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3752372, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.375925, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3765051, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.378919, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3790789, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.379314, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3794718, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.379963, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.380218, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.380359, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.380671, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3809311, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3812501, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.381505, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.381835, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.382785, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3833442, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.383689, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.384018, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.385657, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.386682, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.386923, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3872051, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.387434, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.387817, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.388491, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.390573, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.390931, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3911848, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.391401, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.391648, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.391985, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.39227, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.392683, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.39296, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3931851, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3955982, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.395913, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.396356, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.396605, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3970828, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.397402, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.398238, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.398597, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.3996851, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4017951, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4024699, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.403101, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.403697, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.403792, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.404593, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.40491, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4053, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.405679, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4062479, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4069319, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.407674, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.40869, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.409208, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.409717, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.411228, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.412693, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4140239, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4155772, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.41655, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.417036, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4181771, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.419374, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.420081, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4207602, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.421675, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.422354, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.423192, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.423738, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4244359, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4251862, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4261491, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.427051, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4278479, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.428332, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.428991, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4295082, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.430451, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.431593, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.43291, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4342668, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.435324, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4365811, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"unique_id": "macro.dbt_utils.test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.437382, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"unique_id": "macro.dbt_utils.default__test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.437802, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4424489, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4446862, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.445162, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4454012, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.446104, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.446584, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.446857, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4472919, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4475362, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.448473, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.449687, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.450779, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.451616, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.45194, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.452449, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4529731, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.453451, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.454477, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.455771, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.456973, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.457561, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.457825, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.458634, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.459643, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4608371, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4614851, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.461899, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.463713, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.465715, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.467656, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.470005, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"unique_id": "macro.dbt_utils.safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.47056, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"unique_id": "macro.dbt_utils.default__safe_divide", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4707751, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4751308, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.480074, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4806259, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4809759, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.482045, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.482412, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4826949, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.482977, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.48321, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4834518, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.484077, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.484404, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.485007, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.485785, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.486346, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.486806, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4891589, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.489679, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.490813, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.4915478, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.493145, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.495276, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.496852, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.498042, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.49885, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.49987, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.501869, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.502518, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.503178, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5034509, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.504077, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.504918, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"unique_id": "macro.dbt_utils.generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.505646, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"unique_id": "macro.dbt_utils.default__generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.506621, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.507262, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5074592, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.507682, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"unique_id": "macro.dbt_utils.get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.508466, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"unique_id": "macro.dbt_utils.default__get_single_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.509584, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5110898, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.511488, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.512306, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.513456, "supported_languages": null}, "macro.quickbooks.get_enabled_unioned_models": {"unique_id": "macro.quickbooks.get_enabled_unioned_models", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "macros/get_enabled_unioned_models.sql", "original_file_path": "macros/get_enabled_unioned_models.sql", "name": "get_enabled_unioned_models", "macro_sql": "{% macro get_enabled_unioned_models(unioned_models = [ \n 'bill',\n 'credit_memo',\n 'deposit',\n 'invoice',\n 'journal_entry',\n 'payment',\n 'refund_receipt',\n 'sales_receipt',\n 'transfer',\n 'vendor_credit']) %} \n\n{% set enabled_unioned_models = [] %}\n\n{{ enabled_unioned_models.append(ref('int_quickbooks__purchase_double_entry')) }}\n\n{% for unioned_model in unioned_models %} \n {% if var('using_' ~ unioned_model, True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__' ~ unioned_model ~ '_double_entry')) }}\n {% endif %}\n {% endfor %} \n \n{% if var('using_bill', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__bill_payment_double_entry')) }}\n{% endif %}\n\n{% if var('using_credit_card_payment_txn', True) %}\n {{ enabled_unioned_models.append(ref('int_quickbooks__credit_card_pymt_double_entry')) }}\n{% endif %}\n\n{{ return(enabled_unioned_models) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "This macro takes models from the `double_entry_transactions` folder and appends them together in an array of relations if these models are enabled. This will then be unioned together using `dbt_utils.union_relations` in the `quickbooks__general_ledger` model. `int_quickbooks__purchase_double_entry` is included by default. `int_quickbooks__bill_payment_double_entry` and `int_quickbooks__credit_card_pymt_double_entry` are appended separately because their `using_` variables do not match up like the other variables, which can't be modified.\n", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://macros/quickbooks_macros.yml", "arguments": [{"name": "unioned_models", "type": "list", "description": "List of strings referring to particular models to then be appended and eventually unioned if enabled."}, {"name": "enabled_unioned_models", "type": "list", "description": "List of relations of models that are enabled to eventually be unioned into a general ledger model."}], "created_at": 1676416401.718933, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.515944, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.517268, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.517499, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5177212, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.51795, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.518146, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5183702, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.519548, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5205572, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.522174, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5225348, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.522913, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5233762, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.523713, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5240781, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5244548, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5250041, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.525147, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.525294, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.525434, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5260391, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5269241, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.528097, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.528822, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.529013, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.529189, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5293639, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.529557, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.533689, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5339148, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.534137, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5343518, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.536847, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.538074, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.538272, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.538663, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.539083, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.539294, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.539464, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.53965, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5403898, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5412102, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5419579, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.542238, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.542542, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5429819, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5445912, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5504231, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.550931, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.551549, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5537732, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.554611, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5555341, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.555775, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5560079, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.556242, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.556457, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5566652, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.557714, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5591009, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.560134, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5603578, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.560577, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.560802, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.561016, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.561264, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.561696, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5618382, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.56209, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.563066, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.565121, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5684721, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.570528, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.571021, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.571166, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.571303, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.571973, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.572632, "supported_languages": null}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_line_columns.sql", "original_file_path": "macros/get_deposit_line_columns.sql", "name": "get_deposit_line_columns", "macro_sql": "{% macro get_deposit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.576362, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_line_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_line_columns.sql", "original_file_path": "macros/get_vendor_credit_line_columns.sql", "name": "get_vendor_credit_line_columns", "macro_sql": "{% macro get_vendor_credit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5794199, "supported_languages": null}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "name": "get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.582411, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_linked_txn_columns.sql", "original_file_path": "macros/get_purchase_order_linked_txn_columns.sql", "name": "get_purchase_order_linked_txn_columns", "macro_sql": "{% macro get_purchase_order_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.583586, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_line_columns.sql", "original_file_path": "macros/get_sales_receipt_line_columns.sql", "name": "get_sales_receipt_line_columns", "macro_sql": "{% macro get_sales_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5873752, "supported_languages": null}, "macro.quickbooks_source.get_bill_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_bill_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_linked_txn_columns.sql", "original_file_path": "macros/get_bill_linked_txn_columns.sql", "name": "get_bill_linked_txn_columns", "macro_sql": "{% macro get_bill_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.588332, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_line_columns.sql", "original_file_path": "macros/get_bill_payment_line_columns.sql", "name": "get_bill_payment_line_columns", "macro_sql": "{% macro get_bill_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5905988, "supported_languages": null}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_transfer_columns.sql", "original_file_path": "macros/get_transfer_columns.sql", "name": "get_transfer_columns", "macro_sql": "{% macro get_transfer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.592404, "supported_languages": null}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_columns.sql", "original_file_path": "macros/get_purchase_columns.sql", "name": "get_purchase_columns", "macro_sql": "{% macro get_purchase_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.5964642, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_line_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_line_columns.sql", "original_file_path": "macros/get_journal_entry_line_columns.sql", "name": "get_journal_entry_line_columns", "macro_sql": "{% macro get_journal_entry_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.599293, "supported_languages": null}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_columns.sql", "original_file_path": "macros/get_deposit_columns.sql", "name": "get_deposit_columns", "macro_sql": "{% macro get_deposit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.602239, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_columns.sql", "original_file_path": "macros/get_purchase_order_columns.sql", "name": "get_purchase_order_columns", "macro_sql": "{% macro get_purchase_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.606338, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_line_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_line_columns.sql", "original_file_path": "macros/get_credit_memo_line_columns.sql", "name": "get_credit_memo_line_columns", "macro_sql": "{% macro get_credit_memo_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.610084, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_columns.sql", "original_file_path": "macros/get_journal_entry_columns.sql", "name": "get_journal_entry_columns", "macro_sql": "{% macro get_journal_entry_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.612617, "supported_languages": null}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_columns.sql", "original_file_path": "macros/get_vendor_columns.sql", "name": "get_vendor_columns", "macro_sql": "{% macro get_vendor_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.616898, "supported_languages": null}, "macro.quickbooks_source.get_invoice_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_invoice_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_linked_txn_columns.sql", "original_file_path": "macros/get_invoice_linked_txn_columns.sql", "name": "get_invoice_linked_txn_columns", "macro_sql": "{% macro get_invoice_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.618474, "supported_languages": null}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_item_columns.sql", "original_file_path": "macros/get_item_columns.sql", "name": "get_item_columns", "macro_sql": "{% macro get_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.6227021, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_columns.sql", "original_file_path": "macros/get_credit_memo_columns.sql", "name": "get_credit_memo_columns", "macro_sql": "{% macro get_credit_memo_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.6276999, "supported_languages": null}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_item_columns.sql", "original_file_path": "macros/get_bundle_item_columns.sql", "name": "get_bundle_item_columns", "macro_sql": "{% macro get_bundle_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.6287308, "supported_languages": null}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_columns.sql", "original_file_path": "macros/get_payment_columns.sql", "name": "get_payment_columns", "macro_sql": "{% macro get_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.633854, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_columns.sql", "original_file_path": "macros/get_vendor_credit_columns.sql", "name": "get_vendor_credit_columns", "macro_sql": "{% macro get_vendor_credit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.636657, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_columns.sql", "original_file_path": "macros/get_refund_receipt_columns.sql", "name": "get_refund_receipt_columns", "macro_sql": "{% macro get_refund_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.6448839, "supported_languages": null}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_columns.sql", "original_file_path": "macros/get_bill_columns.sql", "name": "get_bill_columns", "macro_sql": "{% macro get_bill_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.6481438, "supported_languages": null}, "macro.quickbooks_source.get_credit_card_payment_txn_columns": {"unique_id": "macro.quickbooks_source.get_credit_card_payment_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_card_payment_txn_columns.sql", "original_file_path": "macros/get_credit_card_payment_txn_columns.sql", "name": "get_credit_card_payment_txn_columns", "macro_sql": "{% macro get_credit_card_payment_txn_columns() %}\n\n{% set columns = [ \t\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.6499999, "supported_languages": null}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_line_columns.sql", "original_file_path": "macros/get_bill_line_columns.sql", "name": "get_bill_line_columns", "macro_sql": "{% macro get_bill_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.65288, "supported_languages": null}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "name": "get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.6592472, "supported_languages": null}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_columns.sql", "original_file_path": "macros/get_invoice_columns.sql", "name": "get_invoice_columns", "macro_sql": "{% macro get_invoice_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allow_ipnpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_achpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_credit_card_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.666471, "supported_languages": null}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_line_columns.sql", "original_file_path": "macros/get_payment_line_columns.sql", "name": "get_payment_line_columns", "macro_sql": "{% macro get_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.668492, "supported_languages": null}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_department_columns.sql", "original_file_path": "macros/get_department_columns.sql", "name": "get_department_columns", "macro_sql": "{% macro get_department_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.670174, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_columns.sql", "original_file_path": "macros/get_invoice_line_columns.sql", "name": "get_invoice_line_columns", "macro_sql": "{% macro get_invoice_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.674567, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_line_columns.sql", "original_file_path": "macros/get_purchase_order_line_columns.sql", "name": "get_purchase_order_line_columns", "macro_sql": "{% macro get_purchase_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.677517, "supported_languages": null}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_line_columns.sql", "original_file_path": "macros/get_purchase_line_columns.sql", "name": "get_purchase_line_columns", "macro_sql": "{% macro get_purchase_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.680477, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_line_columns.sql", "original_file_path": "macros/get_refund_receipt_line_columns.sql", "name": "get_refund_receipt_line_columns", "macro_sql": "{% macro get_refund_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.684253, "supported_languages": null}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_columns.sql", "original_file_path": "macros/get_estimate_columns.sql", "name": "get_estimate_columns", "macro_sql": "{% macro get_estimate_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.6896589, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_columns.sql", "original_file_path": "macros/get_bill_payment_columns.sql", "name": "get_bill_payment_columns", "macro_sql": "{% macro get_bill_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.692768, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_columns.sql", "original_file_path": "macros/get_sales_receipt_columns.sql", "name": "get_sales_receipt_columns", "macro_sql": "{% macro get_sales_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.7004008, "supported_languages": null}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_columns.sql", "original_file_path": "macros/get_bundle_columns.sql", "name": "get_bundle_columns", "macro_sql": "{% macro get_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.7025778, "supported_languages": null}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_line_columns.sql", "original_file_path": "macros/get_estimate_line_columns.sql", "name": "get_estimate_line_columns", "macro_sql": "{% macro get_estimate_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.706968, "supported_languages": null}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_address_columns.sql", "original_file_path": "macros/get_address_columns.sql", "name": "get_address_columns", "macro_sql": "{% macro get_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.7091389, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_bundle_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_bundle_columns.sql", "original_file_path": "macros/get_invoice_line_bundle_columns.sql", "name": "get_invoice_line_bundle_columns", "macro_sql": "{% macro get_invoice_line_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676416399.712276, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "quickbooks.ap_ar_enhanced_table": {"unique_id": "quickbooks.ap_ar_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ap_ar_enhanced_table", "block_contents": "Table that unions all accounts payable records from int_quickbooks__bill_join and all accounts receivable records from int_quickbooks__invoice_join while also adding customer, vendor, address, and department level detail to the accounts payable and receivable records. Further, date and amount\ncalculations are included to show if the payable/receivable has been fully paid and/or paid on time."}, "quickbooks.cash_flow_statement_table": {"unique_id": "quickbooks.cash_flow_statement_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "cash_flow_statement_table", "block_contents": "Table that provides all line items necessary to construct a cash flow statement."}, "quickbooks.expenses_sales_enhanced_table": {"unique_id": "quickbooks.expenses_sales_enhanced_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "expenses_sales_enhanced_table", "block_contents": "Table that unions all expense records from int_quickbooks__expenses_union and all sales records from the int_quickbooks__sales_union while also adding customer, vendor, and department level detail to the expense and sales records."}, "quickbooks.general_ledger_table": {"unique_id": "quickbooks.general_ledger_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_table", "block_contents": "Table that unions all records from each model within the double_entry_transactions directory. The table end result is a comprehensive general ledger with an offsetting debit and credit entry for each transaction."}, "quickbooks.general_ledger_by_period_table": {"unique_id": "quickbooks.general_ledger_by_period_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "general_ledger_by_period_table", "block_contents": "Table that pulls general ledger account level balances per period from int_quickbooks__general_ledger_balances while also creating an offsetting Retained Earnings entry for Revenue - Expenses per year to be added as single Equity line balance per year."}, "quickbooks.profit_and_loss_table": {"unique_id": "quickbooks.profit_and_loss_table", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "profit_and_loss_table", "block_contents": "Table containing all revenue and expense account classes by calendar year and month enriched with account type, class, and parent information."}, "quickbooks.account_class": {"unique_id": "quickbooks.account_class", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_class", "block_contents": "Class of the account associated"}, "quickbooks.account_name": {"unique_id": "quickbooks.account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "Name of the account associated"}, "quickbooks.account_number": {"unique_id": "quickbooks.account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_number", "block_contents": "User defined number of the account."}, "quickbooks.account_ordinal": {"unique_id": "quickbooks.account_ordinal", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_ordinal", "block_contents": "Integer value to order the account within final financial statement reporting. The customer can also configure the ordinal; [see the README for details](https://github.com/fivetran/dbt_quickbooks/blob/main/README.md#customize-the-account-ordering-of-your-profit-loss-and-balance-sheet-models)"}, "quickbooks.account_sub_type": {"unique_id": "quickbooks.account_sub_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_sub_type", "block_contents": "Sub type of the account associated"}, "quickbooks.account_type": {"unique_id": "quickbooks.account_type", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_type", "block_contents": "The type of account associated"}, "quickbooks.calendar_date": {"unique_id": "quickbooks.calendar_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "calendar_date", "block_contents": "Timestamp of the first calendar date of the month."}, "quickbooks.is_sub_account": {"unique_id": "quickbooks.is_sub_account", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_sub_account", "block_contents": "Boolean indicating whether the account is a sub account (true) or a parent account (false)."}, "quickbooks.parent_account_name": {"unique_id": "quickbooks.parent_account_name", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_name", "block_contents": "The parent account name. If the account is the parent account then the account name is recorded."}, "quickbooks.parent_account_number": {"unique_id": "quickbooks.parent_account_number", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "parent_account_number", "block_contents": "The parent account number. If the account is the parent account then the account number is recorded."}, "quickbooks.transaction_date": {"unique_id": "quickbooks.transaction_date", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_date", "block_contents": "Timestamp of the date that the transaction occurred."}, "quickbooks.transaction_id": {"unique_id": "quickbooks.transaction_id", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_id", "block_contents": "Unique identifier of the transaction"}, "quickbooks_source.account_table": {"unique_id": "quickbooks_source.account_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_table", "block_contents": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity."}, "quickbooks_source.address_table": {"unique_id": "quickbooks_source.address_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "address_table", "block_contents": "Table containing address details."}, "quickbooks_source.bill_line_table": {"unique_id": "quickbooks_source.bill_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_line_table", "block_contents": "Table containing distinct line items from bills within the `bill` table."}, "quickbooks_source.bill_linked_txn_table": {"unique_id": "quickbooks_source.bill_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_linked_txn_table", "block_contents": "Mapping table containing bill payment transactions linked to a bill."}, "quickbooks_source.bill_payment_line_table": {"unique_id": "quickbooks_source.bill_payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_line_table", "block_contents": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table."}, "quickbooks_source.bill_payment_table": {"unique_id": "quickbooks_source.bill_payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_table", "block_contents": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor."}, "quickbooks_source.bill_table": {"unique_id": "quickbooks_source.bill_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_table", "block_contents": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both."}, "quickbooks_source.bundle_item_table": {"unique_id": "quickbooks_source.bundle_item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_item_table", "block_contents": "Mapping table containing all bundle and item combinations."}, "quickbooks_source.bundle_table": {"unique_id": "quickbooks_source.bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_table", "block_contents": "Table containing all bundles possible to be used within an invoice."}, "quickbooks_source.credit_card_payment_txn_table": {"unique_id": "quickbooks_source.credit_card_payment_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_card_payment_txn_table", "block_contents": "Table containing all credit card payment transactions."}, "quickbooks_source.credit_memo_line_table": {"unique_id": "quickbooks_source.credit_memo_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_line_table", "block_contents": "Table containing individual records of credit memos."}, "quickbooks_source.credit_memo_table": {"unique_id": "quickbooks_source.credit_memo_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_table", "block_contents": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold."}, "quickbooks_source.customer_table": {"unique_id": "quickbooks_source.customer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_table", "block_contents": "Table containing customers of which are consumers of the service or product that your business offers."}, "quickbooks_source.department_table": {"unique_id": "quickbooks_source.department_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_table", "block_contents": "Table containing records representing physical locations such as stores, and sales regions."}, "quickbooks_source.deposit_line_table": {"unique_id": "quickbooks_source.deposit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_line_table", "block_contents": "Table containing individual line items comprising the deposit."}, "quickbooks_source.deposit_table": {"unique_id": "quickbooks_source.deposit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_table", "block_contents": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit."}, "quickbooks_source.estimate_line_table": {"unique_id": "quickbooks_source.estimate_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_line_table", "block_contents": "Table containing line item records of an estimate."}, "quickbooks_source.estimate_table": {"unique_id": "quickbooks_source.estimate_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_table", "block_contents": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing."}, "quickbooks_source.invoice_line_bundle_table": {"unique_id": "quickbooks_source.invoice_line_bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_bundle_table", "block_contents": "Table containing lines of an invoice which were bundled."}, "quickbooks_source.invoice_line_table": {"unique_id": "quickbooks_source.invoice_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_table", "block_contents": "Table containing individual records from invoices."}, "quickbooks_source.invoice_linked_txn_table": {"unique_id": "quickbooks_source.invoice_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_linked_txn_table", "block_contents": "Mapping table for invoices records to respective estimate and payment objects."}, "quickbooks_source.invoice_table": {"unique_id": "quickbooks_source.invoice_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_table", "block_contents": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later."}, "quickbooks_source.item_table": {"unique_id": "quickbooks_source.item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_table", "block_contents": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services."}, "quickbooks_source.journal_entry_line_table": {"unique_id": "quickbooks_source.journal_entry_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_line_table", "block_contents": "Table containing individual line items of a transaction associated with a journal entry."}, "quickbooks_source.journal_entry_table": {"unique_id": "quickbooks_source.journal_entry_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_table", "block_contents": "Table containing journal entry transactions."}, "quickbooks_source.payment_line_table": {"unique_id": "quickbooks_source.payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_line_table", "block_contents": "Table containing individual line items recorded within a payment."}, "quickbooks_source.payment_table": {"unique_id": "quickbooks_source.payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_table", "block_contents": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount."}, "quickbooks_source.purchase_line_table": {"unique_id": "quickbooks_source.purchase_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase."}, "quickbooks_source.purchase_order_line_table": {"unique_id": "quickbooks_source.purchase_order_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase order."}, "quickbooks_source.purchase_order_linked_txn_table": {"unique_id": "quickbooks_source.purchase_order_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_linked_txn_table", "block_contents": "Mapping table for purchase order records to respective bill and purchase objects."}, "quickbooks_source.purchase_order_table": {"unique_id": "quickbooks_source.purchase_order_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_table", "block_contents": "Table containing records of purchase orders (PO)."}, "quickbooks_source.purchase_table": {"unique_id": "quickbooks_source.purchase_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_table", "block_contents": "Table containing records of purchase expenses."}, "quickbooks_source.refund_receipt_line_table": {"unique_id": "quickbooks_source.refund_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_line_table", "block_contents": "Table containing individual line items of a refund transaction."}, "quickbooks_source.refund_receipt_table": {"unique_id": "quickbooks_source.refund_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_table", "block_contents": "Table containing refunds to the customer for a product or service that was provided."}, "quickbooks_source.sales_receipt_line_table": {"unique_id": "quickbooks_source.sales_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_line_table", "block_contents": "Table containing individual line items of a sales transaction."}, "quickbooks_source.sales_receipt_table": {"unique_id": "quickbooks_source.sales_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_table", "block_contents": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited."}, "quickbooks_source.transfer_table": {"unique_id": "quickbooks_source.transfer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transfer_table", "block_contents": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts."}, "quickbooks_source.vendor_credit_line_table": {"unique_id": "quickbooks_source.vendor_credit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_line_table", "block_contents": "Table containing individual vendor credit line items."}, "quickbooks_source.vendor_credit_table": {"unique_id": "quickbooks_source.vendor_credit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_table", "block_contents": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services."}, "quickbooks_source.vendor_table": {"unique_id": "quickbooks_source.vendor_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product."}, "quickbooks_source.account_id": {"unique_id": "quickbooks_source.account_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The identifier of the account associated"}, "quickbooks_source.amount": {"unique_id": "quickbooks_source.amount", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "amount", "block_contents": "Monetary amount of"}, "quickbooks_source.class_id": {"unique_id": "quickbooks_source.class_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "Reference to the class associated"}, "quickbooks_source.created_at": {"unique_id": "quickbooks_source.created_at", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of the creation date"}, "quickbooks_source.currency_id": {"unique_id": "quickbooks_source.currency_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "Reference to the currency"}, "quickbooks_source.customer_id": {"unique_id": "quickbooks_source.customer_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Reference to the customer associated"}, "quickbooks_source.department_id": {"unique_id": "quickbooks_source.department_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "Reference to the department"}, "quickbooks_source.id": {"unique_id": "quickbooks_source.id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "id", "block_contents": "Unique identifier of the"}, "quickbooks_source.item_id": {"unique_id": "quickbooks_source.item_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "Reference to the item"}, "quickbooks_source._fivetran_deleted": {"unique_id": "quickbooks_source._fivetran_deleted", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {"model.quickbooks.int_quickbooks__credit_card_pymt_double_entry": [{"resource_type": "model", "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_intermediate", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_intermediate", "fqn": ["quickbooks", "double_entry_transactions", "int_quickbooks__credit_card_pymt_double_entry"], "unique_id": "model.quickbooks.int_quickbooks__credit_card_pymt_double_entry", "raw_code": "/*\nTable that creates a debit record to the associated bank account and a credit record to the specified credit card account.\n*/\n\n--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith credit_card_payments as (\n \n select *\n from {{ ref('stg_quickbooks__credit_card_payment_txn') }}\n where is_most_recent_record\n),\n\ncredit_card_payment_prep as (\n\n select\n credit_card_payments.credit_card_payment_id as transaction_id,\n credit_card_payments.source_relation,\n row_number() over (partition by credit_card_payments.credit_card_payment_id order by credit_card_payments.transaction_date) - 1 as index,\n credit_card_payments.transaction_date,\n credit_card_payments.amount,\n credit_card_payments.bank_account_id,\n credit_card_payments.credit_card_account_id,\n cast(null as {{ dbt.type_string() }}) as customer_id,\n cast(null as {{ dbt.type_string() }}) as vendor_id,\n cast(null as {{ dbt.type_string() }}) as class_id\n from credit_card_payments\n),\n\nfinal as (\n\n select\n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount, \n cast(bank_account_id as {{ dbt.type_string() }}) as account_id,\n class_id,\n 'credit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n\n union all\n\n select \n transaction_id,\n source_relation,\n index,\n transaction_date,\n customer_id,\n vendor_id,\n amount,\n cast(credit_card_account_id as {{ dbt.type_string() }}) as account_id,\n class_id, \n 'debit' as transaction_type,\n 'credit card payment' as transaction_source\n from credit_card_payment_prep\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks", "path": "double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "original_file_path": "models/double_entry_transactions/int_quickbooks__credit_card_pymt_double_entry.sql", "name": "int_quickbooks__credit_card_pymt_double_entry", "alias": "int_quickbooks__credit_card_pymt_double_entry", "checksum": {"name": "sha256", "checksum": "b0b069fdb6c61a9cccf3f4ab656a9afb040568c0a0d9262943d2fce376b70e57"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn"]], "sources": [], "metrics": [], "description": "Table that creates a debit record to credit card payment transactions.", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks://models/quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "quickbooks_intermediate", "enabled": false}, "created_at": 1676416401.638195, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_card_payment_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_card_payment_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn", "raw_code": "--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_card_payment_txn_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_card_payment_txn_tmp')),\n staging_columns=get_credit_card_payment_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_card_payment_id,\n amount,\n bank_account_id,\n credit_card_account_id,\n created_at,\n updated_at,\n currency_id,\n transaction_date,\n _fivetran_deleted,\n row_number() over (partition by id, updated_at order by updated_at desc) = 1 as is_most_recent_record,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_card_payment_txn.sql", "original_file_path": "models/stg_quickbooks__credit_card_payment_txn.sql", "name": "stg_quickbooks__credit_card_payment_txn", "alias": "stg_quickbooks__credit_card_payment_txn", "checksum": {"name": "sha256", "checksum": "a8274053455a19f46f54111bac914dd48d1365ce550d73b051c8b22f9fafef0b"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn_tmp"], ["stg_quickbooks__credit_card_payment_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('credit_card_payment_txn_table') }}", "columns": {"credit_card_payment_id": {"name": "credit_card_payment_id", "description": "{{ doc('id') }} credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "Reference to the bank account which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Reference to the credit card account which the credit card payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating if the record is the most recent updated version of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676416401.7456331, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_tmp')),\n staging_columns=get_purchase_order_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order.sql", "original_file_path": "models/stg_quickbooks__purchase_order.sql", "name": "stg_quickbooks__purchase_order", "alias": "stg_quickbooks__purchase_order", "checksum": {"name": "sha256", "checksum": "697ef46b9a8ee1073daf25c393eca18697b1c95b1b57914e5a9cef8bd8adcca2"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676416401.8038669, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_line_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_line_tmp')),\n staging_columns=get_purchase_order_line_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_line.sql", "original_file_path": "models/stg_quickbooks__purchase_order_line.sql", "name": "stg_quickbooks__purchase_order_line", "alias": "stg_quickbooks__purchase_order_line", "checksum": {"name": "sha256", "checksum": "a2b4b3ba47604cb6f1391043643e49168328c1ab7df52754f699748f11fa8888"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_line_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "{{ doc('id') }} purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase order is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676416401.799493, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": [{"resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_linked_txn_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns\n that are expected/needed (staging_columns from dbt_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__purchase_order_linked_txn_tmp')),\n staging_columns=get_purchase_order_linked_txn_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_linked_txn.sql", "original_file_path": "models/stg_quickbooks__purchase_order_linked_txn.sql", "name": "stg_quickbooks__purchase_order_linked_txn", "alias": "stg_quickbooks__purchase_order_linked_txn", "checksum": {"name": "sha256", "checksum": "3e9cbee58cb2dab37c5798fd7a97954b3eae45670cc0288ce232394180fd1605"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "{{ doc('purchase_order_linked_txn_table') }}", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": false}, "created_at": 1676416401.8008802, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "name": "stg_quickbooks__purchase_order_line_tmp", "alias": "stg_quickbooks__purchase_order_line_tmp", "checksum": {"name": "sha256", "checksum": "be4cdef26ee4b271e7c425130b4c3b80be45214b5be926af060d32331badcc0f"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676416401.3595781, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_card_payment_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp", "raw_code": "--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_card_payment_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_card_payment_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "name": "stg_quickbooks__credit_card_payment_txn_tmp", "alias": "stg_quickbooks__credit_card_payment_txn_tmp", "checksum": {"name": "sha256", "checksum": "b1910ce2b3a9463b6c4b232fa24e807de5c899a1d03dde1feef6bc43dbe8b3d6"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_card_payment_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676416401.427063, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_tmp.sql", "name": "stg_quickbooks__purchase_order_tmp", "alias": "stg_quickbooks__purchase_order_tmp", "checksum": {"name": "sha256", "checksum": "a14f234fcfdc6777fe2bb8898ce79b14b45590d19bd6eab25d33ee95cc899bbd"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676416401.458113, "config_call_dict": {"enabled": false}}], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": [{"resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": []}, "config": {"enabled": false, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "raw_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "alias": "stg_quickbooks__purchase_order_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "926409c011fa67fdcd598c4c0c21b87fb5dabe8654d46f0ee7caac0a028d5d99"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": false}, "created_at": 1676416401.605364, "config_call_dict": {"enabled": false}}]}, "parent_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__general_ledger_by_period": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__retained_earnings"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__transfer_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry"], "model.quickbooks.quickbooks__profit_and_loss": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.quickbooks__cash_flow_statement": ["model.quickbooks.int_quickbooks__cash_flow_classifications"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__balance_sheet"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__deposit_transactions", "model.quickbooks.int_quickbooks__journal_entry_transactions", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.quickbooks__general_ledger", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__vendor"], "analysis.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.quickbooks__general_ledger_by_period"], "analysis.quickbooks.quickbooks__income_statement": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["source.quickbooks_source.quickbooks.vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["source.quickbooks_source.quickbooks.refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["source.quickbooks_source.quickbooks.estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["source.quickbooks_source.quickbooks.credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["source.quickbooks_source.quickbooks.journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["source.quickbooks_source.quickbooks.invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["source.quickbooks_source.quickbooks.payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["source.quickbooks_source.quickbooks.invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["source.quickbooks_source.quickbooks.deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["source.quickbooks_source.quickbooks.customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["source.quickbooks_source.quickbooks.bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["source.quickbooks_source.quickbooks.item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["source.quickbooks_source.quickbooks.account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["source.quickbooks_source.quickbooks.vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["source.quickbooks_source.quickbooks.department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["source.quickbooks_source.quickbooks.bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["source.quickbooks_source.quickbooks.bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["source.quickbooks_source.quickbooks.bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["source.quickbooks_source.quickbooks.estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["source.quickbooks_source.quickbooks.purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["source.quickbooks_source.quickbooks.credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["source.quickbooks_source.quickbooks.bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["source.quickbooks_source.quickbooks.transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["source.quickbooks_source.quickbooks.vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["source.quickbooks_source.quickbooks.purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["source.quickbooks_source.quickbooks.address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["source.quickbooks_source.quickbooks.payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["source.quickbooks_source.quickbooks.refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["source.quickbooks_source.quickbooks.sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["source.quickbooks_source.quickbooks.bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["source.quickbooks_source.quickbooks.journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["source.quickbooks_source.quickbooks.deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["source.quickbooks_source.quickbooks.bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["source.quickbooks_source.quickbooks.invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["source.quickbooks_source.quickbooks.sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["source.quickbooks_source.quickbooks.invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": ["model.quickbooks.quickbooks__cash_flow_statement"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": ["model.quickbooks.quickbooks__general_ledger"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": ["model.quickbooks.quickbooks__general_ledger_by_period"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": ["model.quickbooks.quickbooks__profit_and_loss"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": ["model.quickbooks.quickbooks__balance_sheet"], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": ["model.quickbooks_source.stg_quickbooks__bundle_item"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": ["model.quickbooks_source.stg_quickbooks__vendor"], "source.quickbooks_source.quickbooks.account": [], "source.quickbooks_source.quickbooks.address": [], "source.quickbooks_source.quickbooks.bill_line": [], "source.quickbooks_source.quickbooks.bill_linked_txn": [], "source.quickbooks_source.quickbooks.bill_payment_line": [], "source.quickbooks_source.quickbooks.bill_payment": [], "source.quickbooks_source.quickbooks.bill": [], "source.quickbooks_source.quickbooks.bundle_item": [], "source.quickbooks_source.quickbooks.bundle": [], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": [], "source.quickbooks_source.quickbooks.credit_memo": [], "source.quickbooks_source.quickbooks.customer": [], "source.quickbooks_source.quickbooks.department": [], "source.quickbooks_source.quickbooks.deposit_line": [], "source.quickbooks_source.quickbooks.deposit": [], "source.quickbooks_source.quickbooks.estimate": [], "source.quickbooks_source.quickbooks.estimate_line": [], "source.quickbooks_source.quickbooks.invoice_linked_txn": [], "source.quickbooks_source.quickbooks.invoice_line": [], "source.quickbooks_source.quickbooks.invoice_line_bundle": [], "source.quickbooks_source.quickbooks.invoice": [], "source.quickbooks_source.quickbooks.item": [], "source.quickbooks_source.quickbooks.journal_entry_line": [], "source.quickbooks_source.quickbooks.journal_entry": [], "source.quickbooks_source.quickbooks.payment_line": [], "source.quickbooks_source.quickbooks.payment": [], "source.quickbooks_source.quickbooks.purchase_line": [], "source.quickbooks_source.quickbooks.purchase": [], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": [], "source.quickbooks_source.quickbooks.refund_receipt": [], "source.quickbooks_source.quickbooks.sales_receipt_line": [], "source.quickbooks_source.quickbooks.sales_receipt": [], "source.quickbooks_source.quickbooks.transfer": [], "source.quickbooks_source.quickbooks.vendor_credit_line": [], "source.quickbooks_source.quickbooks.vendor_credit": [], "source.quickbooks_source.quickbooks.vendor": []}, "child_map": {"seed.quickbooks_integration_tests.bill_payment_data": [], "seed.quickbooks_integration_tests.bundle_data": [], "seed.quickbooks_integration_tests.bill_payment_line_data": [], "seed.quickbooks_integration_tests.payment_line_data": [], "seed.quickbooks_integration_tests.vendor_data": [], "seed.quickbooks_integration_tests.address_data": [], "seed.quickbooks_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_integration_tests.invoice_data": [], "seed.quickbooks_integration_tests.payment_data": [], "seed.quickbooks_integration_tests.invoice_line_data": [], "seed.quickbooks_integration_tests.deposit_line_data": [], "seed.quickbooks_integration_tests.estimate_line_data": [], "seed.quickbooks_integration_tests.purchase_data": [], "seed.quickbooks_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_integration_tests.credit_memo_line_data": [], "seed.quickbooks_integration_tests.bill_data": [], "seed.quickbooks_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_integration_tests.vendor_credit_data": [], "seed.quickbooks_integration_tests.customer_data": [], "seed.quickbooks_integration_tests.estimate_data": [], "seed.quickbooks_integration_tests.purchase_line_data": [], "seed.quickbooks_integration_tests.journal_entry_line_data": [], "seed.quickbooks_integration_tests.journal_entry_data": [], "seed.quickbooks_integration_tests.bill_line_data": [], "seed.quickbooks_integration_tests.bundle_item_data": [], "seed.quickbooks_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_integration_tests.account_data": [], "seed.quickbooks_integration_tests.purchase_order_line_data": [], "seed.quickbooks_integration_tests.transfer_data": [], "seed.quickbooks_integration_tests.purchase_order_data": [], "seed.quickbooks_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_integration_tests.credit_memo_data": [], "seed.quickbooks_integration_tests.department_data": [], "seed.quickbooks_integration_tests.item_data": [], "seed.quickbooks_integration_tests.sales_receipt_data": [], "seed.quickbooks_integration_tests.deposit_data": [], "seed.quickbooks_integration_tests.refund_receipt_data": [], "model.quickbooks.quickbooks__balance_sheet": ["model.quickbooks.int_quickbooks__cash_flow_classifications", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"], "model.quickbooks.quickbooks__general_ledger_by_period": ["analysis.quickbooks.quickbooks__balance_sheet", "analysis.quickbooks.quickbooks__income_statement", "model.quickbooks.quickbooks__balance_sheet", "model.quickbooks.quickbooks__profit_and_loss", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"], "model.quickbooks.quickbooks__general_ledger": ["model.quickbooks.int_quickbooks__general_ledger_balances", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "model.quickbooks.int_quickbooks__general_ledger_date_spine", "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"], "model.quickbooks.quickbooks__profit_and_loss": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"], "model.quickbooks.quickbooks__expenses_sales_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"], "model.quickbooks.quickbooks__ap_ar_enhanced": ["test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"], "model.quickbooks.quickbooks__cash_flow_statement": ["test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a", "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"], "model.quickbooks.int_quickbooks__transfer_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__credit_memo_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__refund_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__journal_entry_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__deposit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__purchase_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__sales_receipt_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__vendor_credit_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__bill_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__payment_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_double_entry": ["model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__invoice_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__bill_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__journal_entry_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__refund_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__vendor_credit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__purchase_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__sales_receipt_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__deposit_transactions": ["model.quickbooks.int_quickbooks__expenses_union"], "model.quickbooks.int_quickbooks__credit_memo_transactions": ["model.quickbooks.int_quickbooks__sales_union"], "model.quickbooks.int_quickbooks__cash_flow_classifications": ["model.quickbooks.quickbooks__cash_flow_statement"], "model.quickbooks.int_quickbooks__general_ledger_balances": ["model.quickbooks.int_quickbooks__retained_earnings", "model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__account_classifications": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__general_ledger"], "model.quickbooks.int_quickbooks__expenses_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "model.quickbooks.int_quickbooks__invoice_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__retained_earnings": ["model.quickbooks.quickbooks__general_ledger_by_period"], "model.quickbooks.int_quickbooks__general_ledger_date_spine": ["model.quickbooks.int_quickbooks__general_ledger_balances"], "model.quickbooks.int_quickbooks__bill_join": ["model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks.int_quickbooks__sales_union": ["model.quickbooks.quickbooks__expenses_sales_enhanced"], "analysis.quickbooks.quickbooks__balance_sheet": [], "analysis.quickbooks.quickbooks__income_statement": [], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks.int_quickbooks__transfer_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks.int_quickbooks__invoice_join", "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__invoice_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks.int_quickbooks__invoice_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks.int_quickbooks__account_classifications", "model.quickbooks.int_quickbooks__bill_payment_double_entry", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks.int_quickbooks__invoice_join", "model.quickbooks.int_quickbooks__payment_double_entry", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks.int_quickbooks__bill_join", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_join", "model.quickbooks.int_quickbooks__bill_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks.int_quickbooks__journal_entry_double_entry", "model.quickbooks.int_quickbooks__journal_entry_transactions", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks.int_quickbooks__deposit_double_entry", "model.quickbooks.int_quickbooks__deposit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_double_entry", "model.quickbooks.int_quickbooks__bill_transactions", "model.quickbooks.int_quickbooks__credit_memo_double_entry", "model.quickbooks.int_quickbooks__credit_memo_transactions", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_double_entry", "model.quickbooks.int_quickbooks__invoice_transactions", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_double_entry", "model.quickbooks.int_quickbooks__purchase_transactions", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_double_entry", "model.quickbooks.int_quickbooks__refund_receipt_transactions", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_double_entry", "model.quickbooks.int_quickbooks__sales_receipt_transactions", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_double_entry", "model.quickbooks.int_quickbooks__vendor_credit_transactions", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks.int_quickbooks__expenses_union", "model.quickbooks.int_quickbooks__sales_union", "model.quickbooks.quickbooks__ap_ar_enhanced", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["model.quickbooks_source.stg_quickbooks__estimate_line", "model.quickbooks_source.stg_quickbooks__estimate_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__bundle_item"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["model.quickbooks_source.stg_quickbooks__transfer", "model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry_line", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf": [], "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d": [], "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5": [], "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056": [], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": [], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": [], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": [], "source.quickbooks_source.quickbooks.account": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "source.quickbooks_source.quickbooks.address": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "source.quickbooks_source.quickbooks.bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "source.quickbooks_source.quickbooks.bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "source.quickbooks_source.quickbooks.bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "source.quickbooks_source.quickbooks.bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "source.quickbooks_source.quickbooks.bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "source.quickbooks_source.quickbooks.bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "source.quickbooks_source.quickbooks.bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "source.quickbooks_source.quickbooks.credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "source.quickbooks_source.quickbooks.customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "source.quickbooks_source.quickbooks.department": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "source.quickbooks_source.quickbooks.deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "source.quickbooks_source.quickbooks.deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "source.quickbooks_source.quickbooks.estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "source.quickbooks_source.quickbooks.estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "source.quickbooks_source.quickbooks.invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "source.quickbooks_source.quickbooks.invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "source.quickbooks_source.quickbooks.invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "source.quickbooks_source.quickbooks.invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "source.quickbooks_source.quickbooks.item": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "source.quickbooks_source.quickbooks.journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "source.quickbooks_source.quickbooks.journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "source.quickbooks_source.quickbooks.payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "source.quickbooks_source.quickbooks.payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "source.quickbooks_source.quickbooks.purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "source.quickbooks_source.quickbooks.purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "source.quickbooks_source.quickbooks.refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "source.quickbooks_source.quickbooks.sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "source.quickbooks_source.quickbooks.sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "source.quickbooks_source.quickbooks.transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "source.quickbooks_source.quickbooks.vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "source.quickbooks_source.quickbooks.vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "source.quickbooks_source.quickbooks.vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"]}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index cf1e6a48..7465a1b1 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T19:09:13.052917Z", "invocation_id": "740b6cd8-3bf3-4a2b-99f7-4f7af9e39f64", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:08:59.940138Z", "completed_at": "2023-02-14T19:08:59.973761Z"}, {"name": "execute", "started_at": "2023-02-14T19:08:59.974082Z", "completed_at": "2023-02-14T19:08:59.974103Z"}], "thread_id": "Thread-3", "execution_time": 0.03611612319946289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:08:59.939922Z", "completed_at": "2023-02-14T19:08:59.974218Z"}, {"name": "execute", "started_at": "2023-02-14T19:08:59.975448Z", "completed_at": "2023-02-14T19:08:59.975452Z"}], "thread_id": "Thread-1", "execution_time": 0.038588762283325195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:08:59.940036Z", "completed_at": "2023-02-14T19:08:59.974299Z"}, {"name": "execute", "started_at": "2023-02-14T19:08:59.975539Z", "completed_at": "2023-02-14T19:08:59.975543Z"}], "thread_id": "Thread-2", "execution_time": 0.03839516639709473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:08:59.940237Z", "completed_at": "2023-02-14T19:08:59.974367Z"}, {"name": "execute", "started_at": "2023-02-14T19:08:59.975626Z", "completed_at": "2023-02-14T19:08:59.975630Z"}], "thread_id": "Thread-4", "execution_time": 0.037843942642211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:08:59.977720Z", "completed_at": "2023-02-14T19:09:00.019973Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.024276Z", "completed_at": "2023-02-14T19:09:00.024284Z"}], "thread_id": "Thread-3", "execution_time": 0.04917311668395996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.012690Z", "completed_at": "2023-02-14T19:09:00.024018Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.025045Z", "completed_at": "2023-02-14T19:09:00.025049Z"}], "thread_id": "Thread-4", "execution_time": 0.0473790168762207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.012605Z", "completed_at": "2023-02-14T19:09:00.024165Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.025218Z", "completed_at": "2023-02-14T19:09:00.025221Z"}], "thread_id": "Thread-2", "execution_time": 0.04808402061462402, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.012362Z", "completed_at": "2023-02-14T19:09:00.024466Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.025916Z", "completed_at": "2023-02-14T19:09:00.025920Z"}], "thread_id": "Thread-1", "execution_time": 0.049169063568115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.028247Z", "completed_at": "2023-02-14T19:09:00.037192Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.045095Z", "completed_at": "2023-02-14T19:09:00.045102Z"}], "thread_id": "Thread-3", "execution_time": 0.019273042678833008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.032895Z", "completed_at": "2023-02-14T19:09:00.044893Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.045934Z", "completed_at": "2023-02-14T19:09:00.045939Z"}], "thread_id": "Thread-4", "execution_time": 0.019221067428588867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.033095Z", "completed_at": "2023-02-14T19:09:00.045769Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.047086Z", "completed_at": "2023-02-14T19:09:00.047090Z"}], "thread_id": "Thread-2", "execution_time": 0.019783973693847656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.037091Z", "completed_at": "2023-02-14T19:09:00.045834Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.047171Z", "completed_at": "2023-02-14T19:09:00.047176Z"}], "thread_id": "Thread-1", "execution_time": 0.019587278366088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.048484Z", "completed_at": "2023-02-14T19:09:00.057409Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.064816Z", "completed_at": "2023-02-14T19:09:00.064822Z"}], "thread_id": "Thread-3", "execution_time": 0.01870274543762207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.053260Z", "completed_at": "2023-02-14T19:09:00.064661Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.065690Z", "completed_at": "2023-02-14T19:09:00.065694Z"}], "thread_id": "Thread-4", "execution_time": 0.01816701889038086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.057340Z", "completed_at": "2023-02-14T19:09:00.065078Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.066532Z", "completed_at": "2023-02-14T19:09:00.066536Z"}], "thread_id": "Thread-2", "execution_time": 0.014739990234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.057499Z", "completed_at": "2023-02-14T19:09:00.065222Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.066625Z", "completed_at": "2023-02-14T19:09:00.066629Z"}], "thread_id": "Thread-1", "execution_time": 0.01476907730102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.068575Z", "completed_at": "2023-02-14T19:09:00.077748Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.085203Z", "completed_at": "2023-02-14T19:09:00.085209Z"}], "thread_id": "Thread-3", "execution_time": 0.019057035446166992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.073808Z", "completed_at": "2023-02-14T19:09:00.081663Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.085967Z", "completed_at": "2023-02-14T19:09:00.085971Z"}], "thread_id": "Thread-4", "execution_time": 0.01874685287475586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.077677Z", "completed_at": "2023-02-14T19:09:00.085456Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.086942Z", "completed_at": "2023-02-14T19:09:00.086946Z"}], "thread_id": "Thread-2", "execution_time": 0.019132137298583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.077847Z", "completed_at": "2023-02-14T19:09:00.086038Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.087592Z", "completed_at": "2023-02-14T19:09:00.087596Z"}], "thread_id": "Thread-1", "execution_time": 0.01954507827758789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.088920Z", "completed_at": "2023-02-14T19:09:00.097005Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.105221Z", "completed_at": "2023-02-14T19:09:00.105228Z"}], "thread_id": "Thread-3", "execution_time": 0.01873302459716797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.093183Z", "completed_at": "2023-02-14T19:09:00.101564Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.105955Z", "completed_at": "2023-02-14T19:09:00.105960Z"}], "thread_id": "Thread-4", "execution_time": 0.018543004989624023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.096934Z", "completed_at": "2023-02-14T19:09:00.105425Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.106795Z", "completed_at": "2023-02-14T19:09:00.106799Z"}], "thread_id": "Thread-2", "execution_time": 0.018266916275024414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.097138Z", "completed_at": "2023-02-14T19:09:00.106127Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.107742Z", "completed_at": "2023-02-14T19:09:00.107746Z"}], "thread_id": "Thread-1", "execution_time": 0.015258073806762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.108672Z", "completed_at": "2023-02-14T19:09:00.117025Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.120825Z", "completed_at": "2023-02-14T19:09:00.120831Z"}], "thread_id": "Thread-3", "execution_time": 0.017479896545410156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.112948Z", "completed_at": "2023-02-14T19:09:00.120599Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.124613Z", "completed_at": "2023-02-14T19:09:00.124617Z"}], "thread_id": "Thread-4", "execution_time": 0.017488956451416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.116955Z", "completed_at": "2023-02-14T19:09:00.124160Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.125546Z", "completed_at": "2023-02-14T19:09:00.125550Z"}], "thread_id": "Thread-2", "execution_time": 0.01754593849182129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.120692Z", "completed_at": "2023-02-14T19:09:00.125065Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.126608Z", "completed_at": "2023-02-14T19:09:00.126612Z"}], "thread_id": "Thread-1", "execution_time": 0.014297246932983398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.127140Z", "completed_at": "2023-02-14T19:09:00.137078Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.142021Z", "completed_at": "2023-02-14T19:09:00.142029Z"}], "thread_id": "Thread-3", "execution_time": 0.021175861358642578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.132698Z", "completed_at": "2023-02-14T19:09:00.141912Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.147158Z", "completed_at": "2023-02-14T19:09:00.147170Z"}], "thread_id": "Thread-4", "execution_time": 0.02146315574645996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.137245Z", "completed_at": "2023-02-14T19:09:00.146284Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.148373Z", "completed_at": "2023-02-14T19:09:00.148379Z"}], "thread_id": "Thread-2", "execution_time": 0.020991086959838867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.141818Z", "completed_at": "2023-02-14T19:09:00.147702Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.150568Z", "completed_at": "2023-02-14T19:09:00.150575Z"}], "thread_id": "Thread-1", "execution_time": 0.01810622215270996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.150675Z", "completed_at": "2023-02-14T19:09:00.165620Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.166604Z", "completed_at": "2023-02-14T19:09:00.166611Z"}], "thread_id": "Thread-3", "execution_time": 0.018297910690307617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.155742Z", "completed_at": "2023-02-14T19:09:00.166451Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.170719Z", "completed_at": "2023-02-14T19:09:00.170724Z"}], "thread_id": "Thread-2", "execution_time": 0.02122974395751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.155596Z", "completed_at": "2023-02-14T19:09:00.166520Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.170824Z", "completed_at": "2023-02-14T19:09:00.170829Z"}], "thread_id": "Thread-4", "execution_time": 0.021944761276245117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.166710Z", "completed_at": "2023-02-14T19:09:00.172313Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.173654Z", "completed_at": "2023-02-14T19:09:00.173658Z"}], "thread_id": "Thread-1", "execution_time": 0.009797096252441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.173571Z", "completed_at": "2023-02-14T19:09:00.175839Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.179209Z", "completed_at": "2023-02-14T19:09:00.179214Z"}], "thread_id": "Thread-3", "execution_time": 0.007691860198974609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.175672Z", "completed_at": "2023-02-14T19:09:00.179040Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.179979Z", "completed_at": "2023-02-14T19:09:00.179983Z"}], "thread_id": "Thread-2", "execution_time": 0.008758068084716797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.175760Z", "completed_at": "2023-02-14T19:09:00.179125Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.180060Z", "completed_at": "2023-02-14T19:09:00.180063Z"}], "thread_id": "Thread-4", "execution_time": 0.008827924728393555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.179883Z", "completed_at": "2023-02-14T19:09:00.182526Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.183741Z", "completed_at": "2023-02-14T19:09:00.183745Z"}], "thread_id": "Thread-1", "execution_time": 0.0075762271881103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.183661Z", "completed_at": "2023-02-14T19:09:00.186720Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.190062Z", "completed_at": "2023-02-14T19:09:00.190067Z"}], "thread_id": "Thread-3", "execution_time": 0.00838613510131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.186509Z", "completed_at": "2023-02-14T19:09:00.189903Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.190864Z", "completed_at": "2023-02-14T19:09:00.190868Z"}], "thread_id": "Thread-2", "execution_time": 0.009401082992553711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.186609Z", "completed_at": "2023-02-14T19:09:00.189981Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.190947Z", "completed_at": "2023-02-14T19:09:00.190950Z"}], "thread_id": "Thread-4", "execution_time": 0.00945591926574707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.190783Z", "completed_at": "2023-02-14T19:09:00.193232Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.194474Z", "completed_at": "2023-02-14T19:09:00.194478Z"}], "thread_id": "Thread-1", "execution_time": 0.006426095962524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.194397Z", "completed_at": "2023-02-14T19:09:00.196345Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.199538Z", "completed_at": "2023-02-14T19:09:00.199543Z"}], "thread_id": "Thread-3", "execution_time": 0.0070819854736328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.196188Z", "completed_at": "2023-02-14T19:09:00.199385Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.200257Z", "completed_at": "2023-02-14T19:09:00.200261Z"}], "thread_id": "Thread-2", "execution_time": 0.008954286575317383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.196266Z", "completed_at": "2023-02-14T19:09:00.199465Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.200337Z", "completed_at": "2023-02-14T19:09:00.200341Z"}], "thread_id": "Thread-4", "execution_time": 0.009009122848510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.200181Z", "completed_at": "2023-02-14T19:09:00.203429Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.204754Z", "completed_at": "2023-02-14T19:09:00.204759Z"}], "thread_id": "Thread-1", "execution_time": 0.007398128509521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.204671Z", "completed_at": "2023-02-14T19:09:00.206804Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.209861Z", "completed_at": "2023-02-14T19:09:00.209866Z"}], "thread_id": "Thread-3", "execution_time": 0.007183074951171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.206647Z", "completed_at": "2023-02-14T19:09:00.209703Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.210564Z", "completed_at": "2023-02-14T19:09:00.210568Z"}], "thread_id": "Thread-2", "execution_time": 0.008178234100341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.206729Z", "completed_at": "2023-02-14T19:09:00.209783Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.210644Z", "completed_at": "2023-02-14T19:09:00.210647Z"}], "thread_id": "Thread-4", "execution_time": 0.008183002471923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.210488Z", "completed_at": "2023-02-14T19:09:00.212966Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.214129Z", "completed_at": "2023-02-14T19:09:00.214134Z"}], "thread_id": "Thread-1", "execution_time": 0.006373882293701172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.214052Z", "completed_at": "2023-02-14T19:09:00.216099Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.220006Z", "completed_at": "2023-02-14T19:09:00.220013Z"}], "thread_id": "Thread-3", "execution_time": 0.008025169372558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.215947Z", "completed_at": "2023-02-14T19:09:00.219821Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.221014Z", "completed_at": "2023-02-14T19:09:00.221019Z"}], "thread_id": "Thread-2", "execution_time": 0.00945591926574707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.216025Z", "completed_at": "2023-02-14T19:09:00.219906Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.221099Z", "completed_at": "2023-02-14T19:09:00.221102Z"}], "thread_id": "Thread-4", "execution_time": 0.00951695442199707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.220929Z", "completed_at": "2023-02-14T19:09:00.223834Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.224977Z", "completed_at": "2023-02-14T19:09:00.224981Z"}], "thread_id": "Thread-1", "execution_time": 0.007125139236450195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.224898Z", "completed_at": "2023-02-14T19:09:00.226951Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.230513Z", "completed_at": "2023-02-14T19:09:00.230523Z"}], "thread_id": "Thread-3", "execution_time": 0.007556915283203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.226798Z", "completed_at": "2023-02-14T19:09:00.230355Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.231280Z", "completed_at": "2023-02-14T19:09:00.231285Z"}], "thread_id": "Thread-2", "execution_time": 0.008820772171020508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.226876Z", "completed_at": "2023-02-14T19:09:00.230435Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.231365Z", "completed_at": "2023-02-14T19:09:00.231368Z"}], "thread_id": "Thread-4", "execution_time": 0.008889913558959961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.231190Z", "completed_at": "2023-02-14T19:09:00.233944Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.235313Z", "completed_at": "2023-02-14T19:09:00.235318Z"}], "thread_id": "Thread-1", "execution_time": 0.008209705352783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.235218Z", "completed_at": "2023-02-14T19:09:00.238576Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.241760Z", "completed_at": "2023-02-14T19:09:00.241765Z"}], "thread_id": "Thread-3", "execution_time": 0.008566856384277344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.238403Z", "completed_at": "2023-02-14T19:09:00.241607Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.242452Z", "completed_at": "2023-02-14T19:09:00.242456Z"}], "thread_id": "Thread-2", "execution_time": 0.009549856185913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.238492Z", "completed_at": "2023-02-14T19:09:00.241684Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.242532Z", "completed_at": "2023-02-14T19:09:00.242535Z"}], "thread_id": "Thread-4", "execution_time": 0.009570121765136719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.242377Z", "completed_at": "2023-02-14T19:09:00.244892Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.246009Z", "completed_at": "2023-02-14T19:09:00.246013Z"}], "thread_id": "Thread-1", "execution_time": 0.006374835968017578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.245932Z", "completed_at": "2023-02-14T19:09:00.247994Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.251776Z", "completed_at": "2023-02-14T19:09:00.251780Z"}], "thread_id": "Thread-3", "execution_time": 0.007662773132324219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.247839Z", "completed_at": "2023-02-14T19:09:00.251624Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.252511Z", "completed_at": "2023-02-14T19:09:00.252514Z"}], "thread_id": "Thread-2", "execution_time": 0.008782148361206055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.247918Z", "completed_at": "2023-02-14T19:09:00.251702Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.252591Z", "completed_at": "2023-02-14T19:09:00.252595Z"}], "thread_id": "Thread-4", "execution_time": 0.00884103775024414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.252428Z", "completed_at": "2023-02-14T19:09:00.254919Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.256029Z", "completed_at": "2023-02-14T19:09:00.256034Z"}], "thread_id": "Thread-1", "execution_time": 0.006281137466430664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.255954Z", "completed_at": "2023-02-14T19:09:00.258000Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.261021Z", "completed_at": "2023-02-14T19:09:00.261025Z"}], "thread_id": "Thread-3", "execution_time": 0.0068509578704833984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.257772Z", "completed_at": "2023-02-14T19:09:00.260870Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.261748Z", "completed_at": "2023-02-14T19:09:00.261753Z"}], "thread_id": "Thread-2", "execution_time": 0.008088111877441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.257851Z", "completed_at": "2023-02-14T19:09:00.260945Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.261842Z", "completed_at": "2023-02-14T19:09:00.261845Z"}], "thread_id": "Thread-4", "execution_time": 0.008140087127685547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.261652Z", "completed_at": "2023-02-14T19:09:00.264227Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.265333Z", "completed_at": "2023-02-14T19:09:00.265337Z"}], "thread_id": "Thread-1", "execution_time": 0.006391048431396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.265256Z", "completed_at": "2023-02-14T19:09:00.267290Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.271154Z", "completed_at": "2023-02-14T19:09:00.271157Z"}], "thread_id": "Thread-3", "execution_time": 0.0076558589935302734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.267136Z", "completed_at": "2023-02-14T19:09:00.270997Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.271916Z", "completed_at": "2023-02-14T19:09:00.271919Z"}], "thread_id": "Thread-2", "execution_time": 0.014024972915649414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.267214Z", "completed_at": "2023-02-14T19:09:00.271075Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:00.271994Z", "completed_at": "2023-02-14T19:09:00.271998Z"}], "thread_id": "Thread-4", "execution_time": 0.0164949893951416, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.271836Z", "completed_at": "2023-02-14T19:09:01.153860Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:01.154117Z", "completed_at": "2023-02-14T19:09:01.154127Z"}], "thread_id": "Thread-1", "execution_time": 0.9641017913818359, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.288294Z", "completed_at": "2023-02-14T19:09:01.200876Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:01.202691Z", "completed_at": "2023-02-14T19:09:01.202698Z"}], "thread_id": "Thread-2", "execution_time": 1.0019361972808838, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.283025Z", "completed_at": "2023-02-14T19:09:01.202882Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:01.203379Z", "completed_at": "2023-02-14T19:09:01.203386Z"}], "thread_id": "Thread-3", "execution_time": 1.0115928649902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:00.288379Z", "completed_at": "2023-02-14T19:09:01.202548Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:01.203073Z", "completed_at": "2023-02-14T19:09:01.203078Z"}], "thread_id": "Thread-4", "execution_time": 1.0109641551971436, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:01.235922Z", "completed_at": "2023-02-14T19:09:02.082483Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:02.082847Z", "completed_at": "2023-02-14T19:09:02.082858Z"}], "thread_id": "Thread-1", "execution_time": 0.9339370727539062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:01.285475Z", "completed_at": "2023-02-14T19:09:02.116204Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:02.116495Z", "completed_at": "2023-02-14T19:09:02.116504Z"}], "thread_id": "Thread-2", "execution_time": 0.9509007930755615, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:01.295535Z", "completed_at": "2023-02-14T19:09:02.238542Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:02.239210Z", "completed_at": "2023-02-14T19:09:02.239216Z"}], "thread_id": "Thread-3", "execution_time": 1.033743143081665, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:01.295627Z", "completed_at": "2023-02-14T19:09:02.238764Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:02.246333Z", "completed_at": "2023-02-14T19:09:02.246339Z"}], "thread_id": "Thread-4", "execution_time": 1.043917179107666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:02.171213Z", "completed_at": "2023-02-14T19:09:03.003498Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.003767Z", "completed_at": "2023-02-14T19:09:03.003776Z"}], "thread_id": "Thread-1", "execution_time": 0.9190218448638916, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:02.238969Z", "completed_at": "2023-02-14T19:09:03.071750Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.072215Z", "completed_at": "2023-02-14T19:09:03.072223Z"}], "thread_id": "Thread-2", "execution_time": 0.9171600341796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:02.329812Z", "completed_at": "2023-02-14T19:09:03.224996Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.225202Z", "completed_at": "2023-02-14T19:09:03.225209Z"}], "thread_id": "Thread-3", "execution_time": 0.9773333072662354, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:02.340220Z", "completed_at": "2023-02-14T19:09:03.225441Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.225620Z", "completed_at": "2023-02-14T19:09:03.225624Z"}], "thread_id": "Thread-4", "execution_time": 0.9760839939117432, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:03.090015Z", "completed_at": "2023-02-14T19:09:03.925780Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.926181Z", "completed_at": "2023-02-14T19:09:03.926201Z"}], "thread_id": "Thread-1", "execution_time": 0.9176290035247803, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:03.156613Z", "completed_at": "2023-02-14T19:09:03.989891Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:03.990150Z", "completed_at": "2023-02-14T19:09:03.990158Z"}], "thread_id": "Thread-2", "execution_time": 0.9161899089813232, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:03.307701Z", "completed_at": "2023-02-14T19:09:04.166340Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:04.166736Z", "completed_at": "2023-02-14T19:09:04.166744Z"}], "thread_id": "Thread-3", "execution_time": 0.9413659572601318, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:03.316991Z", "completed_at": "2023-02-14T19:09:04.166447Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:04.166829Z", "completed_at": "2023-02-14T19:09:04.166833Z"}], "thread_id": "Thread-4", "execution_time": 0.9428369998931885, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:04.073530Z", "completed_at": "2023-02-14T19:09:04.923726Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:04.924056Z", "completed_at": "2023-02-14T19:09:04.924065Z"}], "thread_id": "Thread-2", "execution_time": 0.9359149932861328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:04.008281Z", "completed_at": "2023-02-14T19:09:04.924318Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:04.924500Z", "completed_at": "2023-02-14T19:09:04.924504Z"}], "thread_id": "Thread-1", "execution_time": 1.0018696784973145, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:04.260582Z", "completed_at": "2023-02-14T19:09:05.105975Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:05.106286Z", "completed_at": "2023-02-14T19:09:05.106293Z"}], "thread_id": "Thread-4", "execution_time": 0.9302608966827393, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:04.249737Z", "completed_at": "2023-02-14T19:09:05.106213Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:05.106570Z", "completed_at": "2023-02-14T19:09:05.106575Z"}], "thread_id": "Thread-3", "execution_time": 0.9425930976867676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:05.011596Z", "completed_at": "2023-02-14T19:09:05.935486Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:05.935713Z", "completed_at": "2023-02-14T19:09:05.935721Z"}], "thread_id": "Thread-1", "execution_time": 1.0070610046386719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:05.011484Z", "completed_at": "2023-02-14T19:09:05.937027Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:05.937209Z", "completed_at": "2023-02-14T19:09:05.937213Z"}], "thread_id": "Thread-2", "execution_time": 1.0172538757324219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:05.201206Z", "completed_at": "2023-02-14T19:09:06.097105Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:06.097279Z", "completed_at": "2023-02-14T19:09:06.097283Z"}], "thread_id": "Thread-3", "execution_time": 0.9917480945587158, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:05.192257Z", "completed_at": "2023-02-14T19:09:06.096730Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:06.096928Z", "completed_at": "2023-02-14T19:09:06.096935Z"}], "thread_id": "Thread-4", "execution_time": 0.9940907955169678, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:06.019110Z", "completed_at": "2023-02-14T19:09:06.862360Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:06.862763Z", "completed_at": "2023-02-14T19:09:06.862781Z"}], "thread_id": "Thread-1", "execution_time": 0.9291131496429443, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:06.028846Z", "completed_at": "2023-02-14T19:09:06.941032Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:06.941252Z", "completed_at": "2023-02-14T19:09:06.941258Z"}], "thread_id": "Thread-2", "execution_time": 1.0012671947479248, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:06.187128Z", "completed_at": "2023-02-14T19:09:07.077548Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:07.077834Z", "completed_at": "2023-02-14T19:09:07.077841Z"}], "thread_id": "Thread-4", "execution_time": 0.9736299514770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:06.186975Z", "completed_at": "2023-02-14T19:09:07.077753Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:07.078107Z", "completed_at": "2023-02-14T19:09:07.078110Z"}], "thread_id": "Thread-3", "execution_time": 0.9751358032226562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:06.948598Z", "completed_at": "2023-02-14T19:09:07.939445Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:07.939714Z", "completed_at": "2023-02-14T19:09:07.939723Z"}], "thread_id": "Thread-1", "execution_time": 1.0832719802856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:07.030961Z", "completed_at": "2023-02-14T19:09:08.032303Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:08.032745Z", "completed_at": "2023-02-14T19:09:08.032750Z"}], "thread_id": "Thread-2", "execution_time": 1.0911638736724854, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:07.162963Z", "completed_at": "2023-02-14T19:09:08.180303Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:08.185099Z", "completed_at": "2023-02-14T19:09:08.185107Z"}], "thread_id": "Thread-4", "execution_time": 1.106367826461792, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:07.170813Z", "completed_at": "2023-02-14T19:09:08.185405Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:08.185568Z", "completed_at": "2023-02-14T19:09:08.185572Z"}], "thread_id": "Thread-3", "execution_time": 1.114821195602417, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:08.032660Z", "completed_at": "2023-02-14T19:09:08.904785Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:08.905187Z", "completed_at": "2023-02-14T19:09:08.905206Z"}], "thread_id": "Thread-1", "execution_time": 0.959083080291748, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:08.993284Z", "completed_at": "2023-02-14T19:09:09.008095Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.008333Z", "completed_at": "2023-02-14T19:09:09.008339Z"}], "thread_id": "Thread-1", "execution_time": 0.01634526252746582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.009579Z", "completed_at": "2023-02-14T19:09:09.017524Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.017723Z", "completed_at": "2023-02-14T19:09:09.017728Z"}], "thread_id": "Thread-1", "execution_time": 0.008931159973144531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.018779Z", "completed_at": "2023-02-14T19:09:09.023567Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.023771Z", "completed_at": "2023-02-14T19:09:09.023776Z"}], "thread_id": "Thread-1", "execution_time": 0.005671262741088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.024745Z", "completed_at": "2023-02-14T19:09:09.028106Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.028286Z", "completed_at": "2023-02-14T19:09:09.028291Z"}], "thread_id": "Thread-1", "execution_time": 0.0041790008544921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.029250Z", "completed_at": "2023-02-14T19:09:09.031806Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.031984Z", "completed_at": "2023-02-14T19:09:09.031989Z"}], "thread_id": "Thread-1", "execution_time": 0.0033757686614990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.032911Z", "completed_at": "2023-02-14T19:09:09.041561Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.041741Z", "completed_at": "2023-02-14T19:09:09.041746Z"}], "thread_id": "Thread-1", "execution_time": 0.009459972381591797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.042669Z", "completed_at": "2023-02-14T19:09:09.046627Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.046806Z", "completed_at": "2023-02-14T19:09:09.046811Z"}], "thread_id": "Thread-1", "execution_time": 0.004736900329589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.047687Z", "completed_at": "2023-02-14T19:09:09.050688Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.050863Z", "completed_at": "2023-02-14T19:09:09.050867Z"}], "thread_id": "Thread-1", "execution_time": 0.003762960433959961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.051723Z", "completed_at": "2023-02-14T19:09:09.054814Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.054983Z", "completed_at": "2023-02-14T19:09:09.054987Z"}], "thread_id": "Thread-1", "execution_time": 0.0038509368896484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.055851Z", "completed_at": "2023-02-14T19:09:09.058855Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.059034Z", "completed_at": "2023-02-14T19:09:09.059038Z"}], "thread_id": "Thread-1", "execution_time": 0.0037686824798583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.059888Z", "completed_at": "2023-02-14T19:09:09.064836Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.065011Z", "completed_at": "2023-02-14T19:09:09.065015Z"}], "thread_id": "Thread-1", "execution_time": 0.005716800689697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.065900Z", "completed_at": "2023-02-14T19:09:09.068989Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.069172Z", "completed_at": "2023-02-14T19:09:09.069177Z"}], "thread_id": "Thread-1", "execution_time": 0.0038640499114990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.070035Z", "completed_at": "2023-02-14T19:09:09.073053Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.073217Z", "completed_at": "2023-02-14T19:09:09.073221Z"}], "thread_id": "Thread-1", "execution_time": 0.0037679672241210938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.074077Z", "completed_at": "2023-02-14T19:09:09.077805Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.078054Z", "completed_at": "2023-02-14T19:09:09.078058Z"}], "thread_id": "Thread-1", "execution_time": 0.004623889923095703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:08.122580Z", "completed_at": "2023-02-14T19:09:08.990556Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:08.992074Z", "completed_at": "2023-02-14T19:09:08.992081Z"}], "thread_id": "Thread-2", "execution_time": 0.9569861888885498, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.080124Z", "completed_at": "2023-02-14T19:09:09.120933Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.121658Z", "completed_at": "2023-02-14T19:09:09.121665Z"}], "thread_id": "Thread-2", "execution_time": 0.04263806343078613, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.080040Z", "completed_at": "2023-02-14T19:09:09.121035Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.121746Z", "completed_at": "2023-02-14T19:09:09.121750Z"}], "thread_id": "Thread-1", "execution_time": 0.04327392578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.124141Z", "completed_at": "2023-02-14T19:09:09.132422Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.132758Z", "completed_at": "2023-02-14T19:09:09.132763Z"}], "thread_id": "Thread-2", "execution_time": 0.009746313095092773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.124225Z", "completed_at": "2023-02-14T19:09:09.132492Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.132840Z", "completed_at": "2023-02-14T19:09:09.132844Z"}], "thread_id": "Thread-1", "execution_time": 0.009802103042602539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.134598Z", "completed_at": "2023-02-14T19:09:09.142196Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.142538Z", "completed_at": "2023-02-14T19:09:09.142543Z"}], "thread_id": "Thread-2", "execution_time": 0.008990049362182617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.134674Z", "completed_at": "2023-02-14T19:09:09.142267Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.142622Z", "completed_at": "2023-02-14T19:09:09.142626Z"}], "thread_id": "Thread-1", "execution_time": 0.009054899215698242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.144426Z", "completed_at": "2023-02-14T19:09:09.194260Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.194479Z", "completed_at": "2023-02-14T19:09:09.194486Z"}], "thread_id": "Thread-2", "execution_time": 0.051238059997558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.144507Z", "completed_at": "2023-02-14T19:09:09.195815Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.199329Z", "completed_at": "2023-02-14T19:09:09.199334Z"}], "thread_id": "Thread-1", "execution_time": 0.055673837661743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.195725Z", "completed_at": "2023-02-14T19:09:09.199889Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.200561Z", "completed_at": "2023-02-14T19:09:09.200567Z"}], "thread_id": "Thread-2", "execution_time": 0.005610942840576172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:08.268753Z", "completed_at": "2023-02-14T19:09:09.121480Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.122744Z", "completed_at": "2023-02-14T19:09:09.122748Z"}], "thread_id": "Thread-4", "execution_time": 0.938068151473999, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:08.278818Z", "completed_at": "2023-02-14T19:09:09.121208Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.121917Z", "completed_at": "2023-02-14T19:09:09.121922Z"}], "thread_id": "Thread-3", "execution_time": 0.9281930923461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.200652Z", "completed_at": "2023-02-14T19:09:09.206561Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.207878Z", "completed_at": "2023-02-14T19:09:09.207883Z"}], "thread_id": "Thread-1", "execution_time": 0.011380195617675781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.207259Z", "completed_at": "2023-02-14T19:09:09.211987Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.220467Z", "completed_at": "2023-02-14T19:09:09.220474Z"}], "thread_id": "Thread-2", "execution_time": 0.015496969223022461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.211746Z", "completed_at": "2023-02-14T19:09:09.220557Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.225705Z", "completed_at": "2023-02-14T19:09:09.225711Z"}], "thread_id": "Thread-3", "execution_time": 0.01881885528564453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.211638Z", "completed_at": "2023-02-14T19:09:09.220621Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.225800Z", "completed_at": "2023-02-14T19:09:09.225804Z"}], "thread_id": "Thread-4", "execution_time": 0.019443035125732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.220728Z", "completed_at": "2023-02-14T19:09:09.226910Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.228136Z", "completed_at": "2023-02-14T19:09:09.228140Z"}], "thread_id": "Thread-1", "execution_time": 0.011883020401000977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.227468Z", "completed_at": "2023-02-14T19:09:09.232152Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.239644Z", "completed_at": "2023-02-14T19:09:09.239651Z"}], "thread_id": "Thread-2", "execution_time": 0.014250040054321289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.231823Z", "completed_at": "2023-02-14T19:09:09.239834Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.245439Z", "completed_at": "2023-02-14T19:09:09.245444Z"}], "thread_id": "Thread-3", "execution_time": 0.018636226654052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.231927Z", "completed_at": "2023-02-14T19:09:09.239893Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.245571Z", "completed_at": "2023-02-14T19:09:09.245575Z"}], "thread_id": "Thread-4", "execution_time": 0.018680095672607422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.239766Z", "completed_at": "2023-02-14T19:09:09.245640Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.247133Z", "completed_at": "2023-02-14T19:09:09.247137Z"}], "thread_id": "Thread-1", "execution_time": 0.008970022201538086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.247218Z", "completed_at": "2023-02-14T19:09:09.252064Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.259468Z", "completed_at": "2023-02-14T19:09:09.259473Z"}], "thread_id": "Thread-2", "execution_time": 0.018534183502197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.251595Z", "completed_at": "2023-02-14T19:09:09.259541Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.264839Z", "completed_at": "2023-02-14T19:09:09.264843Z"}], "thread_id": "Thread-3", "execution_time": 0.01826310157775879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.251706Z", "completed_at": "2023-02-14T19:09:09.259598Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.264997Z", "completed_at": "2023-02-14T19:09:09.265001Z"}], "thread_id": "Thread-4", "execution_time": 0.018425941467285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.259353Z", "completed_at": "2023-02-14T19:09:09.264916Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.266338Z", "completed_at": "2023-02-14T19:09:09.266342Z"}], "thread_id": "Thread-1", "execution_time": 0.015275001525878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.266552Z", "completed_at": "2023-02-14T19:09:09.271292Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.279413Z", "completed_at": "2023-02-14T19:09:09.279420Z"}], "thread_id": "Thread-2", "execution_time": 0.017767906188964844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.270850Z", "completed_at": "2023-02-14T19:09:09.279495Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.283501Z", "completed_at": "2023-02-14T19:09:09.283505Z"}], "thread_id": "Thread-3", "execution_time": 0.017586231231689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.271233Z", "completed_at": "2023-02-14T19:09:09.282547Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.283590Z", "completed_at": "2023-02-14T19:09:09.283594Z"}], "thread_id": "Thread-4", "execution_time": 0.017336130142211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.279235Z", "completed_at": "2023-02-14T19:09:09.283416Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.284765Z", "completed_at": "2023-02-14T19:09:09.284769Z"}], "thread_id": "Thread-1", "execution_time": 0.014441967010498047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.285127Z", "completed_at": "2023-02-14T19:09:09.291028Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.297200Z", "completed_at": "2023-02-14T19:09:09.297205Z"}], "thread_id": "Thread-2", "execution_time": 0.01746201515197754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.290870Z", "completed_at": "2023-02-14T19:09:09.300844Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.301832Z", "completed_at": "2023-02-14T19:09:09.301836Z"}], "thread_id": "Thread-3", "execution_time": 0.017040252685546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.290963Z", "completed_at": "2023-02-14T19:09:09.301268Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.302301Z", "completed_at": "2023-02-14T19:09:09.302306Z"}], "thread_id": "Thread-4", "execution_time": 0.01725912094116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.297023Z", "completed_at": "2023-02-14T19:09:09.301655Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.302789Z", "completed_at": "2023-02-14T19:09:09.302793Z"}], "thread_id": "Thread-1", "execution_time": 0.013129949569702148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.303382Z", "completed_at": "2023-02-14T19:09:09.308868Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.316386Z", "completed_at": "2023-02-14T19:09:09.316391Z"}], "thread_id": "Thread-2", "execution_time": 0.01780414581298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.308959Z", "completed_at": "2023-02-14T19:09:09.319429Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.320469Z", "completed_at": "2023-02-14T19:09:09.320473Z"}], "thread_id": "Thread-3", "execution_time": 0.017246007919311523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.309130Z", "completed_at": "2023-02-14T19:09:09.319963Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.320939Z", "completed_at": "2023-02-14T19:09:09.320944Z"}], "thread_id": "Thread-4", "execution_time": 0.01373910903930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.312640Z", "completed_at": "2023-02-14T19:09:09.320290Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.321524Z", "completed_at": "2023-02-14T19:09:09.321529Z"}], "thread_id": "Thread-1", "execution_time": 0.013880014419555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.322109Z", "completed_at": "2023-02-14T19:09:09.329382Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.337983Z", "completed_at": "2023-02-14T19:09:09.337990Z"}], "thread_id": "Thread-2", "execution_time": 0.02079010009765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.329318Z", "completed_at": "2023-02-14T19:09:09.341486Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.342466Z", "completed_at": "2023-02-14T19:09:09.342470Z"}], "thread_id": "Thread-3", "execution_time": 0.020324230194091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.329542Z", "completed_at": "2023-02-14T19:09:09.341754Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.342712Z", "completed_at": "2023-02-14T19:09:09.342716Z"}], "thread_id": "Thread-4", "execution_time": 0.014975309371948242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.334078Z", "completed_at": "2023-02-14T19:09:09.342002Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.343120Z", "completed_at": "2023-02-14T19:09:09.343123Z"}], "thread_id": "Thread-1", "execution_time": 0.015021085739135742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.343203Z", "completed_at": "2023-02-14T19:09:09.348272Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.351349Z", "completed_at": "2023-02-14T19:09:09.351354Z"}], "thread_id": "Thread-2", "execution_time": 0.016839981079101562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.348443Z", "completed_at": "2023-02-14T19:09:09.359146Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.360013Z", "completed_at": "2023-02-14T19:09:09.360018Z"}], "thread_id": "Thread-3", "execution_time": 0.01332998275756836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.351262Z", "completed_at": "2023-02-14T19:09:09.359564Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.360682Z", "completed_at": "2023-02-14T19:09:09.360687Z"}], "thread_id": "Thread-1", "execution_time": 0.01333308219909668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.348677Z", "completed_at": "2023-02-14T19:09:09.359628Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.360782Z", "completed_at": "2023-02-14T19:09:09.360786Z"}], "thread_id": "Thread-4", "execution_time": 0.014059782028198242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.360880Z", "completed_at": "2023-02-14T19:09:09.367325Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.370893Z", "completed_at": "2023-02-14T19:09:09.370898Z"}], "thread_id": "Thread-2", "execution_time": 0.018360137939453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.367412Z", "completed_at": "2023-02-14T19:09:09.378219Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.379139Z", "completed_at": "2023-02-14T19:09:09.379144Z"}], "thread_id": "Thread-3", "execution_time": 0.013631105422973633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.370709Z", "completed_at": "2023-02-14T19:09:09.378691Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.379819Z", "completed_at": "2023-02-14T19:09:09.379824Z"}], "thread_id": "Thread-1", "execution_time": 0.013590097427368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.370799Z", "completed_at": "2023-02-14T19:09:09.378759Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.379909Z", "completed_at": "2023-02-14T19:09:09.379912Z"}], "thread_id": "Thread-4", "execution_time": 0.01363515853881836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.379989Z", "completed_at": "2023-02-14T19:09:09.387072Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.392874Z", "completed_at": "2023-02-14T19:09:09.392881Z"}], "thread_id": "Thread-2", "execution_time": 0.021052837371826172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.387157Z", "completed_at": "2023-02-14T19:09:09.400066Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.401196Z", "completed_at": "2023-02-14T19:09:09.401200Z"}], "thread_id": "Thread-3", "execution_time": 0.015947818756103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.392689Z", "completed_at": "2023-02-14T19:09:09.400455Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.401356Z", "completed_at": "2023-02-14T19:09:09.401360Z"}], "thread_id": "Thread-1", "execution_time": 0.015549898147583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.392786Z", "completed_at": "2023-02-14T19:09:09.400570Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.401435Z", "completed_at": "2023-02-14T19:09:09.401439Z"}], "thread_id": "Thread-4", "execution_time": 0.015584945678710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.401835Z", "completed_at": "2023-02-14T19:09:09.408283Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.413027Z", "completed_at": "2023-02-14T19:09:09.413035Z"}], "thread_id": "Thread-2", "execution_time": 0.01947188377380371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.408536Z", "completed_at": "2023-02-14T19:09:09.420507Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.421650Z", "completed_at": "2023-02-14T19:09:09.421656Z"}], "thread_id": "Thread-3", "execution_time": 0.014887809753417969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.408701Z", "completed_at": "2023-02-14T19:09:09.420862Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.421821Z", "completed_at": "2023-02-14T19:09:09.421825Z"}], "thread_id": "Thread-1", "execution_time": 0.015101909637451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.408778Z", "completed_at": "2023-02-14T19:09:09.420970Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.421899Z", "completed_at": "2023-02-14T19:09:09.421903Z"}], "thread_id": "Thread-4", "execution_time": 0.015102863311767578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.422322Z", "completed_at": "2023-02-14T19:09:09.427755Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.439940Z", "completed_at": "2023-02-14T19:09:09.439949Z"}], "thread_id": "Thread-2", "execution_time": 0.019546985626220703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.427842Z", "completed_at": "2023-02-14T19:09:09.440944Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.442482Z", "completed_at": "2023-02-14T19:09:09.442490Z"}], "thread_id": "Thread-3", "execution_time": 0.017008066177368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.428006Z", "completed_at": "2023-02-14T19:09:09.441042Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.442627Z", "completed_at": "2023-02-14T19:09:09.442632Z"}], "thread_id": "Thread-4", "execution_time": 0.01662898063659668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.427925Z", "completed_at": "2023-02-14T19:09:09.441216Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.442763Z", "completed_at": "2023-02-14T19:09:09.442773Z"}], "thread_id": "Thread-1", "execution_time": 0.01738429069519043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.444500Z", "completed_at": "2023-02-14T19:09:09.451370Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.463478Z", "completed_at": "2023-02-14T19:09:09.463486Z"}], "thread_id": "Thread-2", "execution_time": 0.021987199783325195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.451508Z", "completed_at": "2023-02-14T19:09:09.464227Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.465224Z", "completed_at": "2023-02-14T19:09:09.465229Z"}], "thread_id": "Thread-3", "execution_time": 0.01571822166442871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.451605Z", "completed_at": "2023-02-14T19:09:09.464320Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.465307Z", "completed_at": "2023-02-14T19:09:09.465312Z"}], "thread_id": "Thread-4", "execution_time": 0.015717744827270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.451689Z", "completed_at": "2023-02-14T19:09:09.464400Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.465391Z", "completed_at": "2023-02-14T19:09:09.465394Z"}], "thread_id": "Thread-1", "execution_time": 0.015733003616333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.466547Z", "completed_at": "2023-02-14T19:09:09.471664Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.481048Z", "completed_at": "2023-02-14T19:09:09.481055Z"}], "thread_id": "Thread-2", "execution_time": 0.020840883255004883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.471949Z", "completed_at": "2023-02-14T19:09:09.486192Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.487302Z", "completed_at": "2023-02-14T19:09:09.487310Z"}], "thread_id": "Thread-4", "execution_time": 0.017366886138916016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.472145Z", "completed_at": "2023-02-14T19:09:09.486678Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.488214Z", "completed_at": "2023-02-14T19:09:09.488218Z"}], "thread_id": "Thread-1", "execution_time": 0.018035888671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.471864Z", "completed_at": "2023-02-14T19:09:09.486811Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.488330Z", "completed_at": "2023-02-14T19:09:09.488338Z"}], "thread_id": "Thread-3", "execution_time": 0.019031763076782227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.488458Z", "completed_at": "2023-02-14T19:09:09.494711Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.499323Z", "completed_at": "2023-02-14T19:09:09.499329Z"}], "thread_id": "Thread-2", "execution_time": 0.020129919052124023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.494647Z", "completed_at": "2023-02-14T19:09:09.506741Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.507892Z", "completed_at": "2023-02-14T19:09:09.507897Z"}], "thread_id": "Thread-4", "execution_time": 0.01532602310180664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.499198Z", "completed_at": "2023-02-14T19:09:09.507739Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.508869Z", "completed_at": "2023-02-14T19:09:09.508873Z"}], "thread_id": "Thread-3", "execution_time": 0.015054941177368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.499106Z", "completed_at": "2023-02-14T19:09:09.507806Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.508955Z", "completed_at": "2023-02-14T19:09:09.508959Z"}], "thread_id": "Thread-1", "execution_time": 0.015668869018554688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.509169Z", "completed_at": "2023-02-14T19:09:09.516225Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.519699Z", "completed_at": "2023-02-14T19:09:09.519704Z"}], "thread_id": "Thread-2", "execution_time": 0.018158912658691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.516160Z", "completed_at": "2023-02-14T19:09:09.526298Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.527332Z", "completed_at": "2023-02-14T19:09:09.527337Z"}], "thread_id": "Thread-4", "execution_time": 0.017979145050048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.519496Z", "completed_at": "2023-02-14T19:09:09.526680Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.527584Z", "completed_at": "2023-02-14T19:09:09.527587Z"}], "thread_id": "Thread-3", "execution_time": 0.012803792953491211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.519579Z", "completed_at": "2023-02-14T19:09:09.526863Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.528006Z", "completed_at": "2023-02-14T19:09:09.528010Z"}], "thread_id": "Thread-1", "execution_time": 0.012944936752319336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.528095Z", "completed_at": "2023-02-14T19:09:09.532985Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.537758Z", "completed_at": "2023-02-14T19:09:09.537765Z"}], "thread_id": "Thread-2", "execution_time": 0.01887989044189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.533172Z", "completed_at": "2023-02-14T19:09:09.546085Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.547193Z", "completed_at": "2023-02-14T19:09:09.547198Z"}], "thread_id": "Thread-4", "execution_time": 0.015897035598754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.533405Z", "completed_at": "2023-02-14T19:09:09.546400Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.547370Z", "completed_at": "2023-02-14T19:09:09.547374Z"}], "thread_id": "Thread-3", "execution_time": 0.015831947326660156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.537654Z", "completed_at": "2023-02-14T19:09:09.546531Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.547454Z", "completed_at": "2023-02-14T19:09:09.547459Z"}], "thread_id": "Thread-1", "execution_time": 0.015783071517944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.547907Z", "completed_at": "2023-02-14T19:09:09.569656Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.570316Z", "completed_at": "2023-02-14T19:09:09.570322Z"}], "thread_id": "Thread-2", "execution_time": 0.06620621681213379, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.570087Z", "completed_at": "2023-02-14T19:09:09.613519Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.614600Z", "completed_at": "2023-02-14T19:09:09.614608Z"}], "thread_id": "Thread-4", "execution_time": 0.04643416404724121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.570243Z", "completed_at": "2023-02-14T19:09:09.613925Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.614789Z", "completed_at": "2023-02-14T19:09:09.614793Z"}], "thread_id": "Thread-1", "execution_time": 0.04614710807800293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.615217Z", "completed_at": "2023-02-14T19:09:09.620573Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.623911Z", "completed_at": "2023-02-14T19:09:09.623917Z"}], "thread_id": "Thread-2", "execution_time": 0.009996891021728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.620507Z", "completed_at": "2023-02-14T19:09:09.624422Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.624602Z", "completed_at": "2023-02-14T19:09:09.624606Z"}], "thread_id": "Thread-4", "execution_time": 0.004803895950317383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.625596Z", "completed_at": "2023-02-14T19:09:09.630125Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:09.630298Z", "completed_at": "2023-02-14T19:09:09.630303Z"}], "thread_id": "Thread-1", "execution_time": 0.005321979522705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:09.570171Z", "completed_at": "2023-02-14T19:09:11.535830Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:11.536139Z", "completed_at": "2023-02-14T19:09:11.536148Z"}], "thread_id": "Thread-3", "execution_time": 2.049555778503418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:11.621825Z", "completed_at": "2023-02-14T19:09:11.648129Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:11.648421Z", "completed_at": "2023-02-14T19:09:11.648430Z"}], "thread_id": "Thread-2", "execution_time": 0.02805781364440918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:11.621662Z", "completed_at": "2023-02-14T19:09:12.860057Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.860377Z", "completed_at": "2023-02-14T19:09:12.860389Z"}], "thread_id": "Thread-4", "execution_time": 1.3229098320007324, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.946023Z", "completed_at": "2023-02-14T19:09:12.954618Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.954953Z", "completed_at": "2023-02-14T19:09:12.954962Z"}], "thread_id": "Thread-3", "execution_time": 0.010462045669555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.956958Z", "completed_at": "2023-02-14T19:09:12.968081Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.968331Z", "completed_at": "2023-02-14T19:09:12.968337Z"}], "thread_id": "Thread-2", "execution_time": 0.012343883514404297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.969889Z", "completed_at": "2023-02-14T19:09:12.975323Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.975547Z", "completed_at": "2023-02-14T19:09:12.975553Z"}], "thread_id": "Thread-1", "execution_time": 0.006536006927490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.978750Z", "completed_at": "2023-02-14T19:09:12.990039Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.990716Z", "completed_at": "2023-02-14T19:09:12.990722Z"}], "thread_id": "Thread-2", "execution_time": 0.01417398452758789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.978615Z", "completed_at": "2023-02-14T19:09:12.990139Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.990921Z", "completed_at": "2023-02-14T19:09:12.990925Z"}], "thread_id": "Thread-4", "execution_time": 0.015017986297607422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.978892Z", "completed_at": "2023-02-14T19:09:12.990236Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.991037Z", "completed_at": "2023-02-14T19:09:12.991041Z"}], "thread_id": "Thread-3", "execution_time": 0.01470494270324707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.980305Z", "completed_at": "2023-02-14T19:09:12.990425Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:12.991550Z", "completed_at": "2023-02-14T19:09:12.991553Z"}], "thread_id": "Thread-1", "execution_time": 0.014971733093261719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.994524Z", "completed_at": "2023-02-14T19:09:13.007418Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.016889Z", "completed_at": "2023-02-14T19:09:13.016895Z"}], "thread_id": "Thread-2", "execution_time": 0.042510986328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:12.999990Z", "completed_at": "2023-02-14T19:09:13.016742Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.036012Z", "completed_at": "2023-02-14T19:09:13.036018Z"}], "thread_id": "Thread-4", "execution_time": 0.04271197319030762, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:13.000080Z", "completed_at": "2023-02-14T19:09:13.035011Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.036310Z", "completed_at": "2023-02-14T19:09:13.036316Z"}], "thread_id": "Thread-3", "execution_time": 0.042916297912597656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:13.000207Z", "completed_at": "2023-02-14T19:09:13.035225Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.036858Z", "completed_at": "2023-02-14T19:09:13.036864Z"}], "thread_id": "Thread-1", "execution_time": 0.04320192337036133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:13.038538Z", "completed_at": "2023-02-14T19:09:13.041303Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.041479Z", "completed_at": "2023-02-14T19:09:13.041484Z"}], "thread_id": "Thread-2", "execution_time": 0.003721952438354492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:13.043133Z", "completed_at": "2023-02-14T19:09:13.050883Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.051230Z", "completed_at": "2023-02-14T19:09:13.051235Z"}], "thread_id": "Thread-4", "execution_time": 0.009208202362060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T19:09:13.043216Z", "completed_at": "2023-02-14T19:09:13.050958Z"}, {"name": "execute", "started_at": "2023-02-14T19:09:13.051312Z", "completed_at": "2023-02-14T19:09:13.051316Z"}], "thread_id": "Thread-3", "execution_time": 0.009246826171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"}], "elapsed_time": 15.657771110534668, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2023-02-14T23:14:51.811621Z", "invocation_id": "76c252a5-fad4-463c-bb70-ab196883780d", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.347982Z", "completed_at": "2023-02-14T23:14:38.380055Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.380900Z", "completed_at": "2023-02-14T23:14:38.380922Z"}], "thread_id": "Thread-1", "execution_time": 0.03560018539428711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.348285Z", "completed_at": "2023-02-14T23:14:38.380660Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.382048Z", "completed_at": "2023-02-14T23:14:38.382053Z"}], "thread_id": "Thread-3", "execution_time": 0.036029815673828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.348179Z", "completed_at": "2023-02-14T23:14:38.380796Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.382151Z", "completed_at": "2023-02-14T23:14:38.382156Z"}], "thread_id": "Thread-2", "execution_time": 0.03674888610839844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.366603Z", "completed_at": "2023-02-14T23:14:38.381035Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.382594Z", "completed_at": "2023-02-14T23:14:38.382598Z"}], "thread_id": "Thread-4", "execution_time": 0.03662514686584473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.385578Z", "completed_at": "2023-02-14T23:14:38.432675Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.437323Z", "completed_at": "2023-02-14T23:14:38.437352Z"}], "thread_id": "Thread-1", "execution_time": 0.05456995964050293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.424320Z", "completed_at": "2023-02-14T23:14:38.436961Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.438432Z", "completed_at": "2023-02-14T23:14:38.438447Z"}], "thread_id": "Thread-3", "execution_time": 0.05443406105041504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.424416Z", "completed_at": "2023-02-14T23:14:38.437130Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.438615Z", "completed_at": "2023-02-14T23:14:38.438623Z"}], "thread_id": "Thread-2", "execution_time": 0.05453372001647949, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.424602Z", "completed_at": "2023-02-14T23:14:38.437731Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.440002Z", "completed_at": "2023-02-14T23:14:38.440008Z"}], "thread_id": "Thread-4", "execution_time": 0.05538463592529297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.442098Z", "completed_at": "2023-02-14T23:14:38.456514Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.461118Z", "completed_at": "2023-02-14T23:14:38.461130Z"}], "thread_id": "Thread-1", "execution_time": 0.021648168563842773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.446953Z", "completed_at": "2023-02-14T23:14:38.456804Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.461238Z", "completed_at": "2023-02-14T23:14:38.461243Z"}], "thread_id": "Thread-3", "execution_time": 0.020862102508544922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.447136Z", "completed_at": "2023-02-14T23:14:38.460447Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.461409Z", "completed_at": "2023-02-14T23:14:38.461413Z"}], "thread_id": "Thread-2", "execution_time": 0.02110910415649414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.456344Z", "completed_at": "2023-02-14T23:14:38.461318Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.463468Z", "completed_at": "2023-02-14T23:14:38.463474Z"}], "thread_id": "Thread-4", "execution_time": 0.02223801612854004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.465653Z", "completed_at": "2023-02-14T23:14:38.478516Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.483663Z", "completed_at": "2023-02-14T23:14:38.483674Z"}], "thread_id": "Thread-3", "execution_time": 0.020184993743896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.465566Z", "completed_at": "2023-02-14T23:14:38.482935Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.483835Z", "completed_at": "2023-02-14T23:14:38.483840Z"}], "thread_id": "Thread-1", "execution_time": 0.020967960357666016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.466016Z", "completed_at": "2023-02-14T23:14:38.483073Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.483933Z", "completed_at": "2023-02-14T23:14:38.483937Z"}], "thread_id": "Thread-2", "execution_time": 0.02037215232849121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.478106Z", "completed_at": "2023-02-14T23:14:38.483748Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.485601Z", "completed_at": "2023-02-14T23:14:38.485607Z"}], "thread_id": "Thread-4", "execution_time": 0.021209716796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.488454Z", "completed_at": "2023-02-14T23:14:38.502422Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.507134Z", "completed_at": "2023-02-14T23:14:38.507144Z"}], "thread_id": "Thread-3", "execution_time": 0.02144002914428711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.488870Z", "completed_at": "2023-02-14T23:14:38.506582Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.507240Z", "completed_at": "2023-02-14T23:14:38.507244Z"}], "thread_id": "Thread-1", "execution_time": 0.020869731903076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.488959Z", "completed_at": "2023-02-14T23:14:38.507018Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.508309Z", "completed_at": "2023-02-14T23:14:38.508314Z"}], "thread_id": "Thread-2", "execution_time": 0.021617889404296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.502015Z", "completed_at": "2023-02-14T23:14:38.507307Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.508877Z", "completed_at": "2023-02-14T23:14:38.508881Z"}], "thread_id": "Thread-4", "execution_time": 0.02146291732788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.511194Z", "completed_at": "2023-02-14T23:14:38.529670Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.530394Z", "completed_at": "2023-02-14T23:14:38.530406Z"}], "thread_id": "Thread-3", "execution_time": 0.021816253662109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.511292Z", "completed_at": "2023-02-14T23:14:38.529889Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.530726Z", "completed_at": "2023-02-14T23:14:38.530733Z"}], "thread_id": "Thread-1", "execution_time": 0.022197961807250977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.520084Z", "completed_at": "2023-02-14T23:14:38.530528Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.532211Z", "completed_at": "2023-02-14T23:14:38.532219Z"}], "thread_id": "Thread-4", "execution_time": 0.02181100845336914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.519623Z", "completed_at": "2023-02-14T23:14:38.530623Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.532372Z", "completed_at": "2023-02-14T23:14:38.532376Z"}], "thread_id": "Thread-2", "execution_time": 0.02276015281677246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.534573Z", "completed_at": "2023-02-14T23:14:38.544405Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.553237Z", "completed_at": "2023-02-14T23:14:38.553253Z"}], "thread_id": "Thread-3", "execution_time": 0.02157115936279297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.535224Z", "completed_at": "2023-02-14T23:14:38.552379Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.553499Z", "completed_at": "2023-02-14T23:14:38.553515Z"}], "thread_id": "Thread-1", "execution_time": 0.02086496353149414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.544210Z", "completed_at": "2023-02-14T23:14:38.553654Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.555798Z", "completed_at": "2023-02-14T23:14:38.555810Z"}], "thread_id": "Thread-2", "execution_time": 0.0224301815032959, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.544112Z", "completed_at": "2023-02-14T23:14:38.553730Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.555993Z", "completed_at": "2023-02-14T23:14:38.556005Z"}], "thread_id": "Thread-4", "execution_time": 0.023187875747680664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.558893Z", "completed_at": "2023-02-14T23:14:38.584862Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.585431Z", "completed_at": "2023-02-14T23:14:38.585444Z"}], "thread_id": "Thread-1", "execution_time": 0.02960801124572754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.573813Z", "completed_at": "2023-02-14T23:14:38.584498Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.587005Z", "completed_at": "2023-02-14T23:14:38.587016Z"}], "thread_id": "Thread-2", "execution_time": 0.029856204986572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.578819Z", "completed_at": "2023-02-14T23:14:38.585592Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.589121Z", "completed_at": "2023-02-14T23:14:38.589127Z"}], "thread_id": "Thread-4", "execution_time": 0.03128385543823242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.558800Z", "completed_at": "2023-02-14T23:14:38.586709Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.589629Z", "completed_at": "2023-02-14T23:14:38.589645Z"}], "thread_id": "Thread-3", "execution_time": 0.03526139259338379, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.592642Z", "completed_at": "2023-02-14T23:14:38.603882Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.614024Z", "completed_at": "2023-02-14T23:14:38.614044Z"}], "thread_id": "Thread-1", "execution_time": 0.025568008422851562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.598757Z", "completed_at": "2023-02-14T23:14:38.613742Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.615014Z", "completed_at": "2023-02-14T23:14:38.615020Z"}], "thread_id": "Thread-2", "execution_time": 0.024116992950439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.603722Z", "completed_at": "2023-02-14T23:14:38.614397Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.616055Z", "completed_at": "2023-02-14T23:14:38.616060Z"}], "thread_id": "Thread-4", "execution_time": 0.023643970489501953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.604021Z", "completed_at": "2023-02-14T23:14:38.615093Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.616655Z", "completed_at": "2023-02-14T23:14:38.616659Z"}], "thread_id": "Thread-3", "execution_time": 0.019243717193603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.617986Z", "completed_at": "2023-02-14T23:14:38.621012Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.625113Z", "completed_at": "2023-02-14T23:14:38.625122Z"}], "thread_id": "Thread-1", "execution_time": 0.010888814926147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.620454Z", "completed_at": "2023-02-14T23:14:38.623250Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.627208Z", "completed_at": "2023-02-14T23:14:38.627213Z"}], "thread_id": "Thread-2", "execution_time": 0.010854005813598633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.622920Z", "completed_at": "2023-02-14T23:14:38.626695Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.628290Z", "completed_at": "2023-02-14T23:14:38.628295Z"}], "thread_id": "Thread-4", "execution_time": 0.01089620590209961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.623380Z", "completed_at": "2023-02-14T23:14:38.627306Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.628860Z", "completed_at": "2023-02-14T23:14:38.628865Z"}], "thread_id": "Thread-3", "execution_time": 0.009356021881103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.630183Z", "completed_at": "2023-02-14T23:14:38.633180Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.637663Z", "completed_at": "2023-02-14T23:14:38.637675Z"}], "thread_id": "Thread-1", "execution_time": 0.011477947235107422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.632637Z", "completed_at": "2023-02-14T23:14:38.635995Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.640089Z", "completed_at": "2023-02-14T23:14:38.640096Z"}], "thread_id": "Thread-2", "execution_time": 0.011333942413330078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.635721Z", "completed_at": "2023-02-14T23:14:38.639423Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.641053Z", "completed_at": "2023-02-14T23:14:38.641057Z"}], "thread_id": "Thread-4", "execution_time": 0.011348962783813477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.636113Z", "completed_at": "2023-02-14T23:14:38.640192Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.641609Z", "completed_at": "2023-02-14T23:14:38.641614Z"}], "thread_id": "Thread-3", "execution_time": 0.009989261627197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.643061Z", "completed_at": "2023-02-14T23:14:38.645888Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.649295Z", "completed_at": "2023-02-14T23:14:38.649303Z"}], "thread_id": "Thread-1", "execution_time": 0.010740041732788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.645306Z", "completed_at": "2023-02-14T23:14:38.647824Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.652037Z", "completed_at": "2023-02-14T23:14:38.652041Z"}], "thread_id": "Thread-2", "execution_time": 0.010792016983032227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_card_payment_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.647592Z", "completed_at": "2023-02-14T23:14:38.651575Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.653176Z", "completed_at": "2023-02-14T23:14:38.653180Z"}], "thread_id": "Thread-4", "execution_time": 0.010921955108642578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.647966Z", "completed_at": "2023-02-14T23:14:38.652170Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.653681Z", "completed_at": "2023-02-14T23:14:38.653687Z"}], "thread_id": "Thread-3", "execution_time": 0.009855031967163086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.655711Z", "completed_at": "2023-02-14T23:14:38.658523Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.661697Z", "completed_at": "2023-02-14T23:14:38.661706Z"}], "thread_id": "Thread-1", "execution_time": 0.010473012924194336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.658069Z", "completed_at": "2023-02-14T23:14:38.660079Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.664035Z", "completed_at": "2023-02-14T23:14:38.664052Z"}], "thread_id": "Thread-2", "execution_time": 0.010195016860961914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.659912Z", "completed_at": "2023-02-14T23:14:38.663419Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.665297Z", "completed_at": "2023-02-14T23:14:38.665302Z"}], "thread_id": "Thread-4", "execution_time": 0.010107994079589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.660159Z", "completed_at": "2023-02-14T23:14:38.664218Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.665838Z", "completed_at": "2023-02-14T23:14:38.665842Z"}], "thread_id": "Thread-3", "execution_time": 0.00870203971862793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.667241Z", "completed_at": "2023-02-14T23:14:38.670151Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.674754Z", "completed_at": "2023-02-14T23:14:38.674765Z"}], "thread_id": "Thread-1", "execution_time": 0.011058807373046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.669615Z", "completed_at": "2023-02-14T23:14:38.672148Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.676611Z", "completed_at": "2023-02-14T23:14:38.676615Z"}], "thread_id": "Thread-2", "execution_time": 0.010788917541503906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.671957Z", "completed_at": "2023-02-14T23:14:38.676123Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.677841Z", "completed_at": "2023-02-14T23:14:38.677852Z"}], "thread_id": "Thread-4", "execution_time": 0.011709928512573242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.672253Z", "completed_at": "2023-02-14T23:14:38.676701Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.678803Z", "completed_at": "2023-02-14T23:14:38.678812Z"}], "thread_id": "Thread-3", "execution_time": 0.010313987731933594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.680461Z", "completed_at": "2023-02-14T23:14:38.683346Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.686302Z", "completed_at": "2023-02-14T23:14:38.686316Z"}], "thread_id": "Thread-1", "execution_time": 0.010518789291381836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.682863Z", "completed_at": "2023-02-14T23:14:38.684901Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.688804Z", "completed_at": "2023-02-14T23:14:38.688809Z"}], "thread_id": "Thread-2", "execution_time": 0.010144948959350586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.684732Z", "completed_at": "2023-02-14T23:14:38.688232Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.690045Z", "completed_at": "2023-02-14T23:14:38.690053Z"}], "thread_id": "Thread-4", "execution_time": 0.010013818740844727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.684981Z", "completed_at": "2023-02-14T23:14:38.688896Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.690574Z", "completed_at": "2023-02-14T23:14:38.690579Z"}], "thread_id": "Thread-3", "execution_time": 0.008753061294555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.691946Z", "completed_at": "2023-02-14T23:14:38.695853Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.698849Z", "completed_at": "2023-02-14T23:14:38.698855Z"}], "thread_id": "Thread-1", "execution_time": 0.010345935821533203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.695288Z", "completed_at": "2023-02-14T23:14:38.697540Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.700646Z", "completed_at": "2023-02-14T23:14:38.700650Z"}], "thread_id": "Thread-2", "execution_time": 0.009943008422851562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.697376Z", "completed_at": "2023-02-14T23:14:38.700206Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.701508Z", "completed_at": "2023-02-14T23:14:38.701511Z"}], "thread_id": "Thread-4", "execution_time": 0.009895801544189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.697617Z", "completed_at": "2023-02-14T23:14:38.700732Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.701986Z", "completed_at": "2023-02-14T23:14:38.701989Z"}], "thread_id": "Thread-3", "execution_time": 0.007620811462402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.703305Z", "completed_at": "2023-02-14T23:14:38.705974Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.708816Z", "completed_at": "2023-02-14T23:14:38.708822Z"}], "thread_id": "Thread-1", "execution_time": 0.009716033935546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.705492Z", "completed_at": "2023-02-14T23:14:38.707502Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.711495Z", "completed_at": "2023-02-14T23:14:38.711500Z"}], "thread_id": "Thread-2", "execution_time": 0.010083913803100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.707336Z", "completed_at": "2023-02-14T23:14:38.710979Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.713032Z", "completed_at": "2023-02-14T23:14:38.713040Z"}], "thread_id": "Thread-4", "execution_time": 0.010589122772216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.707579Z", "completed_at": "2023-02-14T23:14:38.711591Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.713810Z", "completed_at": "2023-02-14T23:14:38.713817Z"}], "thread_id": "Thread-3", "execution_time": 0.009444236755371094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.715313Z", "completed_at": "2023-02-14T23:14:38.717893Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.721949Z", "completed_at": "2023-02-14T23:14:38.721958Z"}], "thread_id": "Thread-1", "execution_time": 0.010626792907714844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.717452Z", "completed_at": "2023-02-14T23:14:38.719983Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.723975Z", "completed_at": "2023-02-14T23:14:38.723979Z"}], "thread_id": "Thread-2", "execution_time": 0.009947061538696289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.719590Z", "completed_at": "2023-02-14T23:14:38.723453Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.724850Z", "completed_at": "2023-02-14T23:14:38.724854Z"}], "thread_id": "Thread-4", "execution_time": 0.009969949722290039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.720095Z", "completed_at": "2023-02-14T23:14:38.724061Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.725296Z", "completed_at": "2023-02-14T23:14:38.725300Z"}], "thread_id": "Thread-3", "execution_time": 0.008716106414794922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.726491Z", "completed_at": "2023-02-14T23:14:38.729568Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.733746Z", "completed_at": "2023-02-14T23:14:38.733754Z"}], "thread_id": "Thread-1", "execution_time": 0.01843714714050293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.729022Z", "completed_at": "2023-02-14T23:14:38.732404Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.743567Z", "completed_at": "2023-02-14T23:14:38.743572Z"}], "thread_id": "Thread-2", "execution_time": 0.01829981803894043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.732219Z", "completed_at": "2023-02-14T23:14:38.743038Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:38.744534Z", "completed_at": "2023-02-14T23:14:38.744540Z"}], "thread_id": "Thread-4", "execution_time": 0.01897907257080078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.732485Z", "completed_at": "2023-02-14T23:14:39.615482Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:39.615958Z", "completed_at": "2023-02-14T23:14:39.615974Z"}], "thread_id": "Thread-3", "execution_time": 0.9950540065765381, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.760088Z", "completed_at": "2023-02-14T23:14:39.623090Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:39.623376Z", "completed_at": "2023-02-14T23:14:39.623386Z"}], "thread_id": "Thread-4", "execution_time": 0.9779567718505859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.746523Z", "completed_at": "2023-02-14T23:14:39.643402Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:39.643625Z", "completed_at": "2023-02-14T23:14:39.643635Z"}], "thread_id": "Thread-1", "execution_time": 0.9807288646697998, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:38.753336Z", "completed_at": "2023-02-14T23:14:39.615673Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:39.616052Z", "completed_at": "2023-02-14T23:14:39.616056Z"}], "thread_id": "Thread-2", "execution_time": 0.9797229766845703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:39.729569Z", "completed_at": "2023-02-14T23:14:40.654839Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:40.661590Z", "completed_at": "2023-02-14T23:14:40.661612Z"}], "thread_id": "Thread-4", "execution_time": 1.0152461528778076, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:39.729684Z", "completed_at": "2023-02-14T23:14:40.661769Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:40.662759Z", "completed_at": "2023-02-14T23:14:40.662767Z"}], "thread_id": "Thread-1", "execution_time": 1.0243589878082275, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:39.729787Z", "completed_at": "2023-02-14T23:14:40.662222Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:40.662971Z", "completed_at": "2023-02-14T23:14:40.662976Z"}], "thread_id": "Thread-2", "execution_time": 1.0244970321655273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:39.729431Z", "completed_at": "2023-02-14T23:14:40.661954Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:40.662870Z", "completed_at": "2023-02-14T23:14:40.662878Z"}], "thread_id": "Thread-3", "execution_time": 1.0264098644256592, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:40.743869Z", "completed_at": "2023-02-14T23:14:41.701873Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:41.702486Z", "completed_at": "2023-02-14T23:14:41.702503Z"}], "thread_id": "Thread-4", "execution_time": 1.0393548011779785, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:40.756249Z", "completed_at": "2023-02-14T23:14:41.702294Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:41.703322Z", "completed_at": "2023-02-14T23:14:41.703327Z"}], "thread_id": "Thread-2", "execution_time": 1.0362238883972168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:40.756157Z", "completed_at": "2023-02-14T23:14:41.703229Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:41.703840Z", "completed_at": "2023-02-14T23:14:41.703844Z"}], "thread_id": "Thread-1", "execution_time": 1.0371851921081543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:40.756553Z", "completed_at": "2023-02-14T23:14:41.703159Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:41.703753Z", "completed_at": "2023-02-14T23:14:41.703757Z"}], "thread_id": "Thread-3", "execution_time": 1.0368380546569824, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:41.795305Z", "completed_at": "2023-02-14T23:14:42.708866Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:42.709101Z", "completed_at": "2023-02-14T23:14:42.709112Z"}], "thread_id": "Thread-1", "execution_time": 1.0010161399841309, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:41.795405Z", "completed_at": "2023-02-14T23:14:42.759855Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:42.760473Z", "completed_at": "2023-02-14T23:14:42.760486Z"}], "thread_id": "Thread-3", "execution_time": 1.0477540493011475, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:41.783590Z", "completed_at": "2023-02-14T23:14:42.760352Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:42.761138Z", "completed_at": "2023-02-14T23:14:42.761145Z"}], "thread_id": "Thread-4", "execution_time": 1.0681140422821045, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:41.795176Z", "completed_at": "2023-02-14T23:14:42.760036Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:42.760608Z", "completed_at": "2023-02-14T23:14:42.760616Z"}], "thread_id": "Thread-2", "execution_time": 1.058096170425415, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:42.796261Z", "completed_at": "2023-02-14T23:14:43.641830Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:43.642091Z", "completed_at": "2023-02-14T23:14:43.642107Z"}], "thread_id": "Thread-1", "execution_time": 0.9274752140045166, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:42.843089Z", "completed_at": "2023-02-14T23:14:43.670224Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:43.670457Z", "completed_at": "2023-02-14T23:14:43.670468Z"}], "thread_id": "Thread-3", "execution_time": 0.9079639911651611, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:42.853531Z", "completed_at": "2023-02-14T23:14:43.704283Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:43.704716Z", "completed_at": "2023-02-14T23:14:43.704727Z"}], "thread_id": "Thread-2", "execution_time": 0.9317100048065186, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:42.853431Z", "completed_at": "2023-02-14T23:14:43.705195Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:43.705410Z", "completed_at": "2023-02-14T23:14:43.705416Z"}], "thread_id": "Thread-4", "execution_time": 0.9407377243041992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:43.724368Z", "completed_at": "2023-02-14T23:14:44.637855Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:44.638612Z", "completed_at": "2023-02-14T23:14:44.638623Z"}], "thread_id": "Thread-1", "execution_time": 0.9960849285125732, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:43.785731Z", "completed_at": "2023-02-14T23:14:44.638516Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:44.639353Z", "completed_at": "2023-02-14T23:14:44.639356Z"}], "thread_id": "Thread-2", "execution_time": 0.9433658123016357, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:43.794366Z", "completed_at": "2023-02-14T23:14:44.638747Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:44.639483Z", "completed_at": "2023-02-14T23:14:44.639488Z"}], "thread_id": "Thread-4", "execution_time": 0.9352560043334961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:43.751656Z", "completed_at": "2023-02-14T23:14:44.638381Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:44.639271Z", "completed_at": "2023-02-14T23:14:44.639276Z"}], "thread_id": "Thread-3", "execution_time": 0.9781289100646973, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:44.720856Z", "completed_at": "2023-02-14T23:14:45.587023Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:45.587367Z", "completed_at": "2023-02-14T23:14:45.587378Z"}], "thread_id": "Thread-1", "execution_time": 0.9563848972320557, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:44.732057Z", "completed_at": "2023-02-14T23:14:45.676934Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:45.689359Z", "completed_at": "2023-02-14T23:14:45.689368Z"}], "thread_id": "Thread-3", "execution_time": 1.0398509502410889, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:44.731979Z", "completed_at": "2023-02-14T23:14:45.688148Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:45.689682Z", "completed_at": "2023-02-14T23:14:45.689688Z"}], "thread_id": "Thread-4", "execution_time": 1.049015998840332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:44.731893Z", "completed_at": "2023-02-14T23:14:45.689447Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:45.690272Z", "completed_at": "2023-02-14T23:14:45.690277Z"}], "thread_id": "Thread-2", "execution_time": 1.0586981773376465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:45.690037Z", "completed_at": "2023-02-14T23:14:46.555495Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:46.555862Z", "completed_at": "2023-02-14T23:14:46.555874Z"}], "thread_id": "Thread-1", "execution_time": 0.9524321556091309, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:45.772403Z", "completed_at": "2023-02-14T23:14:46.597067Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:46.597296Z", "completed_at": "2023-02-14T23:14:46.597306Z"}], "thread_id": "Thread-3", "execution_time": 0.9057028293609619, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:45.781088Z", "completed_at": "2023-02-14T23:14:46.641457Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:46.642323Z", "completed_at": "2023-02-14T23:14:46.642329Z"}], "thread_id": "Thread-4", "execution_time": 0.9430310726165771, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:45.790439Z", "completed_at": "2023-02-14T23:14:46.669891Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:46.670135Z", "completed_at": "2023-02-14T23:14:46.670151Z"}], "thread_id": "Thread-2", "execution_time": 0.9621579647064209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:46.642640Z", "completed_at": "2023-02-14T23:14:47.502850Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.503478Z", "completed_at": "2023-02-14T23:14:47.503497Z"}], "thread_id": "Thread-1", "execution_time": 0.9535751342773438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:46.678510Z", "completed_at": "2023-02-14T23:14:47.503843Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.504115Z", "completed_at": "2023-02-14T23:14:47.504121Z"}], "thread_id": "Thread-3", "execution_time": 0.9180769920349121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:46.724662Z", "completed_at": "2023-02-14T23:14:47.537372Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.537702Z", "completed_at": "2023-02-14T23:14:47.537715Z"}], "thread_id": "Thread-4", "execution_time": 0.9116811752319336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.598200Z", "completed_at": "2023-02-14T23:14:47.635311Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.636993Z", "completed_at": "2023-02-14T23:14:47.637005Z"}], "thread_id": "Thread-1", "execution_time": 0.04085707664489746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__account_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.598299Z", "completed_at": "2023-02-14T23:14:47.637096Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.638771Z", "completed_at": "2023-02-14T23:14:47.638776Z"}], "thread_id": "Thread-3", "execution_time": 0.04200911521911621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.638889Z", "completed_at": "2023-02-14T23:14:47.656701Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.659274Z", "completed_at": "2023-02-14T23:14:47.659282Z"}], "thread_id": "Thread-4", "execution_time": 0.027627229690551758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.649880Z", "completed_at": "2023-02-14T23:14:47.665187Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.666152Z", "completed_at": "2023-02-14T23:14:47.666162Z"}], "thread_id": "Thread-1", "execution_time": 0.027500152587890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.659159Z", "completed_at": "2023-02-14T23:14:47.666058Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.666867Z", "completed_at": "2023-02-14T23:14:47.666872Z"}], "thread_id": "Thread-3", "execution_time": 0.02089238166809082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.666771Z", "completed_at": "2023-02-14T23:14:47.672577Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.676412Z", "completed_at": "2023-02-14T23:14:47.676419Z"}], "thread_id": "Thread-4", "execution_time": 0.015217065811157227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.672499Z", "completed_at": "2023-02-14T23:14:47.681127Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.681965Z", "completed_at": "2023-02-14T23:14:47.681971Z"}], "thread_id": "Thread-1", "execution_time": 0.011335134506225586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.676268Z", "completed_at": "2023-02-14T23:14:47.681594Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.682602Z", "completed_at": "2023-02-14T23:14:47.682607Z"}], "thread_id": "Thread-3", "execution_time": 0.011155843734741211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.682694Z", "completed_at": "2023-02-14T23:14:47.688830Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.692518Z", "completed_at": "2023-02-14T23:14:47.692525Z"}], "thread_id": "Thread-4", "execution_time": 0.01547098159790039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.688747Z", "completed_at": "2023-02-14T23:14:47.697378Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.698464Z", "completed_at": "2023-02-14T23:14:47.698472Z"}], "thread_id": "Thread-1", "execution_time": 0.011462926864624023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.692391Z", "completed_at": "2023-02-14T23:14:47.698382Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.699328Z", "completed_at": "2023-02-14T23:14:47.699333Z"}], "thread_id": "Thread-3", "execution_time": 0.014979839324951172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.699232Z", "completed_at": "2023-02-14T23:14:47.705026Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.709901Z", "completed_at": "2023-02-14T23:14:47.709911Z"}], "thread_id": "Thread-4", "execution_time": 0.01683211326599121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.705139Z", "completed_at": "2023-02-14T23:14:47.715063Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.715965Z", "completed_at": "2023-02-14T23:14:47.715971Z"}], "thread_id": "Thread-1", "execution_time": 0.012849092483520508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.709802Z", "completed_at": "2023-02-14T23:14:47.715561Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.716611Z", "completed_at": "2023-02-14T23:14:47.716615Z"}], "thread_id": "Thread-3", "execution_time": 0.012483835220336914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:46.753054Z", "completed_at": "2023-02-14T23:14:47.636711Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.638418Z", "completed_at": "2023-02-14T23:14:47.638423Z"}], "thread_id": "Thread-2", "execution_time": 0.9818737506866455, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.716700Z", "completed_at": "2023-02-14T23:14:47.722030Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.729358Z", "completed_at": "2023-02-14T23:14:47.729370Z"}], "thread_id": "Thread-4", "execution_time": 0.01907801628112793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.722134Z", "completed_at": "2023-02-14T23:14:47.735121Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.736791Z", "completed_at": "2023-02-14T23:14:47.736798Z"}], "thread_id": "Thread-1", "execution_time": 0.016455888748168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.729219Z", "completed_at": "2023-02-14T23:14:47.735656Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.736975Z", "completed_at": "2023-02-14T23:14:47.736979Z"}], "thread_id": "Thread-3", "execution_time": 0.0163271427154541, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.737067Z", "completed_at": "2023-02-14T23:14:47.749139Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.754408Z", "completed_at": "2023-02-14T23:14:47.754419Z"}], "thread_id": "Thread-2", "execution_time": 0.022733688354492188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.737599Z", "completed_at": "2023-02-14T23:14:47.749218Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.754547Z", "completed_at": "2023-02-14T23:14:47.754554Z"}], "thread_id": "Thread-4", "execution_time": 0.022705793380737305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.749392Z", "completed_at": "2023-02-14T23:14:47.759052Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.760312Z", "completed_at": "2023-02-14T23:14:47.760319Z"}], "thread_id": "Thread-1", "execution_time": 0.012969970703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.749667Z", "completed_at": "2023-02-14T23:14:47.759944Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.761503Z", "completed_at": "2023-02-14T23:14:47.761512Z"}], "thread_id": "Thread-3", "execution_time": 0.01799297332763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.761629Z", "completed_at": "2023-02-14T23:14:47.773356Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.778519Z", "completed_at": "2023-02-14T23:14:47.778530Z"}], "thread_id": "Thread-4", "execution_time": 0.023659706115722656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.761349Z", "completed_at": "2023-02-14T23:14:47.773538Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.778677Z", "completed_at": "2023-02-14T23:14:47.778682Z"}], "thread_id": "Thread-2", "execution_time": 0.024472713470458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.773457Z", "completed_at": "2023-02-14T23:14:47.783854Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.785198Z", "completed_at": "2023-02-14T23:14:47.785205Z"}], "thread_id": "Thread-1", "execution_time": 0.014394760131835938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.778422Z", "completed_at": "2023-02-14T23:14:47.784648Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.786456Z", "completed_at": "2023-02-14T23:14:47.786466Z"}], "thread_id": "Thread-3", "execution_time": 0.014302253723144531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.786689Z", "completed_at": "2023-02-14T23:14:47.795810Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.800829Z", "completed_at": "2023-02-14T23:14:47.800838Z"}], "thread_id": "Thread-4", "execution_time": 0.019943952560424805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.787472Z", "completed_at": "2023-02-14T23:14:47.796102Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.804359Z", "completed_at": "2023-02-14T23:14:47.804371Z"}], "thread_id": "Thread-2", "execution_time": 0.019883155822753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.795902Z", "completed_at": "2023-02-14T23:14:47.804473Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.806034Z", "completed_at": "2023-02-14T23:14:47.806039Z"}], "thread_id": "Thread-1", "execution_time": 0.015711307525634766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.800624Z", "completed_at": "2023-02-14T23:14:47.805713Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.807222Z", "completed_at": "2023-02-14T23:14:47.807227Z"}], "thread_id": "Thread-3", "execution_time": 0.012504100799560547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.807588Z", "completed_at": "2023-02-14T23:14:47.818621Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.823781Z", "completed_at": "2023-02-14T23:14:47.823793Z"}], "thread_id": "Thread-4", "execution_time": 0.02234506607055664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.807997Z", "completed_at": "2023-02-14T23:14:47.818927Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.823960Z", "completed_at": "2023-02-14T23:14:47.823964Z"}], "thread_id": "Thread-2", "execution_time": 0.022603988647460938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.818763Z", "completed_at": "2023-02-14T23:14:47.828658Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.830496Z", "completed_at": "2023-02-14T23:14:47.830505Z"}], "thread_id": "Thread-1", "execution_time": 0.023273944854736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.823625Z", "completed_at": "2023-02-14T23:14:47.829807Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.831560Z", "completed_at": "2023-02-14T23:14:47.831566Z"}], "thread_id": "Thread-3", "execution_time": 0.014272928237915039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__deposit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.831810Z", "completed_at": "2023-02-14T23:14:47.842659Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.847699Z", "completed_at": "2023-02-14T23:14:47.847708Z"}], "thread_id": "Thread-4", "execution_time": 0.02218484878540039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.832544Z", "completed_at": "2023-02-14T23:14:47.847169Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.851877Z", "completed_at": "2023-02-14T23:14:47.851885Z"}], "thread_id": "Thread-2", "execution_time": 0.022185087203979492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.842582Z", "completed_at": "2023-02-14T23:14:47.851963Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.853838Z", "completed_at": "2023-02-14T23:14:47.853845Z"}], "thread_id": "Thread-1", "execution_time": 0.01695990562438965, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.847447Z", "completed_at": "2023-02-14T23:14:47.853504Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.855229Z", "completed_at": "2023-02-14T23:14:47.855236Z"}], "thread_id": "Thread-3", "execution_time": 0.013769149780273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.855621Z", "completed_at": "2023-02-14T23:14:47.866509Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.870522Z", "completed_at": "2023-02-14T23:14:47.870533Z"}], "thread_id": "Thread-4", "execution_time": 0.02156805992126465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.856110Z", "completed_at": "2023-02-14T23:14:47.866720Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.875094Z", "completed_at": "2023-02-14T23:14:47.875102Z"}], "thread_id": "Thread-2", "execution_time": 0.021516084671020508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.866424Z", "completed_at": "2023-02-14T23:14:47.875182Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.876627Z", "completed_at": "2023-02-14T23:14:47.876632Z"}], "thread_id": "Thread-1", "execution_time": 0.021412134170532227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.870214Z", "completed_at": "2023-02-14T23:14:47.876372Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.877878Z", "completed_at": "2023-02-14T23:14:47.877884Z"}], "thread_id": "Thread-3", "execution_time": 0.012606143951416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.878297Z", "completed_at": "2023-02-14T23:14:47.889329Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.896778Z", "completed_at": "2023-02-14T23:14:47.896796Z"}], "thread_id": "Thread-4", "execution_time": 0.02075982093811035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.878778Z", "completed_at": "2023-02-14T23:14:47.892715Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.897027Z", "completed_at": "2023-02-14T23:14:47.897032Z"}], "thread_id": "Thread-2", "execution_time": 0.020947933197021484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.889073Z", "completed_at": "2023-02-14T23:14:47.896929Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.898510Z", "completed_at": "2023-02-14T23:14:47.898516Z"}], "thread_id": "Thread-1", "execution_time": 0.020509958267211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.892799Z", "completed_at": "2023-02-14T23:14:47.898204Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.899808Z", "completed_at": "2023-02-14T23:14:47.899813Z"}], "thread_id": "Thread-3", "execution_time": 0.011884927749633789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.900673Z", "completed_at": "2023-02-14T23:14:47.913053Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.918332Z", "completed_at": "2023-02-14T23:14:47.918341Z"}], "thread_id": "Thread-4", "execution_time": 0.02036309242248535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.901047Z", "completed_at": "2023-02-14T23:14:47.913138Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.918439Z", "completed_at": "2023-02-14T23:14:47.918444Z"}], "thread_id": "Thread-2", "execution_time": 0.020241975784301758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__bill_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.908667Z", "completed_at": "2023-02-14T23:14:47.918196Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.919993Z", "completed_at": "2023-02-14T23:14:47.919999Z"}], "thread_id": "Thread-1", "execution_time": 0.02012801170349121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.912944Z", "completed_at": "2023-02-14T23:14:47.918798Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.921151Z", "completed_at": "2023-02-14T23:14:47.921161Z"}], "thread_id": "Thread-3", "execution_time": 0.014184951782226562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__credit_memo_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.923360Z", "completed_at": "2023-02-14T23:14:47.936911Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.940995Z", "completed_at": "2023-02-14T23:14:47.941004Z"}], "thread_id": "Thread-2", "execution_time": 0.019893884658813477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.923269Z", "completed_at": "2023-02-14T23:14:47.936996Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.941211Z", "completed_at": "2023-02-14T23:14:47.941215Z"}], "thread_id": "Thread-4", "execution_time": 0.020791053771972656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.933602Z", "completed_at": "2023-02-14T23:14:47.940730Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.941820Z", "completed_at": "2023-02-14T23:14:47.941824Z"}], "thread_id": "Thread-1", "execution_time": 0.019929170608520508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.936779Z", "completed_at": "2023-02-14T23:14:47.941278Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:47.943074Z", "completed_at": "2023-02-14T23:14:47.943079Z"}], "thread_id": "Thread-3", "execution_time": 0.020692110061645508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__journal_entry_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.945386Z", "completed_at": "2023-02-14T23:14:48.007353Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.011680Z", "completed_at": "2023-02-14T23:14:48.011697Z"}], "thread_id": "Thread-2", "execution_time": 0.06944680213928223, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.945571Z", "completed_at": "2023-02-14T23:14:48.007561Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.012081Z", "completed_at": "2023-02-14T23:14:48.012090Z"}], "thread_id": "Thread-4", "execution_time": 0.06967282295227051, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:47.950332Z", "completed_at": "2023-02-14T23:14:48.011288Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.012890Z", "completed_at": "2023-02-14T23:14:48.012898Z"}], "thread_id": "Thread-1", "execution_time": 0.06946492195129395, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.007235Z", "completed_at": "2023-02-14T23:14:48.012192Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.014440Z", "completed_at": "2023-02-14T23:14:48.014445Z"}], "thread_id": "Thread-3", "execution_time": 0.0698540210723877, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.016348Z", "completed_at": "2023-02-14T23:14:48.029704Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.036638Z", "completed_at": "2023-02-14T23:14:48.036657Z"}], "thread_id": "Thread-2", "execution_time": 0.023083925247192383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.016537Z", "completed_at": "2023-02-14T23:14:48.029970Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.037109Z", "completed_at": "2023-02-14T23:14:48.037115Z"}], "thread_id": "Thread-4", "execution_time": 0.023421049118041992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.020832Z", "completed_at": "2023-02-14T23:14:48.036300Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.038001Z", "completed_at": "2023-02-14T23:14:48.038012Z"}], "thread_id": "Thread-1", "execution_time": 0.02342987060546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.029833Z", "completed_at": "2023-02-14T23:14:48.037834Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.039862Z", "completed_at": "2023-02-14T23:14:48.039868Z"}], "thread_id": "Thread-3", "execution_time": 0.024065017700195312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.041181Z", "completed_at": "2023-02-14T23:14:48.052646Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.057984Z", "completed_at": "2023-02-14T23:14:48.057994Z"}], "thread_id": "Thread-2", "execution_time": 0.019205808639526367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.041493Z", "completed_at": "2023-02-14T23:14:48.053117Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.059059Z", "completed_at": "2023-02-14T23:14:48.059065Z"}], "thread_id": "Thread-4", "execution_time": 0.019623994827270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.045703Z", "completed_at": "2023-02-14T23:14:48.058086Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.059420Z", "completed_at": "2023-02-14T23:14:48.059423Z"}], "thread_id": "Thread-1", "execution_time": 0.019655942916870117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__purchase_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.052798Z", "completed_at": "2023-02-14T23:14:48.059256Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.060922Z", "completed_at": "2023-02-14T23:14:48.060929Z"}], "thread_id": "Thread-3", "execution_time": 0.01669907569885254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.061608Z", "completed_at": "2023-02-14T23:14:48.072980Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.079362Z", "completed_at": "2023-02-14T23:14:48.079373Z"}], "thread_id": "Thread-2", "execution_time": 0.024367809295654297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.067603Z", "completed_at": "2023-02-14T23:14:48.079199Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.084516Z", "completed_at": "2023-02-14T23:14:48.084521Z"}], "thread_id": "Thread-4", "execution_time": 0.023940086364746094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.068084Z", "completed_at": "2023-02-14T23:14:48.083933Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.085390Z", "completed_at": "2023-02-14T23:14:48.085404Z"}], "thread_id": "Thread-1", "execution_time": 0.02430891990661621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__invoice_join"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.079106Z", "completed_at": "2023-02-14T23:14:48.084831Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.086958Z", "completed_at": "2023-02-14T23:14:48.086969Z"}], "thread_id": "Thread-3", "execution_time": 0.02036595344543457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__payment_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.087670Z", "completed_at": "2023-02-14T23:14:48.098753Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.103935Z", "completed_at": "2023-02-14T23:14:48.103945Z"}], "thread_id": "Thread-2", "execution_time": 0.023804187774658203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.094034Z", "completed_at": "2023-02-14T23:14:48.103657Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.109564Z", "completed_at": "2023-02-14T23:14:48.109569Z"}], "thread_id": "Thread-4", "execution_time": 0.023181915283203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.098667Z", "completed_at": "2023-02-14T23:14:48.104178Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.110427Z", "completed_at": "2023-02-14T23:14:48.110431Z"}], "thread_id": "Thread-1", "execution_time": 0.02289414405822754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.103768Z", "completed_at": "2023-02-14T23:14:48.110499Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.112529Z", "completed_at": "2023-02-14T23:14:48.112538Z"}], "thread_id": "Thread-3", "execution_time": 0.01908111572265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.112646Z", "completed_at": "2023-02-14T23:14:48.122932Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.127823Z", "completed_at": "2023-02-14T23:14:48.127842Z"}], "thread_id": "Thread-2", "execution_time": 0.017997026443481445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.118596Z", "completed_at": "2023-02-14T23:14:48.127419Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.128791Z", "completed_at": "2023-02-14T23:14:48.128798Z"}], "thread_id": "Thread-4", "execution_time": 0.021377086639404297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.122847Z", "completed_at": "2023-02-14T23:14:48.128114Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.133529Z", "completed_at": "2023-02-14T23:14:48.133535Z"}], "thread_id": "Thread-1", "execution_time": 0.021485090255737305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.128218Z", "completed_at": "2023-02-14T23:14:48.134491Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.135617Z", "completed_at": "2023-02-14T23:14:48.135623Z"}], "thread_id": "Thread-3", "execution_time": 0.018765926361083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.135157Z", "completed_at": "2023-02-14T23:14:48.145658Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.150450Z", "completed_at": "2023-02-14T23:14:48.150458Z"}], "thread_id": "Thread-2", "execution_time": 0.01733112335205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.141369Z", "completed_at": "2023-02-14T23:14:48.149991Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.151173Z", "completed_at": "2023-02-14T23:14:48.151177Z"}], "thread_id": "Thread-4", "execution_time": 0.017130136489868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.145564Z", "completed_at": "2023-02-14T23:14:48.150736Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.155898Z", "completed_at": "2023-02-14T23:14:48.155909Z"}], "thread_id": "Thread-1", "execution_time": 0.021512985229492188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.151262Z", "completed_at": "2023-02-14T23:14:48.157397Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.163314Z", "completed_at": "2023-02-14T23:14:48.163327Z"}], "thread_id": "Thread-3", "execution_time": 0.017293691635131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__refund_receipt_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.157642Z", "completed_at": "2023-02-14T23:14:48.167598Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.174932Z", "completed_at": "2023-02-14T23:14:48.174942Z"}], "thread_id": "Thread-2", "execution_time": 0.019547700881958008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.163143Z", "completed_at": "2023-02-14T23:14:48.174148Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.175784Z", "completed_at": "2023-02-14T23:14:48.175788Z"}], "thread_id": "Thread-4", "execution_time": 0.019266128540039062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.167730Z", "completed_at": "2023-02-14T23:14:48.175858Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.181818Z", "completed_at": "2023-02-14T23:14:48.181830Z"}], "thread_id": "Thread-1", "execution_time": 0.024714231491088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__transfer_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.175941Z", "completed_at": "2023-02-14T23:14:48.182784Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.187679Z", "completed_at": "2023-02-14T23:14:48.187692Z"}], "thread_id": "Thread-3", "execution_time": 0.018532991409301758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.182880Z", "completed_at": "2023-02-14T23:14:48.192699Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.197499Z", "completed_at": "2023-02-14T23:14:48.197510Z"}], "thread_id": "Thread-2", "execution_time": 0.017232179641723633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.187085Z", "completed_at": "2023-02-14T23:14:48.193634Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.198678Z", "completed_at": "2023-02-14T23:14:48.198682Z"}], "thread_id": "Thread-4", "execution_time": 0.017187118530273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.193299Z", "completed_at": "2023-02-14T23:14:48.198948Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.203153Z", "completed_at": "2023-02-14T23:14:48.203160Z"}], "thread_id": "Thread-1", "execution_time": 0.016984939575195312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_double_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.199035Z", "completed_at": "2023-02-14T23:14:48.204428Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.210122Z", "completed_at": "2023-02-14T23:14:48.210131Z"}], "thread_id": "Thread-3", "execution_time": 0.017699003219604492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__vendor_credit_transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.203820Z", "completed_at": "2023-02-14T23:14:48.214676Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.216154Z", "completed_at": "2023-02-14T23:14:48.216160Z"}], "thread_id": "Thread-2", "execution_time": 0.02129983901977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.209627Z", "completed_at": "2023-02-14T23:14:48.215999Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.221164Z", "completed_at": "2023-02-14T23:14:48.221173Z"}], "thread_id": "Thread-4", "execution_time": 0.018524169921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.215736Z", "completed_at": "2023-02-14T23:14:48.221251Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.243182Z", "completed_at": "2023-02-14T23:14:48.243192Z"}], "thread_id": "Thread-1", "execution_time": 0.03423905372619629, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.221543Z", "completed_at": "2023-02-14T23:14:48.244583Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.285723Z", "completed_at": "2023-02-14T23:14:48.285738Z"}], "thread_id": "Thread-3", "execution_time": 0.06659102439880371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__ap_ar_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.244272Z", "completed_at": "2023-02-14T23:14:48.285913Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.287509Z", "completed_at": "2023-02-14T23:14:48.287515Z"}], "thread_id": "Thread-2", "execution_time": 0.07300782203674316, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__sales_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.286924Z", "completed_at": "2023-02-14T23:14:48.296020Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.301097Z", "completed_at": "2023-02-14T23:14:48.301107Z"}], "thread_id": "Thread-1", "execution_time": 0.04654693603515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__expenses_union"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.295913Z", "completed_at": "2023-02-14T23:14:48.301793Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.302631Z", "completed_at": "2023-02-14T23:14:48.302638Z"}], "thread_id": "Thread-3", "execution_time": 0.008945941925048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__ap_ar_enhanced_transaction_id__source_relation__estimate_id.804c1f0bcf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.303418Z", "completed_at": "2023-02-14T23:14:48.307867Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.308129Z", "completed_at": "2023-02-14T23:14:48.308137Z"}], "thread_id": "Thread-2", "execution_time": 0.00628209114074707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__expenses_sales_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.309348Z", "completed_at": "2023-02-14T23:14:48.315560Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:48.315746Z", "completed_at": "2023-02-14T23:14:48.315755Z"}], "thread_id": "Thread-1", "execution_time": 0.007050037384033203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__expenses_sales_enhanced_transaction_id__source_relation__transaction_line_id__item_id.b57775bacb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:48.254683Z", "completed_at": "2023-02-14T23:14:50.286852Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:50.287149Z", "completed_at": "2023-02-14T23:14:50.287159Z"}], "thread_id": "Thread-4", "execution_time": 2.1265857219696045, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:50.395364Z", "completed_at": "2023-02-14T23:14:50.402130Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:50.402429Z", "completed_at": "2023-02-14T23:14:50.402441Z"}], "thread_id": "Thread-3", "execution_time": 0.02750706672668457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_unique_id__source_relation.3218ddf12c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:50.376607Z", "completed_at": "2023-02-14T23:14:51.603747Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.604015Z", "completed_at": "2023-02-14T23:14:51.604025Z"}], "thread_id": "Thread-2", "execution_time": 1.3126189708709717, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_date_spine"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.692128Z", "completed_at": "2023-02-14T23:14:51.705103Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.705359Z", "completed_at": "2023-02-14T23:14:51.705369Z"}], "thread_id": "Thread-4", "execution_time": 0.015159130096435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__general_ledger_balances"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.707250Z", "completed_at": "2023-02-14T23:14:51.717165Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.717466Z", "completed_at": "2023-02-14T23:14:51.717476Z"}], "thread_id": "Thread-3", "execution_time": 0.011259078979492188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__retained_earnings"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.719068Z", "completed_at": "2023-02-14T23:14:51.725577Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.725800Z", "completed_at": "2023-02-14T23:14:51.725810Z"}], "thread_id": "Thread-1", "execution_time": 0.007566928863525391, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__general_ledger_by_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.728996Z", "completed_at": "2023-02-14T23:14:51.740645Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.741578Z", "completed_at": "2023-02-14T23:14:51.741587Z"}], "thread_id": "Thread-2", "execution_time": 0.015213966369628906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.729272Z", "completed_at": "2023-02-14T23:14:51.741019Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.741898Z", "completed_at": "2023-02-14T23:14:51.741903Z"}], "thread_id": "Thread-3", "execution_time": 0.015368938446044922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "analysis.quickbooks.quickbooks__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.729380Z", "completed_at": "2023-02-14T23:14:51.741273Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.742484Z", "completed_at": "2023-02-14T23:14:51.742488Z"}], "thread_id": "Thread-4", "execution_time": 0.015607118606567383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.732581Z", "completed_at": "2023-02-14T23:14:51.741357Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.742605Z", "completed_at": "2023-02-14T23:14:51.742609Z"}], "thread_id": "Thread-1", "execution_time": 0.015554666519165039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__profit_and_loss"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.748986Z", "completed_at": "2023-02-14T23:14:51.782108Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.789381Z", "completed_at": "2023-02-14T23:14:51.789392Z"}], "thread_id": "Thread-2", "execution_time": 0.04604077339172363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__general_ledger_by_period_account_id__class_id__source_relation__period_first_day.d928e63a45"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.767794Z", "completed_at": "2023-02-14T23:14:51.788844Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.790519Z", "completed_at": "2023-02-14T23:14:51.790526Z"}], "thread_id": "Thread-4", "execution_time": 0.042825937271118164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__balance_sheet_account_id__source_relation__calendar_date__class_id.07368a5056"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.767451Z", "completed_at": "2023-02-14T23:14:51.789065Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.790639Z", "completed_at": "2023-02-14T23:14:51.790644Z"}], "thread_id": "Thread-3", "execution_time": 0.043608665466308594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.int_quickbooks__cash_flow_classifications"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.767902Z", "completed_at": "2023-02-14T23:14:51.789224Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.790743Z", "completed_at": "2023-02-14T23:14:51.790747Z"}], "thread_id": "Thread-1", "execution_time": 0.04327702522277832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.dbt_utils_unique_combination_of_columns_quickbooks__profit_and_loss_account_id__class_id__source_relation__calendar_date.77ccb375e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.792889Z", "completed_at": "2023-02-14T23:14:51.796401Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.796630Z", "completed_at": "2023-02-14T23:14:51.796639Z"}], "thread_id": "Thread-2", "execution_time": 0.004516124725341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks.quickbooks__cash_flow_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.798821Z", "completed_at": "2023-02-14T23:14:51.809214Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.809593Z", "completed_at": "2023-02-14T23:14:51.809605Z"}], "thread_id": "Thread-3", "execution_time": 0.012115955352783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.not_null_quickbooks__cash_flow_statement_account_unique_id.748fb9ef0a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-14T23:14:51.798912Z", "completed_at": "2023-02-14T23:14:51.809331Z"}, {"name": "execute", "started_at": "2023-02-14T23:14:51.809684Z", "completed_at": "2023-02-14T23:14:51.809688Z"}], "thread_id": "Thread-1", "execution_time": 0.012058019638061523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks.unique_quickbooks__cash_flow_statement_account_unique_id.c6ce55cc0d"}], "elapsed_time": 16.923842906951904, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file From b2ce3d46b06cf40a6c06e53677893cd932e992a8 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Wed, 15 Feb 2023 09:58:31 -0800 Subject: [PATCH 8/9] CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6459cae6..cb2ce529 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # dbt_quickbooks v0.8.0 ## 🚨 Breaking Changes 🚨: -- Replacing `account_name` with `account_id` as input for the `generate_surrogate_key` function to fix `unique_id` uniqueness issues in the `quickbooks__general_ledger` model. A full refresh is recommended for accurate and consistent surrogate keys. [#73](https://github.com/fivetran/dbt_quickbooks/pull/73) +- Replacing `account_name` with `account_id` as input for the `generate_surrogate_key` function to fix `unique_id` uniqueness issues in the `quickbooks__general_ledger` model. A full refresh is recommended for accurate and consistent surrogate keys. ([#73](https://github.com/fivetran/dbt_quickbooks/pull/73)) # dbt_quickbooks v0.7.0 ## 🚨 Breaking Changes 🚨: From dcb7c52b3904c131776bc2e92639c9a36183a01c Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Wed, 15 Feb 2023 10:00:54 -0800 Subject: [PATCH 9/9] CHANGELOG --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb2ce529..9a475cb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ # dbt_quickbooks v0.8.0 -## 🚨 Breaking Changes 🚨: +## 🚨 Breaking Changes 🚨 - Replacing `account_name` with `account_id` as input for the `generate_surrogate_key` function to fix `unique_id` uniqueness issues in the `quickbooks__general_ledger` model. A full refresh is recommended for accurate and consistent surrogate keys. ([#73](https://github.com/fivetran/dbt_quickbooks/pull/73)) # dbt_quickbooks v0.7.0 -## 🚨 Breaking Changes 🚨: +## 🚨 Breaking Changes 🚨 - Added `transaction_source` to `generate_surrogate_key` function to fix `unique_id` uniqueness issues in the `quickbooks__general_ledger` model. A full refresh is recommended for accurate and consistent surrogate keys, for more information please refer to dbt-utils [release notes](https://github.com/dbt-labs/dbt-utils/releases/tag/1.0.0) regarding `generate_surrogate_key`. ([#62](https://github.com/fivetran/dbt_quickbooks/pull/62)) ## Additional Features @@ -18,7 +18,7 @@ - Added `quickbooks_[source_table_name]_identifier` variables so it's easier to refer to source tables with different names. ([#71](https://github.com/fivetran/dbt_quickbooks/pull/71)) # dbt_quickbooks v0.6.0 -## 🚨 Breaking Changes 🚨: +## 🚨 Breaking Changes 🚨 [PR #51](https://github.com/fivetran/dbt_quickbooks/pull/51) includes the following breaking changes: - Dispatch update for dbt-utils to dbt-core cross-db macros migration. Specifically `{{ dbt_utils. }}` have been updated to `{{ dbt. }}` for the below macros: - `any_value`